player_enter.mcfunction 656 B

12345678910111213141516171819202122232425
  1. # 单个玩家开始小游戏时执行
  2. gamemode creative
  3. title @s clear
  4. # 状态效果
  5. effect clear @s
  6. effect give @s saturation 1000000 0 true
  7. effect give @s instant_health 10 0 true
  8. effect give @s night_vision 1000000 0 true
  9. effect give @s resistance 1000000 4 true
  10. # 传送玩家
  11. spreadplayers 1011.5 2011.5 7 7 false @s[tag=!watcher,tag=!rejoining]
  12. # schedule: tp @a ~ ~-3 ~
  13. # 两秒后才开始 TNT 掉落
  14. tag @s remove tntrun_pc
  15. # schedule: tag @a add tntrun_pc
  16. # 调整模式
  17. gamemode spectator @s
  18. gamemode adventure @s[tag=!watcher,tag=!rejoining]
  19. # 重新加入处理
  20. execute if entity @s[tag=rejoining] run function mini:tntrun/player_failed