state_enter.mcfunction 579 B

123456789101112
  1. # 要求系统进入状态 8(选择奖励)
  2. scoreboard players set $state mem 8
  3. execute as @a run function ltw:state/8/player_enter
  4. # HUD
  5. scoreboard objectives setdisplay belowName total_score_disp
  6. scoreboard objectives setdisplay sidebar total_score
  7. scoreboard objectives setdisplay list total_score_disp
  8. # 判断进入下一轮小游戏或结束
  9. # execute if score $game_type mem matches 1 if score $round mem matches ..5 run function ltw:state/7/continue_gameparty
  10. # execute if score $game_type mem matches 1 if score $round mem matches 6.. run function ltw:main/game_end