player_leave.mcfunction 837 B

12345678910111213141516
  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 ..1 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 ..1 run tellraw @a {"text": "由于玩家人数不足, 游戏直接结束!","color":"red"}
  6. # 热土豆检测
  7. execute if score $state mem matches 5 if score $mini_type mem matches 3 run function mini:hotpm/game/check_potato
  8. # TODO : [LTCat] 优化跑酷,让它更有趣!
  9. # TODO : [HIM] 将 colormatch 的地图缩小到 20x20
  10. # TODO : [010/HIM] 做一下主地图
  11. # TODO : [LTCat] 奖励选择系统
  12. # TODO : [010/HIM] 快捷栏锁定系统