tick20.mcfunction 744 B

1234567891011
  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 if score $countdown mem matches 1.. run title @a times 3 14 2
  6. scoreboard players operation #time mem = $countdown mem
  7. scoreboard players remove #time mem 1
  8. execute if score $countdown mem matches 1.. run title @a subtitle {"score":{"name":"#time","objective":"mem"}}
  9. execute if score $countdown mem matches 1.. run title @a title [""]
  10. execute if score $countdown mem matches 1..10 run execute as @a at @s run function lib:sounds/hit2