Data component format/food

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/food on the Minecraft Wiki. Mirrored from revision 3432839. 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:food: The food stats applied to the mob or player upon consuming this item.
      • [Int] nutrition: The number of food points restored by this item when the player eats. The number of health points restored by this item when used to feed cats. Wolfs, nautilus and zombie nautilus restored the twice the value. Must be a non-negative integer.
      • [Float] saturation: The amount of saturation restored by this item when eaten.
      • [Boolean] can_always_eat: If true, this item can be eaten even if the player is not hungry. Defaults to false.

Sources