Files
minecraft-data/schemas/enchantments_schema.json
T
u9gandU9G c8e11f551f add treasureOnly, weight, curse, tradeable, discoverable, rem multiplier (#377)
* add treasureOnly, weight, curse, tradeable, discoverable, rem multiplier

* undo

* propogated properties & removed item & book modifiers

* Delete out.json

* add info to the add data doc

* Update enchantments_schema.json

Co-authored-by: U9G <winworkswow@gmail.com>
2021-02-26 20:10:56 +01:00

105 lines
2.4 KiB
JSON

{
"title": "enchantments",
"type": "array",
"uniqueItems": true,
"items" : {
"title": "enchantment",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for an enchantment",
"type": "integer",
"minimum": 0
},
"name": {
"description": "The name of an enchantment",
"type": "string",
"pattern": "\\S+"
},
"displayName": {
"description": "The display name of an enchantment",
"type": "string"
},
"maxLevel": {
"description": "The maximum level of an enchantment",
"type": "integer",
"minimum": 1,
"maximum": 5
},
"minCost": {
"description": "Min cost equation's coefficients a * level + b",
"type": "object",
"properties": {
"a": {
"type": "integer"
},
"b": {
"type": "integer"
}
}
},
"maxCost": {
"description": "Max cost equation's coefficients a * level + b",
"type": "object",
"properties": {
"a": {
"type": "integer"
},
"b": {
"type": "integer"
}
}
},
"treasureOnly": {
"description": "Can only be found in a treasure, not created",
"type": "boolean"
},
"curse": {
"description": "Is a curse, not an enchantment",
"type": "boolean"
},
"exclude": {
"description": "List of enchantment not compatibles",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"category": {
"description": "The category of enchantable items",
"type": "string"
},
"weight": {
"description": "Weight of the rarity of the enchantment",
"type": "integer",
"minimum": 1,
"maximum": 10
},
"tradeable": {
"description": "Can this enchantment be traded",
"type": "boolean"
},
"discoverable": {
"description": "Can this enchantment be discovered",
"type": "boolean"
}
},
"required": [
"id",
"name",
"displayName",
"maxLevel",
"minCost",
"maxCost",
"exclude",
"category",
"weight",
"treasureOnly",
"curse",
"tradeable",
"discoverable"
]
}
}