Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/food.json
2022-06-07 20:49:57 +02:00

38 lines
1.5 KiB
JSON

{
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:food",
"title": "Food",
"description": "When an item has a food component, it becomes edible to the player.",
"type": "object",
"additionalProperties": false,
"properties": {
"can_always_eat": {
"title": "Can Always Eat",
"description": "If true you can always eat this item (even when not hungry), defaults to false.",
"type": "boolean",
"default": false
},
"nutrition": { "title": "Nutrition", "description": "How much nutrition does this food item give the player when eaten.", "type": "number" },
"on_consume": {
"title": "On Consume",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"properties": {
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] }
}
},
"saturation_modifier": {
"title": "Saturation Modifier",
"description": "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.",
"type": "number"
},
"using_converts_to": {
"title": "Using Converts To",
"description": "When used, convert the *this* item to the one specified by `using_converts_to`.",
"type": "string"
}
}
}