fz-survival-datapack/data/fz/functions/sweeper/config/off.mcfunction

19 lines
846 B
Mcfunction
Raw Normal View History

2020-11-27 00:27:49 +08:00
execute unless score sweeperTime parameter matches 0 run scoreboard players set sweeperTime parameter 0
2020-12-28 17:29:01 +08:00
schedule clear fz:sweeper/bossbar
2020-11-27 00:27:49 +08:00
schedule clear fz:sweeper/main
schedule clear fz:sweeper/timer/1s
schedule clear fz:sweeper/timer/2s
schedule clear fz:sweeper/timer/3s
schedule clear fz:sweeper/timer/4s
schedule clear fz:sweeper/timer/5s
schedule clear fz:sweeper/timer/10s
schedule clear fz:sweeper/timer/30s
schedule clear fz:sweeper/timer/1min
schedule clear fz:sweeper/timer/2min
schedule clear fz:sweeper/timer/3min
schedule clear fz:sweeper/timer/4min
2020-12-28 17:29:01 +08:00
#设置怪物血条
bossbar set fz:sweeper visible false
2020-12-28 17:29:01 +08:00
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[信息]扫地机已关闭","color": "#5fff00"}
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2