| 123456789101112131415 |
- # 显示倒计时
- execute if score $countdown mem matches ..10 run title @a times 3 14 2
- execute if score $countdown mem matches ..10 run title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
- execute if score $countdown mem matches ..10 run title @a title [""]
- execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds/hit2
- # -10s:提示游戏结束
- execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "球场马上就要关门了!","color":"aqua"}]
- # 0s:游戏结束
- execute if score $countdown mem matches 0 run function mini:main/game_end
- # 回复生命值
- execute if score $twice mem matches 1 run effect give @a regeneration 1 10 true
- execute if score $twice mem matches 1 run schedule function mini:slime/game/clear_effect 1t replace
|