Data component format/consumable
Minecraft Wiki article. Categories: Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/consumable on the Minecraft Wiki. Mirrored from revision 3681306. 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:consumable: If present, this item can be consumed on use.
- [Float] consume_seconds: The amount of seconds it takes for a player to consume the item. Defaults to 1.6.
- [String] animation: The animation used during consumption of the item. Must be one of
none,eat,drink,block,bow,spear,crossbow,spyglass,toot_horn,brush,bundle, ortrident. Defaults toeat. - [String][NBT Compound / JSON Object] sound: One server-side sound event (an [String] ID, or a new [NBT Compound / JSON Object] server-side sound event definition) used during and on completion of the item's consumption. Defaults to
entity.generic.eat.- A sound event see Template:Nbt inherit/sound event/template
- [Boolean] has_consume_particles: Whether consumption particles are emitted while consuming this item. Defaults to
true. - [NBT List / JSON Array] on_consume_effects: A list of effects which take place as a result of consuming this item. Optional.
- [NBT Compound / JSON Object]: A single consume effect.
- Consume effect see Template:Nbt inherit/consume effect/template
- [NBT Compound / JSON Object]: A single consume effect.
- [NBT Compound / JSON Object] minecraft:consumable: If present, this item can be consumed on use.
Sources
- Data component format/consumable — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3681306.