Forráskód Böngészése

重构:节奏方块(修复)

LTCatt 5 éve
szülő
commit
c616a42986

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

@@ -1,6 +1,6 @@
 
 # 倒计时(后续为 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
 
 # 触发与音效

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

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