1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-07-05 23:33:44 +00:00
Files
Mike Ammerlaan d2c831e602 v1.21.90.3
2025-06-18 05:19:56 -07:00

44 lines
1.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "268086052",
"x-format-version": "1.20.50",
"x-minecraft-version": "1.21.90-beta.3",
"definitions": {
"1531870811": {
"title": "struct SharedTypes::Legacy::ItemDescriptor",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": {
"type": "string"
}
}
]
}
},
"title": "minecraft:food",
"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.",
"type": "object",
"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.",
"type": "number",
"minimum": 0.0
},
"using_converts_to": {
"description": "When used, converts to the item specified by the string in this field. Default does not convert item.",
"$ref": "#/definitions/1531870811"
}
}
}