mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 07:06:23 +03:00
* Created loot files * Converted IDs to names. * Split block and entity loot tables. * Added accurate silkTouch and dropChance * Added noSlikTouch flag. * Added loot data paths. Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com> * Wrote blockLoot schema first draft. Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com> * Created entity loot schema Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com> * Add loot tables to test Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com> * Added stack size and block age. * Updated schema * Removed duplicate entry.
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"title": "blockLoot",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"title": "blockLootEntry",
|
|
"type": "object",
|
|
"properties": {
|
|
"block": {
|
|
"description": "The name of the block",
|
|
"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"
|
|
},
|
|
"stackSize": {
|
|
"description": "The number of items in this item drop stack",
|
|
"type": ["number", "array"],
|
|
"uniqueItems": true
|
|
},
|
|
"blockAge": {
|
|
"description": "The required age of the block for the item drop to occur",
|
|
"type": "number"
|
|
},
|
|
"silkTouch": {
|
|
"description": "If silk touch is required",
|
|
"type": "boolean"
|
|
},
|
|
"noSilkTouch": {
|
|
"description": "If not having silk touch is required",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"item",
|
|
"dropChance",
|
|
"stackSize"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"block",
|
|
"drops"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|