Wiki ArticleTop-level data pages

Data component format/consumable

    • [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, or trident. Defaults to eat.
      • [String][NBT Compound / JSON Object] sound: One sound event (an [String] ID, or a new [NBT Compound / JSON Object] sound event definition) used during and on completion of the item's consumption. Defaults to entity.generic.eat.
      • [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.