Data component format/entity data

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/entity data on the Minecraft Wiki. Mirrored from revision 3696404. 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.

    • [NBT Compound / JSON Object] minecraft:entity_data: NBT applied to an entity when created from an item.
      • [String] id: The resource location of the entity. If the item is a spawn egg and this id is falling_block, command_block_minecart, or spawner_minecart, this component adds a red message to the item's tooltip (for operator players only) warning the player that using it may result in command execution. Define the generating entity by spawn egg. For other items, it must be equal to the id of the entity generated by the item; otherwise, the component is not effective.
      • [Undefined] <any field>: Optional. See Entity format for effective fields, excludes id, UUID and Passengers. Applies the NTB tag to the entity if it is valid and applicable. Other fields can be added, but they have no effect.

Sources