Commands/entitydata
Minecraft Wiki article. Categories: Removed_features, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/entitydata on the Minecraft Wiki. Mirrored from revision 3666731. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
This page describes content that has been removed and was only present in earlier versions of Java Edition.
This command was superseded by the /data command in Java Edition 1.13.
/entitydata{
"title": "<code>/entitydata</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "None",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
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
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
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.8 | 14w32b | Added /entitydata. | |||||
| 1.13 | 17w45b | Removed /entitydata as its features are merged into /data. | |||||
See also
/blockdata— replaces the data of a block
Navigation
Sources
- Commands/entitydata — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3666731.