The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Commands/entitydata

From Minecraft Wiki
Jump to: navigation, search
entitydata
Restrictions

Operator

First introduced

Java Edition 1.8 (14w32b)

Removed

Java Edition 17w45b

Rose (2D).png
This page describes content that exists only in outdated versions of Java Edition.
This command was superseded by the /data command in Java Edition 1.13.

Modifies the data tag of an entity.

Syntax[edit]

entitydata <entity> <dataTag>

Arguments[edit]

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:Steve}).

Result[edit]

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[edit]

  • To prevent all zombies from picking up loot:
    entitydata @e[type=zombie] {CanPickUpLoot:0}

History[edit]

Java Edition
1.814w32bAdded /entitydata.
1.1317w45bRemoved /entitydata as its features are merged into /data.

See also[edit]

/blockdata — replaces the data of a block