LTCatt 6 tahun lalu
induk
melakukan
8f91bfee1a

+ 1 - 0
data/ltw/functions/state/0/start_gameparty.mcfunction

@@ -16,5 +16,6 @@ scoreboard players operation @a game_id = $ game_id
 clear @a[tag=!watcher]
 
 # 开始小游戏
+execute as @a at @s run function lib:sounds/levelup
 function lib:sounds/music/stop
 function ltw:state/3/state_enter

+ 4 - 1
data/ltw/functions/state/0/try_start_game.mcfunction

@@ -1,8 +1,11 @@
 # 尝试开始任意游戏
 
+# 进行条件判断
 execute if score $countdown mem matches 0 run scoreboard players set $countdown mem 11
-
 execute if score $game_type mem matches 0 run function ltw:state/0/try_start_classic
 execute if score $game_type mem matches 1 run function ltw:state/0/try_start_gameparty
 
+# 进行提示
+execute if score $countdown mem matches 11 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"游戏即将开始, 请到准备区域准备, 若想旁观则请离开准备区域!"]
+execute if score $countdown mem matches 11 as @a at @s run function lib:sounds/levelup
 execute if score $countdown mem matches 11 run scoreboard players set $countdown mem 10

+ 1 - 3
data/ltw/functions/state/0/try_start_gameparty.mcfunction

@@ -13,6 +13,4 @@ execute if score $count mem matches 9.. if score $countdown mem matches 10 run t
 execute if score $count mem matches 9.. if score $countdown mem matches 1 run tellraw @a [{"text":"","color":"gold"},{"text":">> ","bold": true},"小游戏模式最多支持 8 人, 当前已有 ",{"score": { "name": "$count","objective": "mem"}}, " 人, 将随机抽取 8 人开始游戏!"]
 
 # 开始游戏
-execute if score $countdown mem matches 11 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"即将开始小游戏模式, 请到准备区域准备, 若想旁观则请离开准备区域!"]
-execute if score $countdown mem matches 11 as @a at @s run function lib:sounds/levelup
-execute if score $countdown mem matches 1 run function ltw:state/0/start_gameparty
+execute if score $countdown mem matches 1 run schedule function ltw:state/0/start_gameparty 18t