player_enter.mcfunction 561 B

12345678910111213141516171819202122
  1. # 单个玩家开始小游戏时执行
  2. function lib:sounds/music/mini_secret
  3. title @s clear
  4. title @s actionbar ""
  5. # 状态效果
  6. function mini:ass/give_effect
  7. # 设置玩家生命
  8. attribute @s generic.max_health base set 20
  9. gamerule naturalRegeneration false
  10. # 计分板重置
  11. scoreboard players set @s countdown_fast 10
  12. scoreboard players set @s creeperUse 0
  13. # 传送玩家
  14. spreadplayers 1015 7015 1 10 under 15 false @s[team=playing,tag=!rejoining]
  15. # 调整模式
  16. gamemode spectator @s[team=!debugging]
  17. gamemode adventure @s[team=playing,tag=!rejoining]