player_enter.mcfunction 571 B

123456789101112131415161718192021
  1. # 单个玩家开始小游戏时执行
  2. function lib:sounds/music/mini_middle
  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 resistance 1000000 4 true
  10. # 传送玩家
  11. tp @s[tag=!watcher,tag=!rejoining,tag=!debug] 1010.07 7.50 1006.98 -1518.69 -10.62
  12. # 调整模式
  13. gamemode spectator @s[tag=!debug]
  14. gamemode adventure @s[tag=!watcher,tag=!rejoining,tag=!debug]
  15. # 修改 Tag
  16. tag @s add parkour_portal
  17. tag @s[tag=!watcher,tag=!rejoining] remove parkour_portal