game_init.mcfunction 588 B

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