Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/entitydata

From SAS Gaming Wiki

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 @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

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

Template:HistoryTable

See also

  1. REDIRECT Template:Command

Template:Redr — replaces the data of a block

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/entitydata es:Comandos/entitydata ja:コマンド/entitydata pt:Comandos/entitydata ru:Команды консоли/entitydata zh:命令/entitydata