109 lines
3.0 KiB
JSON
109 lines
3.0 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"
|
|
}
|
|
},
|
|
"repairWith" : {
|
|
"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
|
|
},
|
|
"durability": {
|
|
"description": "durability value for editions that specify it alongside maxDurability",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"metadata": {
|
|
"description": "legacy data value used in some editions at the item level",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"name": {
|
|
"description": "The name of an item",
|
|
"type": "string",
|
|
"pattern": "\\S+"
|
|
},
|
|
"blockStateId": {
|
|
"description": "Block state id associated with this item in some editions",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"variations" : {
|
|
"type" : "array",
|
|
"items": {
|
|
"type" : "object",
|
|
"properties": {
|
|
"metadata":{
|
|
"type":"integer",
|
|
"minimum": 0
|
|
},
|
|
"displayName":{
|
|
"type":"string"
|
|
},
|
|
"id": {
|
|
"description": "The unique identifier for a variation (when applicable)",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"name": {
|
|
"description": "The name of a variation (when applicable)",
|
|
"type": "string",
|
|
"pattern": "\\S+"
|
|
},
|
|
"stackSize": {
|
|
"description": "Stack size for a variation (when applicable)",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"enchantCategories": {
|
|
"description": "describes categories of enchants this variation can use",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": ["metadata", "displayName"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": ["id", "displayName", "stackSize", "name"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|