tick1.mcfunction 257 B

12345678
  1. # 每 1 Tick 执行一次
  2. # 检查系统重置情况
  3. scoreboard objectives add mem dummy "全局变量"
  4. execute unless score #10 mem matches 10 run function ltw:init
  5. # 调用其他模块
  6. execute if score $state mem matches 5 run function ltw:state/5/tick1