LTCatt 6 年之前
父節點
當前提交
794bb76c38

+ 6 - 2
data/ltw/functions/state/0/try_start_game.mcfunction

@@ -1,4 +1,8 @@
 # 尝试开始任意游戏
 
-execute if score $countdown mem matches 0 run scoreboard players set $countdown mem 10
-function ltw:state/0/tick20
+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 scoreboard players set $countdown mem 10

+ 2 - 2
data/ltw/functions/state/0/try_start_gameparty.mcfunction

@@ -13,6 +13,6 @@ 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 10 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"即将开始小游戏模式, 请到准备区域准备, 若想旁观则请离开准备区域!"]
-execute if score $countdown mem matches 10 as @a at @s run function lib:sounds/levelup
+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