tick20.mcfunction 1019 B

123456789101112131415161718
  1. # 给予进度
  2. execute as @a[team=playing,scores={temp=1..,kill_phantom=8}] run advancement grant @s only ltw:blood/phantom1
  3. execute as @a[team=playing,scores={temp=1..,kill_phantom=16}] run advancement grant @s only ltw:blood/phantom2
  4. execute as @a[team=playing,scores={temp=1..,kill_phantom=24}] run advancement grant @s only ltw:blood/phantom3
  5. execute as @a[team=playing,scores={temp=1..,kill_phantom=32}] run advancement grant @s only ltw:blood/phantom4
  6. # 召唤幻翼
  7. execute if score $countdown mem matches 11.. run function mini:phantom/game/try_summon
  8. # 显示倒计时
  9. execute if score $countdown mem matches ..10 run title @a times 3 14 2
  10. execute if score $countdown mem matches ..10 run title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
  11. execute if score $countdown mem matches ..10 run title @a title [""]
  12. execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds/hit2
  13. # 0s:游戏结束
  14. execute if score $countdown mem matches 0 run function mini:main/game_end