Add item enchantments and stored_enchantments

This commit is contained in:
Misode
2019-10-09 11:19:29 +02:00
parent 456b21ace9
commit 990cd2c1a8
5 changed files with 69 additions and 3 deletions

View File

@@ -291,13 +291,16 @@
"count": "Count",
"durability": "Durability",
"potion": "Potion",
"nbt": "NBT"
"nbt": "NBT",
"enchantment": "Enchantment",
"levels": "Levels"
},
"2_spaces": "2 Spaces",
"4_spaces": "4 Spaces",
"child_add": "Add Child",
"condition_add": "Add Condition",
"enchantment_add": "Add Enchantment",
"stored_enchantment_add": "Add Stored Enchantment",
"entry_add": "Add Entry",
"function_add": "Add Function",
"attribute_modifier_add": "Add Modifier",

View File

@@ -253,7 +253,9 @@
"count": "Количество",
"durability": "Прочность",
"potion": "Зелье",
"nbt": "NBT"
"nbt": "NBT",
"enchantment": "Чары",
"levels": "Уровень"
},
"2_spaces": "2 пробела",
"4_spaces": "4 пробела",

View File

@@ -258,7 +258,9 @@
"count": "数量",
"durability": "耐久度",
"potion": "药水",
"nbt": "NBT"
"nbt": "NBT",
"enchantment": "附魔",
"levels": "等级"
},
"2_spaces": "2 空格缩进",
"4_spaces": "4 空格缩进",

View File

@@ -1059,6 +1059,32 @@
"id": "nbt",
"type": "nbt",
"translate": "$item.nbt"
},
{
"id": "enchantments",
"type": "array",
"translate": "enchantment",
"button": "field",
"values": "enchantment"
}
]
},
{
"id": "enchantment",
"type": "object",
"color": "dark",
"fields": [
{
"id": "enchantment",
"type": "enum",
"translate": "$item.enchantment",
"translateValue": "$enchantment",
"values": "enchantments"
},
{
"id": "levels",
"type": "range",
"translate": "$item.levels"
}
]
},

View File

@@ -1076,6 +1076,39 @@
"id": "nbt",
"type": "nbt",
"translate": "$item.nbt"
},
{
"id": "enchantments",
"type": "array",
"translate": "enchantment",
"button": "field",
"values": "enchantment"
},
{
"id": "stored_enchantments",
"type": "array",
"translate": "stored_enchantment",
"button": "field",
"values": "enchantment"
}
]
},
{
"id": "enchantment",
"type": "object",
"color": "dark",
"fields": [
{
"id": "enchantment",
"type": "enum",
"translate": "$item.enchantment",
"translateValue": "$enchantment",
"values": "enchantments"
},
{
"id": "levels",
"type": "range",
"translate": "$item.levels"
}
]
},