From a73062e824ec6fa476a288b7390e91d1382f2c99 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 5 Oct 2019 16:53:54 +0200 Subject: [PATCH] Add exploration_map function --- locales/en.json | 11 +++++-- locales/zh-CN.json | 7 ++++- schemas/1.14.json | 75 +++++++++++++++++++++++++++++++++++++++++++++- view.js | 6 ++-- 4 files changed, 92 insertions(+), 7 deletions(-) diff --git a/locales/en.json b/locales/en.json index 6671d2f9..4c68334d 100644 --- a/locales/en.json +++ b/locales/en.json @@ -129,7 +129,8 @@ "fill_player_head": "Fill Player Head", "copy_name": "Copy Name", "copy_nbt": "Copy NBT", - "apply_bonus": "Apply Bonus" + "apply_bonus": "Apply Bonus", + "exploration_map": "Exploration Map Properties" }, "type": "Function", "count": "Count", @@ -155,7 +156,12 @@ }, "bonusMultiplier": "Multiplier", "extra": "Extra", - "probability": "Propability" + "probability": "Propability", + "destination": "Destination", + "decoration": "Decoration", + "zoom": "Zoom", + "searchRadius": "Search Radius (Chunks)", + "skipExistingChunks": "Skip Existing Chunks" }, "$attribute_modifier": { "attribute": "Attribute", @@ -295,6 +301,7 @@ "condition_remove": "Remove Condition", "enchantment_remove": "Remove Enchantment", "entry_remove": "Remove Entry", + "error": "Error", "function_remove": "Remove Function", "attribute_modifier_remove": "Remove Modifier", "operation_remove": "Remove Operation", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index de65e696..3d609f7f 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -154,7 +154,12 @@ }, "bonusMultiplier": "乘数", "extra": "额外值", - "probability": "概率" + "probability": "概率", + "destination": "目标", + "decoration": "图标", + "zoom": "缩放等级", + "searchRadius": "搜寻半径", + "skipExistingChunks": "跳过已生成区块" }, "$attribute_modifier": { "attribute": "属性", diff --git a/schemas/1.14.json b/schemas/1.14.json index 9cdb6e0a..ac46af6c 100644 --- a/schemas/1.14.json +++ b/schemas/1.14.json @@ -174,7 +174,8 @@ "minecraft:fill_player_head", "minecraft:copy_name", "minecraft:copy_nbt", - "minecraft:apply_bonus" + "minecraft:apply_bonus", + "minecraft:exploration_map" ] }, { @@ -251,6 +252,49 @@ "minecraft:limit_count" ] }, + { + "id": "destination", + "type": "enum", + "translate": "$function.destination", + "values": "structures", + "require": [ + "minecraft:exploration_map" + ] + }, + { + "id": "decoration", + "type": "enum", + "translate": "$function.decoration", + "values": "map_icons", + "require": [ + "minecraft:exploration_map" + ] + }, + { + "id": "zoom", + "type": "int", + "translate": "$function.zoom", + "require": [ + "minecraft:exploration_map" + ] + }, + { + "id": "search_radius", + "type": "int", + "translate": "$function.searchRadius", + "require": [ + "minecraft:exploration_map" + ] + }, + { + "id": "skip_existing_chunks", + "type": "boolean", + "translate": "$function.skipExistingChunks", + "default": true, + "require": [ + "minecraft:exploration_map" + ] + }, { "id": "entity", "type": "enum", @@ -1227,6 +1271,35 @@ "minecraft:dolphins_grace", "minecraft:bad_omen", "minecraft:hero_of_the_village" + ], + "map_icons": [ + "mansion", + "monument", + "player", + "frame", + "red_marker", + "blue_marker", + "target_x", + "target_point", + "player_off_map", + "player_off_limits", + "red_x", + "banner_white", + "banner_orange", + "banner_magenta", + "banner_light_blue", + "banner_yellow", + "banner_lime", + "banner_pink", + "banner_gray", + "banner_light_gray", + "banner_cyan", + "banner_purple", + "banner_blue", + "banner_brown", + "banner_green", + "banner_red", + "banner_black" ] } } diff --git a/view.js b/view.js index 48122010..56196d19 100644 --- a/view.js +++ b/view.js @@ -166,13 +166,13 @@ function generateEnum(data, struct) { for (let value of collection) { if (typeof value === 'object') { if (value.require.includes(correctNamespace(table.type))) { - $el.find('select').append(setValueAndName($('