try_start_game.mcfunction 560 B

12345678910
  1. # 尝试开始游戏
  2. # 进行条件判断
  3. execute if score $countdown mem matches 0 run scoreboard players set $countdown mem 999
  4. function ltw:state/0/try_start_gameparty
  5. # 进行提示
  6. execute if score $countdown mem matches 999 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"游戏即将开始, 请使用快捷栏最后一格确定自己是否参与!"]
  7. execute if score $countdown mem matches 999 as @a at @s run function lib:sounds/levelup
  8. execute if score $countdown mem matches 999 run scoreboard players set $countdown mem 31