Files
Lukasandextremeheat 4ca8db1dd3 Add some 1.20.5 data (#879)
* 1.20.5 update

* Run entity metadata key extractor metadataKeys for entities.json

* add food data extractor

---------

Co-authored-by: extremeheat <extreme@protonmail.ch>
2024-06-23 19:17:04 -04:00

71 lines
2.0 KiB
JSON

{
"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
}
}