瀏覽代碼

优化音效

LTCatt 6 年之前
父節點
當前提交
2a13213248

+ 4 - 4
data/mini/functions/parkour/game/tempo_block.mcfunction

@@ -29,7 +29,7 @@ execute if score $parkour_block mem matches 1 run setblock 1009 16 1051 minecraf
 execute if score $parkour_block mem matches 1 run setblock 1004 17 1050 minecraft:crimson_hyphae
 
 # 音效
-execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a 1005 15 1051 0.8 0.6
-execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a 1005 15 1051 0.8 1.1
-execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a 1008 10 1033 0.8 0.6
-execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a 1008 10 1033 0.8 1.1
+execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a 1005 15 1051 0.6 0.6
+execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a 1005 15 1051 0.6 1.1
+execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a 1008 10 1033 0.6 0.6
+execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a 1008 10 1033 0.6 1.1

+ 8 - 1
data/mini/functions/parkour/tick2.mcfunction

@@ -1,2 +1,9 @@
+# 节奏方块触发
 execute if score $countdown_fast mem matches 0 run function mini:parkour/game/tempo_block
-execute unless score $countdown_fast mem matches 1.. run scoreboard players set $countdown_fast mem 15
+execute unless score $countdown_fast mem matches 1.. run scoreboard players set $countdown_fast mem 15
+
+# 音效
+execute if score $countdown_fast mem matches 5 run playsound block.note_block.snare block @a 1005 15 1051 0.6 2
+execute if score $countdown_fast mem matches 5 run playsound block.note_block.snare block @a 1008 10 1033 0.6 2
+execute if score $countdown_fast mem matches 10 run playsound block.note_block.snare block @a 1005 15 1051 0.6 2
+execute if score $countdown_fast mem matches 10 run playsound block.note_block.snare block @a 1008 10 1033 0.6 2

+ 3 - 1
data/mini/functions/parkour/tick20.mcfunction

@@ -1 +1,3 @@
-execute if score $parkour_door mem matches 1 run playsound block.portal.ambient ambient @a 1014.5 22 1057.5
+# 地狱门音效
+execute unless score $countdown mem matches 1.. run scoreboard players set $countdown mem 3
+execute if score $countdown mem matches 0 if score $parkour_door mem matches 1 run playsound block.portal.ambient ambient @a 1014.5 22 1057.5 0.7

+ 0 - 4
data/mini/functions/parkour/tick5.mcfunction

@@ -3,7 +3,3 @@ execute as @a[tag=mini_running,x=1005,y=11,z=1018,dx=2,dy=3,dz=2] run function m
 
 # 掉落方块保持
 execute as @e[type=falling_block,tag=parkour_block] run data modify entity @s Time set value 1
-
-# 音效
-playsound block.note_block.snare block @a 1005 15 1051 0.8 2
-playsound block.note_block.snare block @a 1008 10 1033 0.8 2