forked from PrismarineJS/minecraft-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoods_schema.json
71 lines (69 loc) · 1.92 KB
/
foods_schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"title": "foods",
"type": "array",
"uniqueItems": true,
"items" : {
"title": "food",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for an 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",
"type": "number",
"minimum": 0
},
"effectiveQuality":{
"description": "The effective quality of the food item",
"type": "number",
"minimum": 0
},
"saturationRatio":{
"description": "The saturation ratio of the food item",
"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
}
}