tick20.mcfunction 703 B

1234567891011121314151617
  1. # 每秒执行一次
  2. schedule function ltw:clock/tick20 20t replace
  3. # 调用其他模块
  4. execute if score $state mem matches 3 run function ltw:state/3/tick20
  5. execute if score $state mem matches 4 run function ltw:state/4/tick20
  6. execute if score $state mem matches 5 run function ltw:state/5/tick20
  7. execute if score $state mem matches 6 run function ltw:state/6/tick20
  8. execute if score $state mem matches 7 run function ltw:state/7/tick20
  9. execute if score $state mem matches 8 run function ltw:state/8/tick20
  10. # 全局倒计时
  11. execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
  12. # 掐死原版 BGM
  13. stopsound @a music music.game
  14. stopsound @a music music.creative