tick20.mcfunction 727 B

12345678910111213
  1. execute if score $countdown mem matches 11.. run function mini:phantom/game/try_summon
  2. # 显示倒计时
  3. execute if score $countdown mem matches ..10 run title @a times 3 14 2
  4. execute if score $countdown mem matches ..10 run title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
  5. execute if score $countdown mem matches ..10 run title @a title [""]
  6. execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds/hit2
  7. # -10s:提示游戏结束
  8. execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "太阳即将升起!","color":"aqua"}]
  9. # 0s:游戏结束
  10. execute if score $countdown mem matches 0 run function mini:main/game_end