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

Minecraft:Data component format/entity data: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 1: Line 1:
<div class="treeview">
<div class="treeview">
<onlyinclude>** {{nbt|compound|minecraft:entity_data}}: NBT applied to an [[Minecraft:entity]] when created from an item.
<onlyinclude>
** {{nbt|compound|minecraft:entity_data}}: NBT applied to an [[Minecraft:entity]] when created from an item.
*** {{nbt|string|id}}: The [[Minecraft:resource location]] of the entity. If the item is a [[Minecraft:spawn egg]] and this '''id''' is {{cd|falling_block|command_block_minecart|spawner_minecart|d=or}}, 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.
*** {{nbt|string|id}}: The [[Minecraft:resource location]] of the entity. If the item is a [[Minecraft:spawn egg]] and this '''id''' is {{cd|falling_block|command_block_minecart|spawner_minecart|d=or}}, 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.
*** {{nbt||<''any field''>}}: Optional. See [[Minecraft:Entity format]] for effective fields, excludes {{cd|id}}, {{cd|UUID}} and {{cd|Passengers}}. Applies the NTB tag to the entity if it is valid and applicable. Other fields can be added, but they have no effect.<!--
*** {{nbt||<''any field''>}}: Optional. See [[Minecraft:Entity format]] for effective fields, excludes {{cd|id}}, {{cd|UUID}} and {{cd|Passengers}}. Applies the NBT tag to the entity if it is valid and applicable. Other fields can be added, but they have no effect.<!-- --></onlyinclude></div><noinclude>
--></onlyinclude></div><noinclude>
[[Category:Top-level data pages]]
[[Category:Top-level data pages]]



Revision as of 11:07, 1 October 2026

Minecraft:fr:Format de composant de données/entity data Minecraft:ja:データコンポーネント/entity data Minecraft:pt:Formato de componente de dado/entity data Minecraft:uk:Формат компонента даних/entity data Minecraft:zh:物品堆叠组件/entity data