This commit is contained in:
Harveykang
2020-12-28 17:29:01 +08:00
parent 77cc36b363
commit cc392b1828
26 changed files with 102 additions and 45 deletions
@@ -1,4 +1,5 @@
execute unless score sweeperTime parameter matches 0 run scoreboard players set sweeperTime parameter 0
schedule clear fz:sweeper/bossbar
schedule clear fz:sweeper/main
schedule clear fz:sweeper/timer/1s
schedule clear fz:sweeper/timer/2s
@@ -11,5 +12,8 @@ schedule clear fz:sweeper/timer/1min
schedule clear fz:sweeper/timer/2min
schedule clear fz:sweeper/timer/3min
schedule clear fz:sweeper/timer/4min
tellraw @a {"text": "[信息]扫地机已关闭","color": "#5fff00"}
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
#设置怪物血条
bossbar set minecraft:fz.sweeper visible false
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
@@ -3,6 +3,8 @@ execute if score @s config matches 1478966212 run scoreboard players set sweeper
execute if score @s config matches 1478966213 run scoreboard players set sweeperTime parameter 120
execute if score @s config matches 1478966214 run scoreboard players set sweeperTime parameter 180
execute if score @s config matches 1478966215 run scoreboard players set sweeperTime parameter 240
schedule clear fz:sweeper/bossbar
schedule clear fz:sweeper/main
schedule clear fz:sweeper/timer/1s
schedule clear fz:sweeper/timer/2s
schedule clear fz:sweeper/timer/3s
@@ -14,4 +16,8 @@ schedule clear fz:sweeper/timer/1min
schedule clear fz:sweeper/timer/2min
schedule clear fz:sweeper/timer/3min
schedule clear fz:sweeper/timer/4min
function fz:sweeper/main
#设置怪物血条
bossbar set minecraft:fz.sweeper visible true
function fz:sweeper/main
function fz:sweeper/bossbar
@@ -1,5 +1,19 @@
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
execute if score @s config matches 1478966216 run function fz:sweeper/config/minecart
#提示音开关
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 minecraft:fz.sweeper players @a[tag=!fz.sweeperBossbarOff]
scoreboard players reset @s config
function fz:config/display
@@ -1,4 +0,0 @@
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
scoreboard players reset @s config
function fz:config/display