| 12345678910111213141516171819202122232425262728293031323334353637 |
- # 单个玩家开始小游戏时执行
- function lib:sounds/music/mini_middle
- title @s clear
- title @s actionbar ""
- # 给予状态效果
- function mini:parkour/give_effect
- # 设置玩家生命
- attribute @s generic.max_health base set 20
- gamerule naturalRegeneration true
- # 计分板重置
- scoreboard players reset @s treasure
- scoreboard players set @s[team=playing,tag=!rejoining] treasure 0
- tag @s remove treasure1
- tag @s remove treasure2
- tag @s remove treasure3
- tag @s remove treasure4
- tag @s remove treasure5
- tag @s remove treasure6
- tag @s remove treasure7
- tag @s remove treasure8
- tag @s remove treasure9
- tag @s remove treasure10
- # 传送玩家
- spreadplayers 1018 1007 4 6 under 9 false @s[team=playing,tag=!rejoining]
- # tp @s[team=playing,tag=!rejoining] 1010.07 7.50 1006.98 -1518.69 -10.62
- # 调整模式
- gamemode spectator @s[team=!debugging]
- gamemode adventure @s[team=playing,tag=!rejoining]
- # 修改 Tag
- tag @s add parkour_portal
- tag @s[team=playing,tag=!rejoining] remove parkour_portal
|