fz-survival-datapack/data/fz/functions/sweeper/bossbar.mcfunction
2021-07-03 18:55:08 +08:00

4 lines
361 B
Mcfunction

bossbar set fz.sweeper name [{"score": {"name": "sweeperBossbar","objective": "parameter"},"color": "#ff6100","underlined": true,"bold": true},{"text": "秒后清理垃圾","color": "#ffd900","bold": false}]
bossbar set fz.sweeper players @a[tag=!fz.sweeperBossbarOff]
scoreboard players remove sweeperBossbar parameter 1
schedule function fz:sweeper/bossbar 1s