game_start.mcfunction 1.4 KB

123456789101112131415161718192021
  1. # HUD
  2. execute if score $mini_type mem matches 1 run scoreboard objectives setdisplay sidebar total_score
  3. execute if score $mini_type mem matches 1 run scoreboard objectives setdisplay belowName total_score_disp
  4. execute if score $mini_type mem matches 2 run scoreboard objectives setdisplay sidebar total_score
  5. execute if score $mini_type mem matches 2 run scoreboard objectives setdisplay belowName total_score_disp
  6. execute if score $mini_type mem matches 3 run scoreboard objectives setdisplay sidebar mini_heart
  7. execute if score $mini_type mem matches 3 run scoreboard objectives setdisplay belowName mini_heart
  8. execute if score $mini_type mem matches 4 run scoreboard objectives setdisplay sidebar mini_heart
  9. execute if score $mini_type mem matches 4 run scoreboard objectives setdisplay belowName mini_heart
  10. execute if score $mini_type mem matches 5 run scoreboard objectives setdisplay sidebar health_disp
  11. execute if score $mini_type mem matches 5 run scoreboard objectives setdisplay belowName health_disp
  12. scoreboard objectives setdisplay list total_score_disp
  13. # 调用其他模块
  14. execute if score $mini_type mem matches 2 run function mini:tntrun/game_start
  15. execute if score $mini_type mem matches 3 run function mini:hotpm/game_start
  16. execute if score $mini_type mem matches 4 run function mini:colormatch/game_start
  17. execute if score $mini_type mem matches 5 run function mini:zombie/game_start
  18. # FIXME : [010] 从状态 7 转到游戏结束的时候触发了状态 3