player_enter.mcfunction 404 B

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