Quellcode durchsuchen

三叉戟能丢啦

HerobrineXia vor 6 Jahren
Ursprung
Commit
564ef90fd6
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      data/ltw/functions/clock/tick2.mcfunction

+ 4 - 2
data/ltw/functions/clock/tick2.mcfunction

@@ -1,14 +1,16 @@
 # 每秒执行一次
 schedule function ltw:clock/tick2 2t replace
 
-# 调用其他模块
-function item:tick2
+# 调用其他阶段模块
 execute if score $state mem matches 3 run function ltw:state/3/tick2
 execute if score $state mem matches 4 run function ltw:state/4/tick2
 execute if score $state mem matches 5 run function ltw:state/5/tick2
 execute if score $state mem matches 6 run function ltw:state/6/tick2
 execute if score $state mem matches 7 run function ltw:state/7/tick2
 
+# 调用物品模块(必须最后调用
+function item:tick2
+
 # 全局倒计时
 execute if score $countdown_fast mem matches 1.. run scoreboard players remove $countdown_fast mem 1
 scoreboard players remove @e[scores={countdown_fast=1..}] countdown_fast 1