Add entity equipment object

This commit is contained in:
Misode
2019-10-05 17:37:02 +02:00
parent e9d5a2d65d
commit faeeb5bf34
2 changed files with 68 additions and 10 deletions

View File

@@ -173,15 +173,15 @@
"multiply_base": "Multiply Base",
"multiply_total": "Multiply Total"
},
"slots": "Slots",
"$slot": {
"mainhand": "Mainhand",
"offhand": "Offhand",
"head": "Head",
"chest": "Chest",
"legs": "Legs",
"feet": "Feet"
}
"slots": "Slots"
},
"$slot": {
"mainhand": "Mainhand",
"offhand": "Offhand",
"head": "Head",
"chest": "Chest",
"legs": "Legs",
"feet": "Feet"
},
"$attribute": {
"generic_maxHealth": "Max Health",
@@ -249,6 +249,7 @@
"isSprinting": "Sprinting",
"isSwimming": "Swimming",
"isBaby": "Baby",
"equipment": "Equipment",
"status_effect": "Effects",
"status_effect_add": "Add Effect",
"status_effect_remove": "Remove Effect"

View File

@@ -705,7 +705,7 @@
"id": "slots",
"type": "set",
"translate": "$attribute_modifier.slots",
"translateValue": "$attribute_modifier.$slot",
"translateValue": "$slot",
"values": [
"mainhand",
"offhand",
@@ -814,6 +814,63 @@
}
]
},
{
"id": "equipment",
"type": "object",
"translate": "$entity.equipment",
"color": "dark",
"collapse": true,
"fields": [
{
"id": "mainhand",
"type": "object",
"translate": "$slot.mainhand",
"color": "dark",
"collapse": true,
"value": "item"
},
{
"id": "offhand",
"type": "object",
"translate": "$slot.offhand",
"color": "dark",
"collapse": true,
"value": "item"
},
{
"id": "head",
"type": "object",
"translate": "$slot.head",
"color": "dark",
"collapse": true,
"value": "item"
},
{
"id": "chest",
"type": "object",
"translate": "$slot.chest",
"color": "dark",
"collapse": true,
"value": "item"
},
{
"id": "legs",
"type": "object",
"translate": "$slot.legs",
"color": "dark",
"collapse": true,
"value": "item"
},
{
"id": "feet",
"type": "object",
"translate": "$slot.feet",
"color": "dark",
"collapse": true,
"value": "item"
}
]
},
{
"id": "effects",
"type": "map",