tick20.mcfunction 374 B

12345678910
  1. # 玩家加入游戏的检测
  2. # 离开次数为不存在,则为第一次加入游戏
  3. # 离开次数不为 0,则离开过游戏
  4. execute as @a unless score @s leave_game matches 0 run function ltw:main/player_enter
  5. execute as @a unless score @s leave_game matches 0 run scoreboard players set @s leave_game 0
  6. # TODO: 未完成的重构
  7. #function ltw:main/player_changed