HerobrineXia 6 лет назад
Родитель
Сommit
4d7efa7d65

+ 2 - 1
data/lib/functions/tempo_block/debug_sound.mcfunction

@@ -1,2 +1,3 @@
 # 跑酷Tempo音效
-function mini:parkour/game/tempo_sound
+function mini:parkour/game/tempo_sound
+function ltw:state/0/parkour/tempo_block/tempo_sound

+ 1 - 0
data/lib/functions/tempo_block/tempo_blue.mcfunction

@@ -1,4 +1,5 @@
 # 调用其他模块
+execute if score $state mem matches 0 run function ltw:state/0/parkour/tempo_block/tempo_blue
 execute if score $state mem matches 5 if score $mini_type mem matches 1 run function mini:parkour/game/tempo_blue
 
 # Debug调用

+ 1 - 0
data/lib/functions/tempo_block/tempo_blue_debug.mcfunction

@@ -1 +1,2 @@
+function ltw:state/0/parkour/tempo_block/tempo_blue
 function mini:parkour/game/tempo_blue

+ 1 - 0
data/lib/functions/tempo_block/tempo_red.mcfunction

@@ -1,4 +1,5 @@
 # 调用其他模块
+execute if score $state mem matches 0 run function ltw:state/0/parkour/tempo_block/tempo_red
 execute if score $state mem matches 5 if score $mini_type mem matches 1 run function mini:parkour/game/tempo_red
 
 # Debug调用

+ 1 - 0
data/lib/functions/tempo_block/tempo_red_debug.mcfunction

@@ -1 +1,2 @@
+function ltw:state/0/parkour/tempo_block/tempo_red
 function mini:parkour/game/tempo_red

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

@@ -1,5 +1,5 @@
 # 调用其他模块(播放声音)
-#execute if score $state mem matches 0
+execute if score $state mem matches 0 run function ltw:state/0/parkour/tempo_block/tempo_sound
 execute if score $state mem matches 5 if score $mini_type mem matches 1 run function mini:parkour/game/tempo_sound
 
 # Debug调用