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

优化音效大小,添加上下线音效

LTCatt 6 лет назад
Родитель
Сommit
2e8a34c082

+ 1 - 1
data/lib/functions/sounds/error.mcfunction

@@ -1 +1 @@
-playsound minecraft:block.note_block.didgeridoo block @s ~ ~ ~ 1 1
+playsound minecraft:block.note_block.didgeridoo block @s

+ 1 - 1
data/lib/functions/sounds/theend.mcfunction

@@ -1 +1 @@
-playsound minecraft:ui.toast.challenge_complete block @s ~ ~ ~ 0.7 0.9
+playsound minecraft:ui.toast.challenge_complete block @s 0 1000000 0 1000000 0.9

+ 1 - 1
data/lib/functions/sounds/travel.mcfunction

@@ -1 +1 @@
-playsound minecraft:block.portal.travel block @s ~ ~ ~ 0.3 2
+playsound minecraft:block.portal.travel block @s ~ ~ ~ 0.5 2

+ 1 - 0
data/ltw/functions/main/player_enter.mcfunction

@@ -1,6 +1,7 @@
 # 当玩家加入游戏时触发
 team join ltw @s
 advancement revoke @s everything
+execute as @a at @s run function lib:sounds/error
 
 # 如果是旁观者或局号不对头:开始旁观
 execute if entity @s[tag=watcher] run function ltw:main/player_enter_watcher

+ 1 - 0
data/ltw/functions/main/player_leave.mcfunction

@@ -1,4 +1,5 @@
 # 任意玩家下线时触发
+execute as @a at @s run function lib:sounds/error
 
 execute store result score $t_count mem if entity @a[tag=!watcher]
 execute if score $state mem matches 1.. if score $game_type mem matches 1 if score $t_count mem matches ..2 run function ltw:main/game_end