@@ -1 +1 @@
-playsound minecraft:entity.arrow.hit_player ambient @s
+playsound minecraft:entity.arrow.hit_player player @s
-playsound minecraft:entity.arrow.hit_player ambient @s ~ ~ ~ 1 0.5
+playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~ 1 0.5
-playsound minecraft:entity.player.hurt ambient @s
+playsound minecraft:entity.player.hurt player @s
@@ -0,0 +1,4 @@
+# 播放主大厅 BGM
+
+function lib:sounds/music/stop
+playsound minecraft:music_disc.stal music @s 0 1000000 0 1000000
+# 播放小游戏 BGM(快节奏)
+playsound minecraft:music_disc.pigstep music @s 0 1000000 0 1000000
+# 播放小游戏 BGM(慢节奏)
+playsound minecraft:music_disc.mellohi music @s 0 1000000 0 1000000
+# 播放等待 BGM
+playsound minecraft:music_disc.mall music @s 0 1000000 0 1000000
@@ -0,0 +1,3 @@
+# 停止 BGM
+stopsound @s music
-playsound minecraft:entity.enderman.teleport block @s
+playsound minecraft:entity.enderman.teleport block @s 0 1000000 0 1000000
-playsound minecraft:ui.toast.challenge_complete ambient @s ~ ~ ~ 0.5 0.9
+playsound minecraft:ui.toast.challenge_complete block @s ~ ~ ~ 0.7 0.9
-playsound minecraft:block.portal.travel ambient @s ~ ~ ~ 0.2 2
+playsound minecraft:block.portal.travel block @s ~ ~ ~ 0.3 2
@@ -8,3 +8,6 @@ execute if score $state mem matches 6 run function ltw:state/6/tick20
# 全局倒计时
execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
+# 掐死原版 BGM
+stopsound @a music music.game
@@ -1,4 +1,5 @@
# 对单个玩家的处理(如果玩家中途加入就会执行此函数)
+function lib:sounds/music/hub
title @s clear
title @s actionbar ""
+function lib:sounds/music/rest
# 单个玩家开始小游戏时执行
+function lib:sounds/music/mini_fast
@@ -1,5 +1,6 @@
# 传送
execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ minecraft:barrier run tp ~ ~17.5 ~
+execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ minecraft:barrier run function lib:sounds/teleport
# 给持有者播放音效
execute as @a[tag=pm_hoding] at @s run function lib:sounds/creeper