player_enter.mcfunction 654 B

123456789101112131415161718192021222324
  1. # 单个玩家开始小游戏时执行
  2. function lib:sounds/music/mini_middle
  3. title @s clear
  4. title @s actionbar ""
  5. # 给予状态效果
  6. effect clear @s
  7. function mini:parkour/give_effect
  8. # 设置玩家生命
  9. attribute @s generic.max_health base set 20
  10. gamerule naturalRegeneration true
  11. # 传送玩家
  12. spreadplayers 1018 1007 4 6 under 9 false @s[team=playing,tag=!rejoining]
  13. # tp @s[team=playing,tag=!rejoining] 1010.07 7.50 1006.98 -1518.69 -10.62
  14. # 调整模式
  15. gamemode spectator @s[team=!debugging]
  16. gamemode adventure @s[team=playing,tag=!rejoining]
  17. # 修改 Tag
  18. tag @s add parkour_portal
  19. tag @s[team=playing,tag=!rejoining] remove parkour_portal