player_enter.mcfunction 624 B

123456789101112131415161718192021222324
  1. # 单个玩家开始小游戏时执行
  2. title @s clear
  3. gamemode adventure @s
  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. gamerule fallDamage false
  12. gamerule fireDamage false
  13. # 传送玩家
  14. spreadplayers 1011.5 2011.5 7 7 false @s
  15. schedule function mini:tntrun/player_enter2 1t replace
  16. # schedule: tp @a ~ ~-3 ~
  17. # 两秒后才开始 TNT 掉落
  18. tag @s remove tntrun_pc
  19. schedule function mini:tntrun/player_enter3 2s replace
  20. # schedule: tag @a add tntrun_pc