player_enter.mcfunction 433 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. # 播放音效
  11. function lib:sounds/travel
  12. # 显示小游戏介绍
  13. function mini:main/player_intro
  14. # 自由旁观
  15. gamemode spectator
  16. spectate