UNPKG

minecraft-data

Version:
71 lines (69 loc) 2.05 kB
{ "title": "foods", "type": "array", "uniqueItems": true, "items" : { "title": "food", "type": "object", "properties": { "id": { "description": "The associated item ID for this food item", "type": "integer", "minimum": 0 }, "displayName": { "description": "The display name of an item", "type": "string" }, "stackSize": { "description": "Stack size for an item", "type": "integer", "minimum": 0 }, "name": { "description": "The name of an item", "type": "string", "pattern": "\\S+" }, "foodPoints": { "description": "The amount of food points the food item replenishes", "type": "number", "minimum": 0 }, "saturation":{ "description": "The amount of saturation points the food restores (foodPoints * saturationRatio)", "type": "number", "minimum": 0 }, "effectiveQuality":{ "description": "foodPoints + saturation", "type": "number", "minimum": 0 }, "saturationRatio":{ "description": "The 'saturation modifier' in Minecraft code, used to determine how much saturation an item has", "type": "number", "minimum": 0 }, "variations" : { "type" : "array", "items": { "type" : "object", "properties": { "metadata":{ "type":"integer", "minimum": 0 }, "displayName":{ "type":"string" } }, "required": ["metadata", "displayName"], "additionalProperties":false } } }, "required": ["id", "displayName", "stackSize", "name", "foodPoints", "saturation", "effectiveQuality", "saturationRatio"], "additionalProperties":false } }