tick20.mcfunction 877 B

123456789101112
  1. # 尝试进行倒计时
  2. execute if score $countdown mem matches 1.. if score $game_type mem matches 0 run function ltw:state/0/try_start_classic
  3. execute if score $countdown mem matches 1.. if score $game_type mem matches 1 run function ltw:state/0/try_start_gameparty
  4. # 显示倒计时,播放音效
  5. execute store result score $count mem if entity @a[tag=lobby_ready]
  6. execute if score $countdown mem matches 1.. run title @a times 3 14 2
  7. scoreboard players operation #time mem = $countdown mem
  8. scoreboard players remove #time mem 1
  9. execute if score $countdown mem matches 1.. run title @a subtitle [{"score":{"name":"#time","objective":"mem"}}," 秒 | ",{"score":{"name":"$count","objective":"mem"}}," 人"]
  10. execute if score $countdown mem matches 1.. run title @a title [""]
  11. execute if score $countdown mem matches 1..10 run execute as @a at @s run function lib:sounds/hit2