player_enter.mcfunction 638 B

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