@@ -1,6 +1,7 @@
# 刷新单个玩家背包中的金粒
execute unless entity @s[scores={gold=0..}] run scoreboard players set @s gold 0
+execute unless entity @s[scores={gold=0..}] run scoreboard players set @s gold_total 0
clear @s gold_block
clear @s gold_ingot
clear @s gold_nugget
@@ -1,5 +1,6 @@
# 刷新单个玩家背包中的绿宝石
+execute unless entity @s[scores={green=0..}] run scoreboard players set @s green_total 0
execute unless entity @s[scores={green=0..}] run scoreboard players set @s green 0
clear @s emerald
@@ -8,7 +8,7 @@
"text": "狩猎学徒"
},
"description": [
- {"text": "在月夜狩猎小游戏中击杀 8 只幻翼", "color":"gray"},
+ {"text": "在月夜狩猎小游戏中击杀 8 只幻翼\n", "color":"gray"},
{"text": "奖励: ","color":"green"},
{"text": "1 绿宝石","color":"white"}
],
"text": "闲来无事"
- {"text": "完成大厅中的旅途", "color":"gray"},
+ {"text": "完成大厅中的旅途\n", "color":"gray"},
"text": "挑战自我"
- {"text": "完成大厅中隐藏的跑酷\n", "color":"gray"},
+ {"text": "完成大厅中的隐藏跑酷\n", "color":"gray"},
{"text": "2 绿宝石","color":"white"}
"text": "空手而返"
- {"text": "到达神秘的老板面前\n", "color":"gray"},
+ {"text": "到达神秘老板的面前\n", "color":"gray"},
{"text": "3 绿宝石","color":"white"}
"text": "宝藏学徒"
- {"text": "在遗迹寻宝小游戏中收集 4 处宝藏", "color":"gray"},
+ {"text": "在遗迹寻宝小游戏中收集 4 处宝藏\n", "color":"gray"},
@@ -1,3 +1,4 @@
scoreboard players add @s green 1
scoreboard players add @s green_total 1
-execute if score $state mem matches 0 run function item:shop/refresh_green
+execute if score $state mem matches 0 run function item:shop/refresh_green
+execute at @s run function lib:sounds/levelup
scoreboard players add @s green 2
scoreboard players add @s green_total 2