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

19 lines
1.1 KiB
Mcfunction
Raw Normal View History

2020-11-27 00:27:49 +08:00
execute if score @s config matches 1478966211..1478966215 run function fz:sweeper/config/on
execute if score @s config matches 1478966210 run function fz:sweeper/config/off
2020-12-28 17:29:01 +08:00
#提示音开关
execute if score @s config matches 1478966208 run tag @s remove fz.sweeperSoundOff
execute if score @s config matches 1478966209 run tag @s add fz.sweeperSoundOff
#boss血条时间提示开关
execute if score @s config matches 1478966206 run tag @s remove fz.sweeperBossbarOff
execute if score @s config matches 1478966207 run tag @s add fz.sweeperBossbarOff
#文字时间提示开关
execute if score @s config matches 1478966204 run tag @s remove fz.sweeperMessageOff
execute if score @s config matches 1478966205 run tag @s add fz.sweeperMessageOff
#矿车白名单
execute if score @s config matches 1478966216 run scoreboard players set keepMinecart parameter 1
execute if score @s config matches 1478966217 run scoreboard players reset keepMinecart parameter
bossbar set fz:sweeper players @a[tag=!fz.sweeperBossbarOff]
2020-12-28 17:29:01 +08:00
2020-11-27 00:27:49 +08:00
scoreboard players reset @s config
function fz:config/display