player_leave.mcfunction 703 B

123456789101112
  1. # 任意玩家下线时触发
  2. execute as @a at @s run function lib:sounds/error
  3. execute store result score $t_count mem if entity @a[tag=!watcher]
  4. 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
  5. 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"}
  6. # TODO : [LTCat] 优化跑酷,让它更有趣!
  7. # TODO : [HIM] 将 colormatch 的地图缩小到 20x20
  8. # TODO : [010/HIM] 做一下主地图
  9. # TODO : [LTCat] 奖励选择系统
  10. # TODO : [010/HIM] 快捷栏锁定系统