From 64a028a983099699a862c9e02df10a5f142dcbc2 Mon Sep 17 00:00:00 2001 From: CTfish0101 Date: Tue, 20 Oct 2026 20:10:27 +0800 Subject: [PATCH] Add files via upload --- .../resources/language/zh_CN/command_gui.yml | 295 +++++++++++++++++ .../language/zh_CN/command_messages.yml | 232 ++++++++++++++ .../resources/language/zh_CN/formatting.yml | 104 ++++++ .../src/main/resources/language/zh_CN/gui.yml | 303 ++++++++++++++++++ .../resources/language/zh_CN/hologram.yml | 20 ++ .../language/zh_CN/iridium_skyblock.yml | 19 ++ .../main/resources/language/zh_CN/items.yml | 92 ++++++ .../resources/language/zh_CN/messages.yml | 141 ++++++++ 8 files changed, 1206 insertions(+) create mode 100644 core/src/main/resources/language/zh_CN/command_gui.yml create mode 100644 core/src/main/resources/language/zh_CN/command_messages.yml create mode 100644 core/src/main/resources/language/zh_CN/formatting.yml create mode 100644 core/src/main/resources/language/zh_CN/gui.yml create mode 100644 core/src/main/resources/language/zh_CN/hologram.yml create mode 100644 core/src/main/resources/language/zh_CN/iridium_skyblock.yml create mode 100644 core/src/main/resources/language/zh_CN/items.yml create mode 100644 core/src/main/resources/language/zh_CN/messages.yml diff --git a/core/src/main/resources/language/zh_CN/command_gui.yml b/core/src/main/resources/language/zh_CN/command_gui.yml new file mode 100644 index 00000000..079fe935 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/command_gui.yml @@ -0,0 +1,295 @@ +# ────────────────────────────────────────────────────── +# General Components +# ────────────────────────────────────────────────────── +general_navigation: + previous_page: + name: '%eb9a上一页' + lore: + - 'cc483 ▸ &#f8f8ff点击前往第 %eb9a{target_page} 页' + next_page: + name: '%eb9a下一页' + lore: + - 'cc483 ▸ &#f8f8ff点击前往第 %eb9a{target_page} 页' + close: + name: '&#FF6B6B关闭' + lore: + - '&#FF6B6B ▸ &f点击以关闭!' + back: + name: '&f返回 &#FF6B6B{previous_menu}' + lore: + - '&c ▸ &f点击以返回!' + menu_names: + server_selection: '服务器选择' + world_selection: '维度选择' + spawner_list: '刷怪笼列表' + spawner_management: '刷怪笼管理' + +general: + selected_option: ' DB5F1• {option_name}' + unselected_option: ' &f• {option_name}' + +# ────────────────────────────────────────────────────── +# Server Selection GUI (for cross-server setups) +# ────────────────────────────────────────────────────── +gui_title_server_selection: '选择服务器' +gui_title_world_selection_server: '{server} 维度' + +server_selection: + current_server: + name: '%eb9a{server}' + lore: + - '' + - ' %eb9aℹ 状态:' + - ' &8• &f当前服务器' + - '' + - '%eb9a ▸ 点击查看刷怪笼!' + remote_server: + name: '&#F0C857{server}' + lore: + - '' + - ' &#F0C857ℹ 状态:' + - ' &8• &f远程服务器' + - '' + - '&#F0C857 ▸ 点击查看刷怪笼!' + +# ────────────────────────────────────────────────────── +# World Selection GUI +# ────────────────────────────────────────────────────── +gui_title_world_selection: '选择维度' + +world_display_names: + overworld: '主世界' + nether: '下界' + the_end: '末地' + custom: '维度 {world_name}' + +world_buttons: + NORMAL: + name: '%eb9a{world_name}' + lore: + - '' + - ' %eb9aℹ 统计:' + - ' &8• &f刷怪笼方块:&e{total}' + - ' &8• &f堆叠刷怪笼:&e{total_stacked}' + - '{remote_world_lore}' + - '' + - '%eb9a ▸ 点击打开列表!' + NETHER: + name: '&#FF6B6B{world_name}' + lore: + - '' + - ' &#FF6B6Bℹ 统计:' + - ' &8• &f刷怪笼方块:&e{total}' + - ' &8• &f堆叠刷怪笼:&e{total_stacked}' + - '{remote_world_lore}' + - '' + - '&#FF6B6B ▸ 点击打开列表!' + THE_END: + name: '&#C8A2FF{world_name}' + lore: + - '' + - ' &#C8A2FFℹ 统计:' + - ' &8• &f刷怪笼方块:&e{total}' + - ' &8• &f堆叠刷怪笼:&e{total_stacked}' + - '{remote_world_lore}' + - '' + - '&#C8A2FF ▸ 点击打开列表!' + CUSTOM: + name: 'DB5F1{world_name}' + lore: + - '' + - ' DB5F1ℹ 统计:' + - ' &8• &f刷怪笼方块:&e{total}' + - ' &8• &f堆叠刷怪笼:&e{total_stacked}' + - '{remote_world_lore}' + - '' + - 'DB5F1 ▸ 点击打开列表!' + +remote_world_lore: + - '' + - ' &#F0C857ℹ 远程世界:' + - ' &8• &f服务器:&e{server}' + +# ────────────────────────────────────────────────────── +# Spawner List GUI +# ────────────────────────────────────────────────────── +gui_title_spawner_list: '[{current}/{total}] {world}' +gui_title_spawner_list_remote: '[{current}/{total}] {world} ({server})' + +filter: + button: + name: '&f筛选 DB5F1刷怪笼' + lore: + - '' + - '{available_options}' + - '' + - 'DB5F1 ▸ 点击更改筛选!' + option_name: + all: '全部' + active: '激活' + inactive: '未激活' + +sort: + button: + name: '&f排序 DB5F1刷怪笼' + lore: + - '' + - '{available_options}' + - '' + - 'DB5F1 ▸ 点击更改排序!' + option_name: + default: '默认 (ID)' + stack_size_asc: '堆叠数量 (↑)' + stack_size_desc: '堆叠数量 (↓)' + +spawner_item_list: + name: '&f刷怪笼 DB5F1#{id}' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f实体:&e{entity}' + - ' &8• &f堆叠:&e{size}' + - ' &8• &f状态:{status}' + - ' &8• &f最后玩家:&e{last_player}' + - ' &8• &f位置:&7x: {x}, y: {y}, z: {z}' + - '' + - 'DB5F1 ▸ 点击管理此刷怪笼!' + remote_lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f实体:&e{entity}' + - ' &8• &f堆叠:&e{size}' + - ' &8• &f状态:{status}' + - ' &8• &f最后玩家:&e{last_player}' + - ' &8• &f位置:&7x: {x}, y: {y}, z: {z}' + - '' + - '&#FF6B6B ⚠ 无法管理远程刷怪笼!' + last_player_none: '无' + status: + active: '�E689激活' + inactive: '&#ff6b6b未激活' + +# ────────────────────────────────────────────────────── +# Spawner Management GUI +# ────────────────────────────────────────────────────── +gui_title_spawner_management: '管理刷怪笼' + +spawner_management: + teleport: + name: '&f传送 DB5F1至刷怪笼' + lore: + - 'DB5F1 ▸ &f点击传送!' + open_spawner: + name: '&f打开 DB5F1刷怪笼界面' + lore: + - 'DB5F1 ▸ &f点击打开菜单!' + remove: + name: '&f移除 &#FF6B6B刷怪笼' + lore: + - '&#FF6B6B ▸ &f点击移除此刷怪笼!' + +# ────────────────────────────────────────────────────── +# Prices GUI +# ────────────────────────────────────────────────────── +gui_title_prices: '[{current_page}/{total_pages}] 出售价格' + +price_item: + name: '&f{item_name} DB5F1价格' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f最终价格:&a${price}' + - ' &8• &f来源:&e{price_source}' + - ' &8• &f自定义价格:&a${custom_price}' + - ' &8• &f商店价格:&a${shop_price}' + +# ────────────────────────────────────────────────────── +# Loot Editor (/ss editloot) +# ────────────────────────────────────────────────────── +editloot: + mob_loot_title: '生物战利品 • {entry}' + item_loot_title: '物品战利品 • {entry}' + capture_add_title: '丢弃物品以添加' + capture_replace_title: '丢弃新物品' + + loot_entry: + name: '&f战利品 %eb9a{label}' + lore: + - '' + - ' %eb9aℹ 信息:' + - ' &8• &f物品:&e{item}' + - ' &8• &f数量:&e{amount}' + - ' &8• &f概率:&e{chance}%' + - ' &8• &f耐久:&e{durability}' + - '' + - '%eb9a ▸ &f左键点击编辑数值!' + - '%eb9a ▸ &f右键点击更换物品!' + + loot_broken: + name: '&f战利品 &#FF6B6B{label}' + lore: + - '' + - ' &#FF6B6B⚠ 警告:' + - ' &8• &f无法读取此物品。' + - ' &8• &f值:&e{item}' + - '' + - '&#FF6B6B ▸ &f右键点击设置新物品!' + + add_loot: + name: '&f添加 %eb9a战利品' + lore: + - '' + - ' %eb9aℹ 信息:' + - ' &8• &f添加另一个战利品物品。' + - '' + - '%eb9a ▸ &f点击选择物品!' + + capture_hint: + name: '&f将物品 DB5F1丢到中间' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f物品将按原样保存。' + - ' &8• &f离开时会归还予你。' + + cancel: + name: '&f取消 &#FF6B6B捕获' + lore: + - '' + - ' &#FF6B6Bℹ 信息:' + - ' &8• &f放弃此捕获。' + - '' + - '&#FF6B6B ▸ &f点击取消!' + + confirm: + name: '&f确认 %eb9a物品' + lore: + - '' + - ' %eb9aℹ 信息:' + - ' &8• &f继续设置数量和概率。' + - '' + - '%eb9a ▸ &f点击继续!' + + # Dialog text. Rendered inside the client dialog, so keep it short. + dialog_title: + name: '战利品设置' + dialog_body: + name: '&7数量和耐久支持范围格式,如 &f0-2&7。' + dialog_save: + name: '&a✔ &f保存' + dialog_cancel: + name: '&c← &f取消' + dialog_delete: + name: '&4✖ &f删除战利品' + field_amount: + name: '数量(例如 1 或 0-2)' + field_chance: + name: '概率 %(0-100)' + field_durability: + name: '耐久(留空为无,例如 1-384)' + error_amount: + name: '&c数量必须为 0-{max} 的整数,且最小值不能大于最大值。' + error_chance: + name: '&c概率必须为 0 到 100 的数字。' + error_durability: + name: '&c耐久必须为整数,且最小值不能大于最大值。' diff --git a/core/src/main/resources/language/zh_CN/command_messages.yml b/core/src/main/resources/language/zh_CN/command_messages.yml new file mode 100644 index 00000000..dc0552c7 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/command_messages.yml @@ -0,0 +1,232 @@ +# SmartSpawner – command_messages.yml +# Messages related to plugin commands, including usage instructions and command errors. + +# ────────────────────────────────────────────────────── +# General +# ────────────────────────────────────────────────────── +player_only: + message: "&#FF4444此命令只能由玩家使用。" + sound: block.note_block.bass + +no_permission: + message: "&#FF4444你没有权限执行此操作。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss list +# ────────────────────────────────────────────────────── +list: + no_spawners_found: + message: '&#FF4444未找到任何刷怪笼。' + sound: block.note_block.pling + teleported_to_spawner: + message: '已传送到刷怪笼。' + sound: entity.enderman.teleport + teleport_failed: + message: '&#FF4444无法传送到刷怪笼。' + sound: entity.enderman.teleport + spawner_removed: + message: '&f刷怪笼已&#FF4444成功移除&f。' + sound: entity.item.break + +# ────────────────────────────────────────────────────── +# /ss set +# ────────────────────────────────────────────────────── +set: + usage: + message: "用法:ඪdb/ss set [world x y z]" + sound: block.note_block.hat + invalid: + message: "&#FF4444无效的值或 SmartSpawner 位置。" + sound: block.note_block.pling + stack_size_exceeds_max: + message: "&#FF4444堆叠数量 &f{value} &#FF4444超过此刷怪笼的最大堆叠数:&f{max}" + sound: block.note_block.pling + location_required: + message: "&#F0C857控制台必须提供位置:ඪdb/ss set " + sound: block.note_block.pling + success: + message: "已将 &a{property} &f从 &e{old_value} &f设置为 &a{new_value} &f,位置:ඪdb{world} {x} {y} {z}&f。" + sound: entity.experience_orb.pickup + +# ────────────────────────────────────────────────────── +# /ss near +# ────────────────────────────────────────────────────── +near: + bossbar: + analyzing: "正在扫描附近的刷怪笼... {percent}%" + found: "在 {radius} 格范围内找到 {count} 个刷怪笼。" + not_found: "在 {radius} 格范围内未找到刷怪笼。" + view_gui: + button: " [在界面中查看]" + hover: "点击浏览附近找到的 {count} 个刷怪笼。" + scan_start: + message: "正在扫描 &e{radius} &f格范围内的刷怪笼..." + sound: block.note_block.hat + scan_found: + message: "在 &e{radius} &f格范围内找到 &a{count} &f个刷怪笼。高亮持续 &e30 秒&f。" + sound: entity.experience_orb.pickup + scan_none: + message: "&#FF4444在 &f{radius} &#FF4444格范围内未找到刷怪笼。" + sound: block.note_block.pling + scan_cancelled: + message: "&#F0C857扫描已取消,高亮已移除。" + sound: block.note_block.bass + no_active_scan: + message: "&#FF4444你没有可取消的进行中扫描。" + sound: block.note_block.bass + highlights_expired: + message: "󙀸刷怪笼高亮已过期。" + +# ────────────────────────────────────────────────────── +# /ss give +# ────────────────────────────────────────────────────── +give: + player_not_found: + message: "&#FF4444未找到玩家。" + sound: block.note_block.pling + invalid_mob_type: + message: "&#FF4444无效的生物类型或刷怪笼名称。" + sound: block.note_block.pling + invalid_item_type: + message: "&#FF4444无效的物品类型。" + sound: block.note_block.pling + invalid_item_spawner: + message: "&#FF4444无效的物品刷怪笼名称。" + sound: block.note_block.pling + inventory_full: + message: "&#FF4444由于背包已满,部分刷怪笼物品已被丢弃。" + sound: block.note_block.pling + spawner_received: + message: "你获得了 &a{amount} 个 {entity} &f刷怪笼。" + sound: entity.experience_orb.pickup + spawner_given: + message: "已给予 ඪdb{player}&f &a{amount} 个 {entity} &f刷怪笼。" + sound: entity.experience_orb.pickup + +# ────────────────────────────────────────────────────── +# /ss hologram +# ────────────────────────────────────────────────────── +hologram: + enabled: + message: "全息显示已对所有刷怪笼&a启用&f。" + sound: entity.experience_orb.pickup + disabled: + message: "全息显示已对所有刷怪笼&#FF4444禁用&f。" + sound: block.note_block.bass + cleared: + message: "成功清除&a所有全息显示&f。" + sound: entity.experience_orb.pickup + clear_error: + message: "&#FF4444清除全息显示失败。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss clear +# ────────────────────────────────────────────────────── +clear: + usage: + message: "用法:ඪdb/ss clear " + sound: block.note_block.hat + ghost_check_start: + message: "正在检查幽灵刷怪笼..." + sound: block.note_block.hat + ghost_cleared: + message: "成功移除 &a{count} &f个幽灵刷怪笼。" + sound: entity.experience_orb.pickup + ghost_none_found: + message: "&#FF4444未找到幽灵刷怪笼。" + sound: entity.experience_orb.pickup + +# ────────────────────────────────────────────────────── +# /ss prices +# ────────────────────────────────────────────────────── +prices: + not_available: + message: "&#FF4444出售集成不可用。请配置经济设置。" + sound: block.note_block.pling + no_priceable_items: + message: "&#FF4444未找到有价格的物品。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss reload +# ────────────────────────────────────────────────────── +reload: + start: + message: "&#F0C857正在重载插件... 请稍候。" + success: + message: "成功重加载 ඪdbSmartSpawner&f。" + sound: entity.experience_orb.pickup + error: + message: "&#FF4444重加载 SmartSpawner 失败。请检查控制台了解详情。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss language +# ────────────────────────────────────────────────────── +language: + current: + message: "当前语言:&a{current} 󙀸| &f可用:{available}" + sound: block.note_block.hat + invalid: + message: "&#FF4444未知语言:&f{value}&#FF4444。请尝试:&f{available}" + sound: block.note_block.pling + already_set: + message: "&#F0C857语言已设置为 &f{value}&#F0C857。" + sound: block.note_block.hat + success: + message: "语言已从 &e{old_value} &f更改为 &a{new_value}&f。" + sound: entity.experience_orb.pickup + error: + message: "&#FF4444更改语言失败。请检查控制台。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss gui_layout +# ────────────────────────────────────────────────────── +gui_layout: + current: + message: "当前布局:&a{current} 󙀸| &f可用:{available}" + sound: block.note_block.hat + invalid: + message: "&#FF4444未知界面布局:&f{value}&#FF4444。请尝试:&f{available}" + sound: block.note_block.pling + already_set: + message: "&#F0C857界面布局已设置为 &f{value}&#F0C857。" + sound: block.note_block.hat + success: + message: "界面布局已从 &e{old_value} &f更改为 &a{new_value}&f。" + sound: entity.experience_orb.pickup + error: + message: "&#FF4444更改界面布局失败。请检查控制台。" + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# /ss editloot +# ────────────────────────────────────────────────────── +editloot: + usage: + message: "用法:%eb9a/ss editloot <刷怪笼名称>&f。示例:%eb9a/ss editloot blaze_spawner" + sound: block.note_block.hat + unknown_entry: + message: "&#FF4444没有名为 &f{name}&#FF4444 的刷怪笼。使用 Tab 补全查看有效名称。" + sound: block.note_block.bass + entry_missing: + message: "&#FF4444该条目已不在文件中。" + sound: block.note_block.bass + loot_added: + message: "%eb9a已添加战利品条目 &f{label}%eb9a。" + sound: entity.experience_orb.pickup + loot_saved: + message: "%eb9a已保存战利品条目 &f{label}%eb9a。" + sound: entity.experience_orb.pickup + loot_replaced: + message: "%eb9a已更新 &f{label}%eb9a 的物品。" + sound: entity.experience_orb.pickup + loot_deleted: + message: "&#FF6B6B已移除战利品条目 &f{label}&#FF6B6B。" + sound: entity.item.pickup + capture_empty: + message: "&#FF4444请先在中间槽位放入物品。" + sound: block.note_block.bass diff --git a/core/src/main/resources/language/zh_CN/formatting.yml b/core/src/main/resources/language/zh_CN/formatting.yml new file mode 100644 index 00000000..3776e248 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/formatting.yml @@ -0,0 +1,104 @@ +# SmartSpawner – formatting.yml +# Number formatting and mob display names used throughout the plugin. + +# ────────────────────────────────────────────────────── +# Number Formatting +# ────────────────────────────────────────────────────── +# Controls how large numbers are displayed in-game +format_number: + thousand: "{s}K" # Example: 5000 → 5K + million: "{s}M" # Example: 2000000 → 2M + billion: "{s}B" # Example: 1500000000 → 1.5B + trillion: "{s}T" # Example: 1000000000000 → 1T + default: "{s}" # Fallback format when no other rule matches + +# ────────────────────────────────────────────────────── +# Mob Display Names +# ────────────────────────────────────────────────────── +# Defines how mob names appear in spawner GUIs, items, holograms and messages +mob_names: + # Passive Mobs + ALLAY: "悦灵" + ARMADILLO: "犰狳" + AXOLOTL: "美西螈" + BAT: "蝙蝠" + BEE: "蜜蜂" + CAMEL: "骆驼" + CAT: "猫" + CHICKEN: "鸡" + COD: "鳕鱼" + COW: "牛" + DOLPHIN: "海豚" + DONKEY: "驴" + FOX: "狐狸" + FROG: "青蛙" + GLOW_SQUID: "发光鱿鱼" + GOAT: "山羊" + HORSE: "马" + IRON_GOLEM: "铁傀儡" + COPPER_GOLEM: "铜傀儡" + LLAMA: "羊驼" + MOOSHROOM: "哞菇" + MULE: "骡" + OCELOT: "豹猫" + PANDA: "熊猫" + PARROT: "鹦鹉" + PIG: "猪" + POLAR_BEAR: "北极熊" + PUFFERFISH: "河豚" + RABBIT: "兔子" + SALMON: "鲑鱼" + SHEEP: "羊" + SNIFFER: "嗅探兽" + SNOW_GOLEM: "雪傀儡" + SQUID: "鱿鱼" + STRIDER: "炽足兽" + SULFUR_CUBE: "硫方怪" + TADPOLE: "蝌蚪" + TRADER_LLAMA: "行商羊驼" + TROPICAL_FISH: "热带鱼" + TURTLE: "海龟" + VILLAGER: "村民" + WANDERING_TRADER: "流浪商人" + WOLF: "狼" + + # Hostile Mobs + BLAZE: "烈焰人" + BOGGED: "沼骸" + BREEZE: "旋风人" + CAVE_SPIDER: "洞穴蜘蛛" + CREAKING: "嘎枝" + CREEPER: "苦力怕" + DROWNED: "溺尸" + ELDER_GUARDIAN: "远古守卫者" + ENDERMAN: "末影人" + ENDERMITE: "末影螨" + EVOKER: "唤魔者" + GHAST: "恶魂" + HAPPY_GHAST: "快乐恶魂" + GUARDIAN: "守卫者" + HOGLIN: "疣猪兽" + HUSK: "尸壳" + MAGMA_CUBE: "岩浆怪" + PHANTOM: "幻翼" + PIGLIN: "猪灵" + PIGLIN_BRUTE: "猪灵蛮兵" + PILLAGER: "掠夺者" + RAVAGER: "劫掠兽" + SHULKER: "潜影贝" + SILVERFISH: "蠹虫" + SKELETON: "骷髅" + SKELETON_HORSE: "骷髅马" + SLIME: "史莱姆" + SPIDER: "蜘蛛" + STRAY: "流浪者" + VEX: "恼鬼" + VINDICATOR: "卫道士" + WARDEN: "监守者" + WITCH: "女巫" + WITHER_SKELETON: "凋灵骷髅" + ZOGLIN: "僵尸疣猪兽" + ZOMBIE: "僵尸" + ZOMBIE_HORSE: "僵尸马" + ZOMBIE_VILLAGER: "僵尸村民" + ZOMBIFIED_PIGLIN: "僵尸猪灵" \ No newline at end of file diff --git a/core/src/main/resources/language/zh_CN/gui.yml b/core/src/main/resources/language/zh_CN/gui.yml new file mode 100644 index 00000000..ea6203a6 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/gui.yml @@ -0,0 +1,303 @@ +# SmartSpawner – gui.yml +# GUI item names, lore, titles, and button labels. + +# ────────────────────────────────────────────────────── +# Main GUI +# ────────────────────────────────────────────────────── +gui_title_main: + single_spawner: '{ᴇɴᴛɪᴛʏ} 刷怪笼' + stacked_spawner: '{amount} 个 {entity} 刷怪笼' + +spawner_storage_item: + # Available placeholders for name: + # {max_slots} - Maximum number of slots in the storage (formatted with commas) + # {current_items} - Current number of items in the storage + # {percent_storage_rounded} - Percentage of storage used (0-100) + # {total_sell_price} - Total sell value currently stored in the spawner + # {entity} - The spawner's entity type (normal capitalization) + # {ᴇɴᴛɪᴛʏ} - The spawner's entity type (small caps) + name: '&f打开 DB5F1存储' + + # Available placeholders for all lore lines: + # {max_slots} - Maximum number of slots in the storage (formatted with commas) + # {current_items} - Current number of items in the storage + # {percent_storage_rounded} - Percentage of storage used (0-100) + # {total_sell_price} - Total sell value currently stored in the spawner + # {loot_items} - The complete formatted list of loot items + # {entity} - The spawner's entity type (normal capitalization) + # {ᴇɴᴛɪᴛʏ} - The spawner's entity type (small caps) + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f你可以在此查看并' + - ' &f管理此刷怪笼中' + - ' &f存储的所有物品。' + - '' + - ' DB5F1★ 容量:&f{percent_storage_rounded}%' + - '{loot_items}' + - '' + - 'DB5F1 ▸ 点击打开存储!' + + # This defines how each loot item will be displayed when using {loot_items} + # Available placeholders for each loot item: + # {item_name} - The name of the item (normal capitalization) + # {amount} - Number of items (formatted with commas) + # {raw_amount} - Number of items (without formatting) + # {chance} - The chance of this item dropping (with % symbol, e.g. "8.5%") + loot_items: ' &8• &f{item_name}&f:&e{amount}' + loot_items_empty: ' &8• &f无存储物品' + + +# Available placeholders: +# {entity} - Formatted entity name (e.g., "Zombie") +# {ᴇɴᴛɪᴛʏ} - Entity name in small caps (e.g., "ᴢᴏᴍʙɪᴇ") +# {stack_size} - Number of spawners stacked at this location +# {range} - Spawning range in blocks +# {delay} - Spawn delay in seconds +# {min_mobs} - Minimum number of mobs to spawn +# {max_mobs} - Maximum number of mobs to spawn +# {current_items} - Current number of items stored +# {max_items} - Maximum storage capacity for items +# {percent_storage_rounded} - Storage usage as integer percentage (e.g., "87") +# {percent_storage_decimal} - Storage usage as formatted percentage with decimal (e.g., "87.5") +# {current_exp} - Current experience stored (formatted with commas) +# {max_exp} - Maximum experience capacity (formatted with commas) +# {raw_current_exp} - Raw current experience number +# {raw_max_exp} - Raw maximum experience number +# {percent_exp_rounded} - Experience storage as integer percentage +# {percent_exp_decimal} - Experience storage as formatted percentage with decimal (e.g., "42.7") +# {time} - Time until the next spawn, or a status text when inactive/full/no loot +# {total_sell_price} - Total sell value currently stored in the spawner +spawner_info_item: + name: ' &f刷怪笼 DB5F1信息' + lore: + - '' + - ' DB5F1ℹ 统计:' + - ' &8• &f堆叠:&e{stack_size}' + - ' &8• &f范围:&e{range} &f格' + - ' &8• &f生物:&e{min_mobs}&f-&e{max_mobs}' + - ' &8• &f延迟:&e{delay} &f秒' + - '' + - ' DB5F1★ 下次生成:&f{time}' + - ' &8• &f经验:&e{percent_exp_rounded}%' + - ' &8• &f存储:&e{percent_storage_rounded}%' + - ' &8• &f出售价值:&a${total_sell_price}' + - '' + - 'DB5F1 ▸ 左键:&f出售并收集经验' + lore_no_shop: + - '' + - ' DB5F1ℹ 统计:' + - ' &8• &f堆叠:&e{stack_size}' + - ' &8• &f范围:&e{range} &f格' + - ' &8• &f生物:&e{min_mobs}&f-&e{max_mobs}' + - ' &8• &f延迟:&e{delay} &f秒' + - '' + - ' DB5F1★ 下次生成:&f{time}' + - ' &8• &f经验:&e{percent_exp_rounded}%' + - ' &8• &f存储:&e{percent_storage_rounded}%' + - '' + lore_full: '&#FF4444容量已满' + lore_inactive: '&#FF4444未激活' + lore_no_loot: '&#FF4444未配置掉落物' + +exp_info_item: + name: '&f收集 DB5F1经验' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f收集经验或使用' + - ' &f经验来修复你的' + - ' &f经验修补 &f装备。' + - '' + - ' DB5F1★ 容量:&f{percent_exp_rounded}%' + - ' &8• &f存储经验:&a{current_exp}&f/&a{max_exp}' + - '' + - 'DB5F1 ▸ 点击收集经验!' + +# ────────────────────────────────────────────────────── +# Sell Confirmation GUI +# ────────────────────────────────────────────────────── +gui_title_sell_confirm: '确认出售' + +button_sell_cancel: + name: '&f取消 &#FF6B6B出售' + lore: + - '' + - ' &#FF6B6B⚠ 信息:' + - ' &8• &f点击返回' + - ' &f不进行任何出售。' + - '' + - '&#FF6B6B ▸ 点击取消!' + +button_sell_confirm: + name: '&f确认 DB5F1出售' + lore: + - '' + - ' DB5F1ℹ 你将获得:' + - ' &8• &f金币:&a${total_sell_price}' + - '' + - 'DB5F1 ▸ 点击确认出售!' + +button_sell_confirm_with_exp: + name: '&f确认出售 DB5F1并收集经验' + lore: + - '' + - ' DB5F1ℹ 你将获得:' + - ' &8• &f金币:&a${total_sell_price}' + - ' &8• &f经验:&a{current_exp}' + - '' + - 'DB5F1 ▸ 点击确认!' + +# Available placeholders for button_sell_info: +# {entity} - Formatted entity or item name +# {ᴇɴᴛɪᴛʏ} - Entity or item name in small caps +# {current_items} - Used storage slots +# {max_items} - Maximum storage slots +# {current_exp} - Stored experience +# {total_sell_price} - Total sell value +# {percent_storage_decimal} - Storage usage with 1 decimal (e.g., "87.5") +# {percent_storage_rounded} - Storage usage rounded to whole number (e.g., "88") +# {loot_items} - Expands to the generated loot item lines +# Placeholders for button_sell_info.loot_items: {amount}, {item_name}, {chance} +button_sell_info: + name: '&f出售 DB5F1摘要' + lore: + - '' + - ' DB5F1ℹ 信息:' + - '{loot_items}' + - ' &8• &a+ &f经验:&e{current_exp}' + - ' &8• &a+ &f金币:&a${total_sell_price}' + loot_items: ' &8• &#FF6B6B- &f{item_name}&f:&e{amount}' + loot_items_empty: ' &8• &#FF6B6B- &f没有可出售的物品' + +# ────────────────────────────────────────────────────── +# Spawner Storage GUI +# ────────────────────────────────────────────────────── +# Available placeholders for gui_title_storage: +# {current_page} - Current page number +# {total_pages} - Total number of pages +# {entity} - Formatted entity name (e.g., "Zombie") +# {ᴇɴᴛɪᴛʏ} - Entity name in small caps (e.g., "ᴢᴏᴍʙɪᴇ") +# {amount} - Number of spawners stacked +gui_title_storage: '[{current_page}/{total_pages}] 刷怪笼存储' + +navigation_button_previous: + name: '%eb9a上一页' + lore: + - 'cc483 ▸ &#f8f8ff点击前往第 %eb9a{target_page} 页' + +navigation_button_next: + name: '%eb9a下一页' + lore: + - 'cc483 ▸ &#f8f8ff点击前往第 %eb9a{target_page} 页' + +sell_button: + name: '&f出售 &a物品' + lore: + - '' + - ' &aℹ 信息:' + - ' &8• &f你将出售存储中的' + - ' &f所有物品。' + - '' + - '&a ▸ 点击出售!' + +sell_and_exp_button: + name: '&f出售并 &a收集经验' + lore: + - '' + - ' &aℹ 信息:' + - ' &8• &f你将出售所有物品' + - ' &f并收集存储的经验。' + - ' &8• &f预计总计:&a${total_sell_price}' + - '' + - '&a ▸ 点击继续!' + +return_button: + name: '&f返回 &#FF6B6B主菜单' + lore: + - '' + - ' &#dadadaℹ 信息:' + - ' &8• &f点击返回' + - ' &f上一菜单。' + - '' + - '&c ▸ 点击返回!' + +take_all_button: + name: '&f全部 DB5F1取出' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f你将取出此页面的' + - ' &f所有物品。' + - '' + - 'DB5F1 ▸ 点击取出!' + +item_filter_button: + name: '&f筛选 DB5F1掉落物' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f配置此刷怪笼允许和' + - ' &f阻止的物品。' + - '' + - 'DB5F1 ▸ 点击配置筛选!' + +sort_items_button: + name: '&f排序 DB5F1物品' + lore: + - '' + - '{available_items}' + - '' + - 'DB5F1 ▸ 点击排序!' + selected_item: ' DB5F1• {item_name}' + unselected_item: ' &f• {item_name}' + no_item: ' &7• 无' + +drop_page_button: + name: '&f丢弃 &#FF6B6B本页' + lore: + - '' + - ' &#FF6B6B⚠ 警告:' + - ' &8• &f你将把此页面的所有物品' + - ' &f丢弃到地上。' + - '' + - '&#FF6B6B ▸ 点击丢弃!' + +collect_exp_button: + name: '&f收集 DB5F1经验' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f可用经验:&a{current_exp}' + - '' + - 'DB5F1 ▸ 点击收集!' + +storage_spawner_info_button: + name: '' + lore: + +# ────────────────────────────────────────────────────── +# Filter Configuration GUI +# ────────────────────────────────────────────────────── +gui_title_filter_config: ' 允许 阻止' + +filter_divider: + name: '&f掉落物 DB5F1筛选' + lore: + - '' + - ' DB5F1ℹ 信息:' + - ' &8• &f左侧:允许的物品' + - ' &8• &f右侧:阻止的物品' + - '' + - 'DB5F1 ▸ 点击返回存储!' + +filter_item_allowed: + name: '&f{item_name}%eb9a 已允许' + lore: + - '%eb9a ▸ &f点击阻止此物品!' + +filter_item_blocked: + name: '&f{item_name}&#FF6B6B 已阻止' + lore: + - '&#FF6B6B ▸ &f点击允许此物品!' + diff --git a/core/src/main/resources/language/zh_CN/hologram.yml b/core/src/main/resources/language/zh_CN/hologram.yml new file mode 100644 index 00000000..15fc3fd0 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/hologram.yml @@ -0,0 +1,20 @@ +# SmartSpawner – hologram.yml +# Text lines shown above each spawner. Supports &#RRGGBB hex and &x color codes. +# +# Placeholders: +# {entity} – Mob name +# {ᴇɴᴛɪᴛʏ} – Mob name in small-caps unicode +# {stack_size} – Stack count +# {current_exp} – Stored XP +# {max_exp} – Max XP capacity +# {used_slots} – Used item slots +# {max_slots} – Total item slots +# {percent_storage_decimal} – Storage % (1 decimal, e.g. "75.5") +# {percent_storage_rounded} – Storage % rounded (e.g. "76") +# {percent_exp_decimal} – XP % (1 decimal, e.g. "50.0") +# {percent_exp_rounded} – XP % rounded (e.g. "50") + +hologram_text: + - '&8[&f{stack_size}&8] DB5F1{entity} 刷怪笼' + - 'DB5F1• &f经验:&a{current_exp}&f/&a{max_exp}' + - 'DB5F1• &f物品:&e{used_slots}&f/&e{max_slots}' diff --git a/core/src/main/resources/language/zh_CN/iridium_skyblock.yml b/core/src/main/resources/language/zh_CN/iridium_skyblock.yml new file mode 100644 index 00000000..3537ca82 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/iridium_skyblock.yml @@ -0,0 +1,19 @@ +# SmartSpawner - iridium_skyblock.yml +# This file is updated only when the IridiumSkyblock integration is active. + +iridium_skyblock: + permissions: + open_menu: + name: 'DB5F1刷怪笼菜单权限' + lore: + - '&7允许用户打开刷怪笼菜单的权限。' + - '' + - 'DB5F1&l权限' + - '%permission%' + stack: + name: '%eb9a刷怪笼堆叠权限' + lore: + - '&7允许用户堆叠刷怪笼的权限。' + - '' + - '%eb9a&l权限' + - '%permission%' diff --git a/core/src/main/resources/language/zh_CN/items.yml b/core/src/main/resources/language/zh_CN/items.yml new file mode 100644 index 00000000..31590270 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/items.yml @@ -0,0 +1,92 @@ +# SmartSpawner – items.yml +# Spawner item display names and drop item names. + +# Appearance of smart spawner items in inventory and tooltips +# Available placeholders: {entity}, {ᴇɴᴛɪᴛʏ}, {exp}, {loot_items}, {amount}, {item_name}, {chance} +smart_spawner: + default: + name: 'DB5F1{entity} 刷怪笼' + loot_items: ' &#ecf0f1 • {amount} {item_name} ඪdb({chance}%)' + loot_items_empty: ' &#ecf0f1 • 无' + lore: + - '' + - ' DB5F1 详情:' + - ' &#ecf0f1 • &f给予经验:&a{exp}' + - '' + - ' DB5F1 掉落物:' + - '{loot_items}' + - '' + # Entity-specific sections override default per key. Unspecified keys use default. + PIG: + name: '&#FF77B7{entity} 刷怪笼' + loot_items: ' &#FFF0F7 • {amount} {item_name} &#FF8FC7({chance}%)' + loot_items_empty: ' &#FFF0F7 • 无' + lore: + - '' + - ' &#FF77B7 详情:' + - ' &#FFF0F7 • &f给予经验:&#FF8FC7{exp}' + - '' + - ' &#FF77B7 掉落物:' + - '{loot_items}' + - '' + BLAZE: + name: '&#FFB300{entity} 刷怪笼' + loot_items: ' &#FFF4CC • {amount} {item_name} &#FFC107({chance}%)' + loot_items_empty: ' &#FFF4CC • 无' + lore: + - '' + - ' &#FFB300 详情:' + - ' &#FFF4CC • &f给予经验:&#FFD54F{exp}' + - '' + - ' &#FFB300 掉落物:' + - '{loot_items}' + - '' + +# Appearance of item spawner items in inventory and tooltips +# Available placeholders: {entity}, {ᴇɴᴛɪᴛʏ}, {exp}, {loot_items}, {amount}, {item_name}, {chance} +item_spawner: + default: + name: 'DB5F1{entity} 刷怪笼' + loot_items: ' &#ecf0f1 • {amount} {item_name} ඪdb({chance}%)' + loot_items_empty: ' &#ecf0f1 • 无' + lore: + - '' + - ' DB5F1 详情:' + - ' &#ecf0f1 • &f给予经验:&a{exp}' + - '' + - ' DB5F1 掉落物:' + - '{loot_items}' + - '' + # Material-specific sections override default per key. Unspecified keys use default. + DIAMOND: + name: '�E5FF{entity} 刷怪笼' + loot_items: ' &#EAFDFF • {amount} {item_name} �B8D4({chance}%)' + loot_items_empty: ' &#EAFDFF • 无' + lore: + - '' + - ' �E5FF 详情:' + - ' &#EAFDFF • &f给予经验:�B8D4{exp}' + - '' + - ' �E5FF 掉落物:' + - '{loot_items}' + - '' + AMETHYST_SHARD: + name: '&#B66CFF{entity} 刷怪笼' + loot_items: ' &#F5ECFF • {amount} {item_name} &#D6A5FF({chance}%)' + loot_items_empty: ' &#F5ECFF • 无' + lore: + - '' + - ' &#B66CFF 详情:' + - ' &#F5ECFF • &f给予经验:&#D6A5FF{exp}' + - '' + - ' &#B66CFF 掉落物:' + - '{loot_items}' + - '' + +# Appearance of vanilla spawner items in inventory and tooltips +# Available placeholders: {entity}, {ᴇɴᴛɪᴛʏ} +# Delete this section if you don't want to use custom vanilla spawners name and lore +vanilla_spawner: + default: + name: "{entity} 刷怪笼" + lore: diff --git a/core/src/main/resources/language/zh_CN/messages.yml b/core/src/main/resources/language/zh_CN/messages.yml new file mode 100644 index 00000000..fb0a01a3 --- /dev/null +++ b/core/src/main/resources/language/zh_CN/messages.yml @@ -0,0 +1,141 @@ +# SmartSpawner – messages.yml +# Each entry supports: message, title, subtitle, action_bar, sound, enabled. +# +# MESSAGE STRUCTURE: +# message_name: # Unique identifier for the message +# enabled: true/false # Enable or disable this entire message (default: true if not specified) +# message: "Text content" # Main chat message (optional) +# title: "Title text" # Title display (optional) +# subtitle: "Subtitle" # Subtitle display (optional) +# action_bar: "Text" # Action bar text (optional) +# sound: sound.effect # Sound to play (optional) +# +# KEY FEATURES: +# - If "enabled: false" is set, none of the components will be sent to the player +# - If multiple components are present (message, title, action_bar, sound), all will be sent +# - All components are optional - you can use any combination as needed +# - The "message" field is not required and can be omitted if you only want other components + +prefix: 'ඪdbSᴍᴀʀᴛSᴘᴀᴡɴᴇʀ &8⏩ &r' + +missing_message_key: + message: '&#FF4444缺少消息键:&f{key}' + +# ────────────────────────────────────────────────────── +# Player Interaction (General) +# ────────────────────────────────────────────────────── +spawner_activated: + message: '刷怪笼已&a激活&r。你现在可以收集掉落物和经验了。' + sound: block.beacon.activate + +inventory_full: + message: '&#FF4444你的背包已满。' + +spawner_storage_empty: + message: '&#FF4444刷怪笼存储为空。' + +action_in_progress: + message: '&#F0C857已有操作正在进行,请稍候。' + action_bar: '&#F0C857操作正在进行,请稍候。' + +storage_in_use: + message: '&#FF4444此刷怪笼存储正被另一名玩家打开。' + action_bar: '&#FF4444存储正被另一名玩家使用。' + +action_failed: + message: '&#FF4444操作失败,请重试。' + action_bar: '&#FF4444操作失败,请重试。' + +action_not_ready: + message: '&#F0C857此操作尚未就绪,请在 &f{time}&#F0C857 后重试。' + sound: block.note_block.bass + +# ────────────────────────────────────────────────────── +# Spawner - Main GUI Interactions +# ────────────────────────────────────────────────────── +no_exp: + message: '&#FF4444没有可用的经验。' + +exp_collected: + message: '你收集了 &a{exp} &f点经验。' + action_bar: '&a+{exp} 经验' + +exp_collected_with_mending: + message: '你收集了 &a{exp} &f点经验,其中 &c{exp_mending} &f用于经验修补。' + action_bar: '&a+{exp} 经验 &f| &c-{exp_mending} 用于经验修补' + +# ────────────────────────────────────────────────────── +# Spawner - Storage GUI Interactions +# ────────────────────────────────────────────────────── +click_too_fast: + message: '&#FF4444你点击得太快了。' + sound: block.note_block.bass + +# ────────────────────────────────────────────────────── +# Spawner - Stack Interaction +# ────────────────────────────────────────────────────── +spawner_different: + message: '&#FF4444刷怪笼必须是相同类型才能堆叠。' + action_bar: '&#FF4444刷怪笼必须是相同类型。' + sound: block.note_block.pling + +spawner_stack_full: + action_bar: '&#FF4444最大堆叠限制:&f{max}' + sound: block.note_block.pling + +spawner_stack_success: + action_bar: '&a你成功堆叠了 &f{amount} &a个刷怪笼。' + sound: entity.player.levelup + +# ────────────────────────────────────────────────────── +# Spawner - Egg Interaction +# ────────────────────────────────────────────────────── +entity_changed: + message: '刷怪笼已变为 &e{entity}&f。' + action_bar: '&f刷怪笼已变为 &e{entity}&f。' + sound: entity.player.levelup + +# ────────────────────────────────────────────────────── +# Spawner - Break Interaction +# ────────────────────────────────────────────────────── +break_no_permission: + message: '&#FF4444你没有权限破坏此刷怪笼。' + sound: entity.villager.no + +break_silk_touch: + message: '&#FF4444你需要精准采集才能破坏此刷怪笼。' + action_bar: '&#FF4444需要精准采集。' + sound: item.shield.block + +break_tool_required: + message: '&#FF4444你无法使用此工具破坏刷怪笼。' + action_bar: '&#FF4444无法使用此工具破坏刷怪笼。' + sound: item.shield.block + +drop_failed: + message: '&#FF4444运气不佳,刷怪笼没有掉落。' + action_bar: '&#FF4444刷怪笼没有掉落。' + sound: block.note_block.pling + +sneak_break_blocked: + message: '&#FF4444此刷怪笼有掉落概率时,你无法破坏整个堆叠。' + action_bar: '&#FF4444无法破坏整个堆叠。' + sound: block.note_block.pling + +# ────────────────────────────────────────────────────── +# Sell Integration Messages +# ────────────────────────────────────────────────────── +no_sellable_items: + message: '&#FF4444未找到可出售的物品。' + +sell_success: + message: '你出售了 &e{amount} &f个物品,获得 &a${price}&f。' + action_bar: '&a+${price}' + +sell_and_exp_success: + message: '你出售了 &e{amount} &f个物品,获得 &a${price}&f,并收集了 &a{exp} &f点经验。' + action_bar: '&a+${price} &f| &a+{exp} 经验' + +sell_and_exp_success_with_mending: + message: '你出售了 &e{amount} &f个物品,获得 &a${price}&f,收集了 &a{exp} &f点经验(其中 &c{exp_mending} &f用于经验修补)。' + action_bar: '&a+${price} &f| &a+{exp} 经验 &f(&c-{exp_mending} 经验修补)'