2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.equipment",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Equipment",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "Sets the equipment table to use for the entity.",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"slot_drop_chance": {
|
|
|
|
|
"type": "array",
|
2022-07-13 21:57:44 +02:00
|
|
|
"description": "A list of slots with the chance to drop an equipped item from that slot.",
|
2021-10-08 12:59:03 +02:00
|
|
|
"title": "Slot Drop Chance",
|
|
|
|
|
"items": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"title": "Slot Drop Chance",
|
|
|
|
|
"description": "A slots with the chance to drop an equipped item from that slot.",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"drop_chance": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"title": "Drop Chance",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "The chance that the item in this slot will drop.",
|
2021-10-08 12:59:03 +02:00
|
|
|
"$comment": "UNDOCUMENTED"
|
|
|
|
|
},
|
2021-10-11 18:10:42 +02:00
|
|
|
"slot": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "Slot",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "The slot in which the item will drop from.",
|
2022-06-23 20:48:19 +01:00
|
|
|
"$comment": "UNDOCUMENTED",
|
2022-07-13 21:57:44 +02:00
|
|
|
"examples": ["slot.weapon.mainhand"]
|
2021-10-11 18:10:42 +02:00
|
|
|
}
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"table": {
|
|
|
|
|
"title": "Table",
|
|
|
|
|
"description": "The file path to the equipment table, relative to the behavior pack's root.",
|
|
|
|
|
"$ref": "../../../../general/loot_table/identifier.json"
|
|
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"slot_drop_chance": []
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|