game_init.mcfunction 498 B

123456789101112
  1. # 小游戏初始化
  2. execute if score $mini_type mem matches 1 run function mini:parkour/game_init
  3. execute if score $mini_type mem matches 2 run function mini:tntrun/game_init
  4. execute if score $mini_type mem matches 3 run function mini:hotpm/game_init
  5. execute if score $mini_type mem matches 4 run function mini:colormatch/game_init
  6. # 计分板初始化
  7. scoreboard players reset * mini_score
  8. # 计算玩家数量
  9. execute store result score $alive mem if entity @a[tag=mini_running,tag=!watcher]