1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-09-28 18:22:54 +00:00
Files
2025-09-09 10:02:11 -07:00

43 lines
1.4 KiB
JSON

{
"$id": "268086052",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"1531870811": {
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": {
"type": "string"
},
"type": "object"
}
],
"title": "Item Descriptor"
}
},
"description": "When an item has a food component, it becomes edible to the player. Must have the 'minecraft:use_duration' component in order to function properly.",
"properties": {
"can_always_eat": {
"description": "If true you can always eat this item (even when not hungry). Default is set to false.",
"type": "boolean"
},
"nutrition": {
"description": "Value that is added to the entity's nutrition when the item is used. Default is set to 0.",
"type": "integer"
},
"saturation_modifier": {
"description": "saturation_modifier is used in this formula: (nutrition * saturation_modifier * 2) when applying the saturation buff. Default is set to 0.6.",
"minimum": 0,
"type": "number"
},
"using_converts_to": {
"$ref": "#/definitions/1531870811",
"description": "When used, converts to the item specified by the string in this field. Default does not convert item."
}
},
"title": "minecraft:food",
"type": "object",
"x-format-version": "1.20.50"
}