Commands/infobox
Modifies the data tag of an entity.
- Syntax
entitydata <entity> <dataTag>
- Arguments
- entity
- Specifies the entity(ies) to be modified. Must be an entity UUID or the
@e
target selector.
- Specifies the entity(ies) to be modified. Must be an entity UUID or the
- dataTag
- Result
- 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).
- Examples
- To prevent all current zombies from picking up loot:
entitydata @e[type=zombie] {CanPickUpLoot:0}