tick2.mcfunction 617 B

12345678910111213
  1. # 每秒执行一次
  2. schedule function ltw:clock/tick2 2t replace
  3. # 调用其他模块
  4. execute if score $state mem matches 1.. run function item:tick2
  5. execute if score $state mem matches 3 run function ltw:state/3/tick2
  6. execute if score $state mem matches 4 run function ltw:state/4/tick2
  7. execute if score $state mem matches 5 run function ltw:state/5/tick2
  8. execute if score $state mem matches 6 run function ltw:state/6/tick2
  9. execute if score $state mem matches 7 run function ltw:state/7/tick2
  10. # 全局倒计时
  11. execute if score $countdown_fast mem matches 1.. run scoreboard players remove $countdown_fast mem 1