From 990cd2c1a856485ac39807c022f712d06c390f16 Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 9 Oct 2019 11:19:29 +0200 Subject: [PATCH] Add item enchantments and stored_enchantments --- locales/en.json | 5 ++++- locales/ru.json | 4 +++- locales/zh-CN.json | 4 +++- schemas/1.14.json | 26 ++++++++++++++++++++++++++ schemas/1.15.json | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 3 deletions(-) diff --git a/locales/en.json b/locales/en.json index 3d56ede5..f2c7befc 100644 --- a/locales/en.json +++ b/locales/en.json @@ -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", diff --git a/locales/ru.json b/locales/ru.json index 16424159..c6da4045 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -253,7 +253,9 @@ "count": "Количество", "durability": "Прочность", "potion": "Зелье", - "nbt": "NBT" + "nbt": "NBT", + "enchantment": "Чары", + "levels": "Уровень" }, "2_spaces": "2 пробела", "4_spaces": "4 пробела", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 33edd3bd..27239d98 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -258,7 +258,9 @@ "count": "数量", "durability": "耐久度", "potion": "药水", - "nbt": "NBT" + "nbt": "NBT", + "enchantment": "附魔", + "levels": "等级" }, "2_spaces": "2 空格缩进", "4_spaces": "4 空格缩进", diff --git a/schemas/1.14.json b/schemas/1.14.json index b35b1e23..7ffadcd0 100644 --- a/schemas/1.14.json +++ b/schemas/1.14.json @@ -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" } ] }, diff --git a/schemas/1.15.json b/schemas/1.15.json index c489f27e..b65a34dc 100644 --- a/schemas/1.15.json +++ b/schemas/1.15.json @@ -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" } ] },