Bläddra i källkod

添加完成进度的音效

LTCatt 6 år sedan
förälder
incheckning
ac203f34aa

+ 1 - 0
data/item/functions/shop/refresh_gold.mcfunction

@@ -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 - 0
data/item/functions/shop/refresh_green.mcfunction

@@ -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
 

+ 1 - 1
data/ltw/advancements/combat/phantom1.json

@@ -8,7 +8,7 @@
         "text": "狩猎学徒"
       },
       "description": [
-        {"text": "在月夜狩猎小游戏中击杀 8 只幻翼", "color":"gray"},
+        {"text": "在月夜狩猎小游戏中击杀 8 只幻翼\n", "color":"gray"},
         {"text": "奖励: ","color":"green"},
         {"text": "1 绿宝石","color":"white"}
       ],

+ 1 - 1
data/ltw/advancements/parkour/explore1.json

@@ -8,7 +8,7 @@
         "text": "闲来无事"
       },
       "description": [
-        {"text": "完成大厅中的旅途", "color":"gray"},
+        {"text": "完成大厅中的旅途\n", "color":"gray"},
         {"text": "奖励: ","color":"green"},
         {"text": "1 绿宝石","color":"white"}
       ],

+ 1 - 1
data/ltw/advancements/parkour/explore2.json

@@ -8,7 +8,7 @@
         "text": "挑战自我"
       },
       "description": [
-        {"text": "完成大厅中隐藏的跑酷\n", "color":"gray"},
+        {"text": "完成大厅中的隐藏跑酷\n", "color":"gray"},
         {"text": "奖励: ","color":"green"},
         {"text": "2 绿宝石","color":"white"}
       ],

+ 1 - 1
data/ltw/advancements/parkour/explore3.json

@@ -8,7 +8,7 @@
         "text": "空手而返"
       },
       "description": [
-        {"text": "到达神秘的老板面前\n", "color":"gray"},
+        {"text": "到达神秘老板的面前\n", "color":"gray"},
         {"text": "奖励: ","color":"green"},
         {"text": "3 绿宝石","color":"white"}
       ],

+ 1 - 1
data/ltw/advancements/parkour/treasure1.json

@@ -8,7 +8,7 @@
         "text": "宝藏学徒"
       },
       "description": [
-        {"text": "在遗迹寻宝小游戏中收集 4 处宝藏", "color":"gray"},
+        {"text": "在遗迹寻宝小游戏中收集 4 处宝藏\n", "color":"gray"},
         {"text": "奖励: ","color":"green"},
         {"text": "1 绿宝石","color":"white"}
       ],

+ 2 - 1
data/ltw/functions/advancement/bonus_1.mcfunction

@@ -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

+ 2 - 1
data/ltw/functions/advancement/bonus_2.mcfunction

@@ -1,3 +1,4 @@
 scoreboard players add @s green 2
 scoreboard players add @s green_total 2
-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