player_enter.mcfunction 839 B

1234567891011121314151617181920212223242526272829
  1. # 对单个玩家的处理(如果玩家中途加入就会执行此函数)
  2. title @s clear
  3. title @s actionbar ""
  4. # 状态效果
  5. effect clear @s
  6. effect give @s saturation 1000000 0 true
  7. gamerule naturalRegeneration true
  8. #effect give @s night_vision 1000000 0 true
  9. effect give @s resistance 1000000 4 true
  10. # 传送玩家
  11. tp @s[team=!debugging] 24.5 11.0 1967.5 112.5 25
  12. execute at @s run function lib:sounds/travel
  13. # 清除 Tag
  14. tag @s[team=watching] remove mini_rank1
  15. tag @s[team=watching] remove mini_rank2
  16. tag @s[team=watching] remove mini_rank3
  17. tag @s[team=watching] remove mini_rank4
  18. tag @s[tag=rejoining] remove mini_rank1
  19. tag @s[tag=rejoining] remove mini_rank2
  20. tag @s[tag=rejoining] remove mini_rank3
  21. tag @s[tag=rejoining] remove mini_rank4
  22. tag @s remove selecting
  23. # 自由旁观
  24. gamemode spectator @s[team=!debugging]
  25. spectate