mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 07:26:12 +03:00
* Add to items.json * change all needed items.json files * change durability to maxDurability * Update items_schema.json * fix schema * Release 2.79.0 Co-authored-by: U9G <winworkswow@gmail.com>
76 lines
1.9 KiB
JSON
76 lines
1.9 KiB
JSON
{
|
|
"title": "items",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items" : {
|
|
"title": "item",
|
|
"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
|
|
},
|
|
"enchantCategories" : {
|
|
"description": "describes categories of enchants this item can use",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"fixedWith" : {
|
|
"description": "describes what items this item can be fixed with in an anvil",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"maxDurability": {
|
|
"description": "the amount of durability an item has before being damaged/used",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"name": {
|
|
"description": "The name of an item",
|
|
"type": "string",
|
|
"pattern": "\\S+"
|
|
},
|
|
"variations" : {
|
|
"type" : "array",
|
|
"items": {
|
|
"type" : "object",
|
|
"properties": {
|
|
"metadata":{
|
|
"type":"integer",
|
|
"minimum": 0
|
|
},
|
|
"displayName":{
|
|
"type":"string"
|
|
}
|
|
},
|
|
"required": ["metadata", "displayName"],
|
|
"additionalProperties":false
|
|
}
|
|
},
|
|
"durability": {
|
|
"description": "The durability of an item",
|
|
"type": ["integer", "null"],
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": ["id", "displayName", "stackSize", "name"],
|
|
"additionalProperties": true
|
|
}
|
|
}
|