コマンド/entitydata

提供: Minecraft Wiki
移動先: 案内検索
entitydata
制限

オペレーター

初導入

1.8 (14w32b)

Modifies the data tag of an entity.

構文
entitydata <entity> <dataTag>
引数
entity
Specifies the entity(ies) to be modified. Must be an entity UUID or the @e target selector.
dataTag
Specifies the data tag elements to be added to, or overwrite elements of, the specified entity (data tags cannot be removed and strings cannot be set to a null value). Must be a compound NBT tag (for example, {CustomName:Fred}).
結果
Fails if the arguments are not specified correctly, or if entity fails to resolve to one or more non-player entities (players can not be changed).
On success, modifies the data tag of the targeted entity(ies).
To prevent all current zombies from picking up loot:
entitydata @e[type=zombie] {CanPickUpLoot:0}