Просмотр исходного кода

重构:节奏方块(修复)

LTCatt 5 лет назад
Родитель
Сommit
c616a42986
2 измененных файлов с 2 добавлено и 4 удалено
  1. 1 1
      data/lib/functions/tempo_block/tick5.mcfunction
  2. 1 3
      data/ltw/functions/init/all.mcfunction

+ 1 - 1
data/lib/functions/tempo_block/tick5.mcfunction

@@ -1,6 +1,6 @@
 
 
 # 倒计时(后续为 0~5,即 1.5s 一轮)
 # 倒计时(后续为 0~5,即 1.5s 一轮)
-execute if score $countdown_tempo mem matches 0 run scoreboard players set $countdown_tempo mem 6
+execute unless score $countdown_tempo mem matches 1.. run scoreboard players set $countdown_tempo mem 6
 execute if score $countdown_tempo mem matches 1.. run scoreboard players remove $countdown_tempo mem 1
 execute if score $countdown_tempo mem matches 1.. run scoreboard players remove $countdown_tempo mem 1
 
 
 # 触发与音效
 # 触发与音效

+ 1 - 3
data/ltw/functions/init/all.mcfunction

@@ -115,10 +115,8 @@ gamerule universalAnger true
 worldborder warning distance 0
 worldborder warning distance 0
 
 
 # ---------------------------------------------
 # ---------------------------------------------
-#  其他模块
+#  切换状态(其中会调用其他 init 函数)
 # ---------------------------------------------
 # ---------------------------------------------
-function ltw:init/gamerule
-function ltw:init/entity
 function ltw:state/0/state_enter
 function ltw:state/0/state_enter