Files
minecraft-data/schemas/entityLoot_schema.json
T

55 lines
1.3 KiB
JSON

{
"title": "entityLoot",
"type": "array",
"uniqueItems": true,
"items": {
"title": "entityLootEntry",
"type": "object",
"properties": {
"entity": {
"description": "The name of the entity",
"type": "string",
"pattern": "\\S+"
},
"drops": {
"description": "The list of item drops",
"type": "array",
"uniqueItems": true,
"items": {
"title": "itemDrop",
"type": "object",
"properties": {
"item": {
"description": "The name of the item being dropped",
"type": "string"
},
"dropChance": {
"description": "The percent chance of the item drop to occur",
"type": "number"
},
"stackSizeRange": {
"description": "The min/max of number of items in this item drop stack",
"type": "array"
},
"playerKill": {
"description": "If a player killer is required",
"type": "boolean"
}
},
"required": [
"item",
"dropChance",
"stackSizeRange"
],
"additionalProperties": false
}
}
},
"required": [
"entity",
"drops"
],
"additionalProperties": false
}
}