player_enter.mcfunction 455 B

123456789101112131415161718
  1. # 单个玩家开始小游戏时执行
  2. function lib:sounds/music/mini_fast
  3. title @s clear
  4. title @s actionbar ""
  5. # 状态效果
  6. effect clear @s
  7. effect give @s saturation 1000000 0 true
  8. gamerule naturalRegeneration true
  9. effect give @s night_vision 1000000 0 true
  10. effect give @s resistance 1000000 4 true
  11. # 传送玩家
  12. tp @s[tag=!watcher,tag=!rejoining] 1005 15 1005
  13. # 调整模式
  14. gamemode spectator @s
  15. gamemode adventure @s[tag=!watcher,tag=!rejoining]