Kaynağa Gözat

修复旁观者生命值显示 Bug

LTCatt 6 yıl önce
ebeveyn
işleme
3b6c5958f7
1 değiştirilmiş dosya ile 5 ekleme ve 3 silme
  1. 5 3
      data/mini/functions/main/game_init.mcfunction

+ 5 - 3
data/mini/functions/main/game_init.mcfunction

@@ -1,12 +1,14 @@
+# 计分板初始化
+scoreboard players reset * mini_score
+scoreboard players reset * mini_heart
+
 # 小游戏初始化
 execute if score $mini_type mem matches 1 run function mini:parkour/game_init
 execute if score $mini_type mem matches 2 run function mini:tntrun/game_init
 execute if score $mini_type mem matches 3 run function mini:hotpm/game_init
 execute if score $mini_type mem matches 4 run function mini:colormatch/game_init
 
-# 计分板初始化
-scoreboard players reset * mini_score
-
 # 计算玩家数量
 execute store result score $alive mem if entity @a[tag=mini_running,tag=!watcher]
 
+# TODO 旁观者会在进入阶段 4 后显示 0 分