player_enter.mcfunction 562 B

123456789101112131415161718192021
  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. effect give @s instant_health 10 0 true
  9. gamerule naturalRegeneration false
  10. effect give @s night_vision 1000000 0 true
  11. # 传送玩家
  12. tp @s[tag=!debug] 1010.5 12 5013.0
  13. # 调整模式
  14. gamemode spectator @s[tag=!debug]
  15. gamemode adventure @s[tag=!watcher,tag=!rejoining,tag=!debug]
  16. # 重新加入处理
  17. execute if entity @s[tag=rejoining] run function mini:zombie/player_failed