player_enter.mcfunction 497 B

1234567891011121314151617181920
  1. # 对单个玩家的处理(如果玩家中途加入就会执行此函数)
  2. gamemode creative
  3. title @s clear
  4. title @s actionbar ""
  5. # 状态效果
  6. effect clear @s
  7. effect give @s saturation 1000000 0 true
  8. effect give @s instant_health 10 0 true
  9. effect give @s night_vision 1000000 0 true
  10. effect give @s resistance 1000000 4 true
  11. # 传送玩家
  12. tp @s 7.0 11.4 2007.0 0 0
  13. # 自由旁观
  14. gamemode spectator
  15. spectate
  16. # 如果玩家在奖励选择阶段重连,玩家应该跳过此次奖励选择