try_start_game.mcfunction 705 B

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