| 123456789101112131415161718192021222324 |
- # 单个玩家开始小游戏时执行
- # TODO: 让 BGM 支持循环播放
- function lib:sounds/music/mini_slow
- title @s clear
- title @s actionbar ""
- # 触发复活
- say 1
- execute as @s[team=playing] run say 2
- execute as @s[team=playing,tag=!rejoining] run say 3
- function mini:diamond/player_death
- effect give @s slowness 0
- effect give @s blindness 0
- # 设置玩家生命
- attribute @s generic.max_health base set 20
- # 计分板重置
- scoreboard players reset @s diamond
- scoreboard players set @s[team=playing,tag=!rejoining] diamond 0
- # 调整模式
- gamemode spectator @s[team=!debugging]
- gamemode survival @s[team=playing,tag=!rejoining]
|