Description
Modifier ou retourner le contenu maximal d'un bloc pouvant accueillir des données d'entités. Cette syntaxe ne comprend que les ruches ou nids d'abeille, fonctionnel uniquement avec les serveurs 1.15.2 + !
set {_m} to max entities of target block of player
set max entities of target block of player to 20
set max entity storage of event-block to 5
[the] max entit(ies|y storage) of %blocks%
%blocks%'[s] max entit(ies|y storage)
Description
Ceci est un moyen secondaire pour l'expression de Skript, étant cassées depuis la 1.14 +.
if inventory name of current inventory of player = "Settings":
[the] (custom|inv[entory]) name of %inventories%
%inventories%'[s] (custom|inv[entory]) name
Description
Distribue à un joueur un item avec NBT ou utiliser des NBT dans un GUI.
give player diamond sword with nbt "{Unbreakable:1}"
format gui slot 1 of player with diamond axe with nbt "{Enchantments:[{id:\"\"unbreaking\"\",lvl:5s}]}"
%itemtype% with [item( |-)]nbt %string%
Description
NBT d'item, entités, tile entités (comme les fours, entonnoirs, alambique, bannière ...) ou fichiers. Supporte l'ajout, suppresion, retour et la réinitialisation. La réinitialisation ne marchera que sur des items, et non sur des entités ou des blocs.
set {_nbt} to nbt of player's tool
add "{Enchantments:[{id:""sharpness"",lvl:5}]}" to nbt of player's tool
reset nbt of player's tool
set {_nbt} to nbt of target entity
set {_nbt} to event-entity
add "{CustomName:""{\""text\"":\""&bMyNewName\""}""}" to target entity
add "{RequiredPlayerRange:0s}" to targeted block's nbt
add "{SpawnData:{id:""minecraft:wither""}}" to nbt of clicked block
set {_nbt} to file-nbt of "world/playerdata/some-uuid-here.dat"
[the] [(entity|item|block|tile[(-| )]entity|file)(-| )]nbt of %block/entity/itemstack/itemtype/string%
%block/entity/itemstack/itemtype/string%'[s] [(entity|item|block|tile[(-| )]entity|file)(-| )]nbt
Description
Modifie le NBT d'un bloc à une position.
set nbt-block at player to west facing furnace with nbt "{CustomName:""{\""text\"":\""&aFurnieFurnace\""}""}"
set nbt-block at event-location to hopper with nbt "{CustomName:""{\""text\"":\""&cHoppieHopper\""}""}"
set (nbt[(-| )]block|tile[(-| )]entity) %directions% %locations% to %itemtype% with nbt %string%
Description
Fais apparaître une entité avec un NBT à une positon.
spawn sheep at player with nbt "{NoAI:1b}"
spawn 1 of zombie at player with nbt "{NoGravity:1b}"
spawn %entitytypes% [%directions% %locations%] with nbt %string%
spawn %number% of %entitytypes% [%directions% %locations%] with nbt %string%
Description
Renvoie la valeur de la balise spécifiée du NBT spécifié. Prend également en charge l'obtention de balises imbriquées en utilisant un point-virgule comme délimiteur. Si la valeur de retour est une liste, vous pouvez l'utiliser comme une liste, car elle sera divisée automatiquement pour vous. Actuellement, seuls les retours sont pris en charge : l'ensemble pourrait être disponible à l'avenir.
set {_tag} to tag "Invulnerable" of targeted entity's nbt
send "Tag: %tag ""CustomName"" of nbt of target entity%" to player
set {_tag} to "Enchantments" tag of nbt of player's tool
set {_tag} to "BlockEntityTag;Items" tag of nbt of target block
tag %string% of %string%
%string% tag of %string%
Description
Appelé lorsqu'un joueur entre dans une région.
on bound enter:
if event-bound = {bounds::spawn}:
send "You entered spawn!"
[on] bound enter
Description
Appelé à la sortie d'un joueur d'une région.
on bound exit:
send "You left a bound"
if event-bound = {bound}:
send "You left Spawn!"
[on] bound exit