player_enter.mcfunction 724 B

1234567891011121314151617181920212223242526
  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. spreadplayers 1011.5 2011.5 4 4 false @s[tag=!watcher,tag=!rejoining,tag=!debug]
  13. # schedule: tp @a ~ ~-3 ~
  14. # 两秒后才开始 TNT 掉落
  15. tag @s remove tntrun_pc
  16. # schedule: tag @a add tntrun_pc
  17. # 调整模式
  18. gamemode spectator @s[tag=!debug]
  19. gamemode adventure @s[tag=!watcher,tag=!rejoining,tag=!debug]
  20. # 重新加入处理
  21. execute if entity @s[tag=rejoining] run function mini:tntrun/player_failed