Minecraft:Commands/entitydata: Difference between revisions
From SAS Gaming Wiki
More actions
imported>YoureIronic No edit summary |
Sync: updated from Minecraft |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Outdated feature|This command was superseded by the '''[[Minecraft:Commands/data|/data]]''' command in [[Minecraft:Java Edition 1.13]].|edition=java}} | {{Outdated feature|This command was superseded by the '''[[Minecraft:Commands/data|/data]]''' command in [[Minecraft:Java Edition 1.13]].|edition=java}} | ||
{{Infobox command | {{Infobox command | ||
|name=entitydata | |name=entitydata | ||
Latest revision as of 11:11, 10 July 2026
Template:Outdated feature Template:Infobox command
Modifies the Minecraft:data tag of an Minecraft:entity.
Syntax
entitydata <entity> <dataTag>
Arguments
- entity
- Specifies the entity or entities to be modified. Must be an entity UUID or the
@etarget selector.
- Specifies the entity or entities to be modified. Must be an entity UUID or the
- 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 Minecraft:NBT tag (for example,
{CustomName:Steve}).
- 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 Minecraft:NBT tag (for example,
Result
Fails if the arguments are not specified correctly, or if entity fails to resolve to one or more non-player entities (Minecraft:players cannot be changed).
On success, modifies the data tag of the targeted entity or entities.
Examples
- To prevent all zombies from picking up loot:
entitydata @e[type=zombie] {CanPickUpLoot:0}
History
See also
- Template:Cmd — replaces the data of a block
Minecraft:de:Befehl/entitydata Minecraft:es:Comandos/entitydata Minecraft:ja:コマンド/entitydata Minecraft:pt:Comandos/entitydata Minecraft:ru:Команды консоли/entitydata Minecraft:zh:命令/entitydata