2
0

player_enter_rejoin.mcfunction 776 B

1234567891011121314151617181920
  1. # 作为玩家加入服务器
  2. tag @s remove watcher
  3. # 清除名次
  4. tag @s remove mini_rank1
  5. tag @s remove mini_rank2
  6. tag @s remove mini_rank3
  7. tag @s add mini_rank4
  8. # 重新加入阶段
  9. tag @s add rejoining
  10. execute if score $state mem matches 0 run function ltw:state/0/player_enter
  11. execute if score $state mem matches 3 run function ltw:state/3/player_enter
  12. execute if score $state mem matches 4 run function ltw:state/4/player_enter
  13. execute if score $state mem matches 5 run function ltw:state/5/player_enter
  14. execute if score $state mem matches 6 run function ltw:state/6/player_enter
  15. execute if score $state mem matches 7 run function ltw:state/7/player_enter
  16. tag @s remove rejoining
  17. # TODO : 如果玩家在奖励选择阶段重连,玩家应该跳过此次奖励选择