player_enter.mcfunction 458 B

12345678910111213141516171819
  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. execute as @a run attribute @s generic.max_health base set 20
  12. # 冒险模式
  13. gamemode adventure
  14. # 传送玩家
  15. tp @s 10 16 10