state_enter.mcfunction 766 B

12345678910111213141516171819
  1. # 要求系统进入状态 7(选择奖励)
  2. scoreboard players set $state mem 7
  3. execute as @a run function ltw:state/7/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. forceload add 0 2000 50 2050
  10. # 生成地图
  11. setblock 0 10 2000 minecraft:structure_block{mode:"LOAD",name:"ltw:select"}
  12. setblock 0 11 2000 minecraft:redstone_block
  13. # 判断进入下一轮小游戏或结束
  14. execute if score $game_type mem matches 1 if score $round mem matches ..5 run function ltw:state/7/continue_gameparty
  15. execute if score $game_type mem matches 1 if score $round mem matches 6.. run function ltw:main/game_end