Minecraft:Data component format/consumable: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 3: | Line 3: | ||
*** {{nbt|float|consume_seconds}}: The amount of seconds it takes for a player to consume the item. Defaults to 1.6. | *** {{nbt|float|consume_seconds}}: The amount of seconds it takes for a player to consume the item. Defaults to 1.6. | ||
*** {{nbt|string|animation}}: The animation used during consumption of the item. Must be one of {{cd|none|eat|drink|block|bow|spear|crossbow|spyglass|toot_horn|brush|bundle|d=or|trident}}. Defaults to <code>eat</code>. | *** {{nbt|string|animation}}: The animation used during consumption of the item. Must be one of {{cd|none|eat|drink|block|bow|spear|crossbow|spyglass|toot_horn|brush|bundle|d=or|trident}}. Defaults to <code>eat</code>. | ||
*** {{nbt|string}}{{nbt|compound|sound}}: {{json_ref|server-side sound event|inline=1}} used during and on completion of the item's consumption. Defaults to <code>entity.generic.eat</code>. | *** {{nbt|string}}{{nbt|compound|sound}}: Optional{{upcoming|JE 26.4}}; {{json_ref|server-side sound event|inline=1}} used during and on completion of the item's consumption. Defaults to <code>entity.generic.eat</code>. | ||
**** {{nbt inherit/sound event|sounds}} | **** {{nbt inherit/sound event|sounds}} | ||
*** {{nbt|bool|has_consume_particles}}: Whether consumption particles are emitted while consuming this item. Defaults to <code>true</code>. | *** {{nbt|bool|has_consume_particles}}: Whether consumption particles are emitted while consuming this item. Defaults to <code>true</code>. | ||
Latest revision as of 11:15, 22 October 2026
- Template:Nbt: If present, this item can be consumed on use.
- Template:Nbt: The amount of seconds it takes for a player to consume the item. Defaults to 1.6.
- Template:Nbt: The animation used during consumption of the item. Must be one of Template:Cd. Defaults to
eat. - Template:NbtTemplate:Nbt: OptionalTemplate:Upcoming; Template:Json ref used during and on completion of the item's consumption. Defaults to
entity.generic.eat. - Template:Nbt: Whether consumption particles are emitted while consuming this item. Defaults to
true. - Template:Nbt: A list of effects which take place as a result of consuming this item. Optional.
- Template:Nbt: A single consume effect.
- Template:Nbt: If present, this item can be consumed on use.
Minecraft:fr:Format de composant de données/consumable Minecraft:ja:データコンポーネント/consumable Minecraft:uk:Формат компонента даних/consumable