Minecraft:Commands/entitydata: Difference between revisions
From SAS Gaming Wiki
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{Outdated feature|This command was superseded by the '''[[Minecraft:Commands/data|/data]]''' command in Java Edition 1.13.|edition=java}} | {{Outdated feature|This command was superseded by the '''[[Minecraft:Commands/data|/data]]''' command in Java Edition 1.13.|edition=java}} | ||
{{Exclusive|java}} | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=entitydata | |name=entitydata | ||
| Line 33: | Line 33: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.8|dev=14w32b|Added {{ | |{{HistoryLine||1.8|dev=14w32b|Added {{MC/Cmd|entitydata|link=none}}.}} | ||
|{{HistoryLine||1.13|dev=17w45b|Removed {{ | |{{HistoryLine||1.13|dev=17w45b|Removed {{MC/Cmd|entitydata|link=none}} as its features are merged into {{MC/Cmd|data}}.}} | ||
}} | }} | ||
== See also == | == See also == | ||
* {{ | * {{MC/Cmd|blockdata}} — replaces the data of a block | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/entitydata | de:Befehl/entitydata | ||
Latest revision as of 20:09, 9 April 2026
Template:Outdated feature Script error: No such module "Exclusive". Template:Infobox command
Modifies the data tag of an 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 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 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 (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
- REDIRECT Template:Command
Template:Redr — replaces the data of a block
de:Befehl/entitydata es:Comandos/entitydata ja:コマンド/entitydata pt:Comandos/entitydata ru:Команды консоли/entitydata zh:命令/entitydata