player_leave.mcfunction 524 B

12345678
  1. # 任意玩家下线时触发
  2. execute store result score $t_count mem if entity @a[tag=!watcher]
  3. 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
  4. execute if score $state mem matches 1.. if score $game_type mem matches 1 if score $t_count mem matches ..2 run tellraw @a {"text": "由于玩家人数不足, 游戏直接结束!","color":"red"}
  5. # TODO : 优化跑酷,让它更有趣!
  6. # TODO : 将 colormatch 的地图缩小到 20x20