player_enter.mcfunction 442 B

12345678910111213141516171819
  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. # 显示小游戏介绍
  10. function mini:main/player_intro
  11. # 播放音效
  12. execute at @s run function lib:sounds/travel
  13. # 自由旁观
  14. gamemode spectator @s[tag=!debug]
  15. spectate