update 2.0 files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
execute unless score sweeperTime parameter matches 0 run scoreboard players set sweeperTime parameter 0
|
||||
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
|
||||
tellraw @a {"text": "扫地机已关闭"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
|
||||
@@ -0,0 +1,17 @@
|
||||
execute if score @s config matches 1478966211 run scoreboard players set sweeperTime parameter 30
|
||||
execute if score @s config matches 1478966212 run scoreboard players set sweeperTime parameter 60
|
||||
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/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
|
||||
function fz:sweeper/main
|
||||
@@ -0,0 +1,5 @@
|
||||
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
|
||||
scoreboard players reset @s config
|
||||
function fz:config/display
|
||||
@@ -0,0 +1,4 @@
|
||||
execute if score @s config matches 1478966216 run scoreboard players set sweepMinecart parameter 1
|
||||
execute if score @s config matches 1478966217 run scoreboard players reset sweepMinecart parameter
|
||||
scoreboard players reset @s config
|
||||
function fz:config/display
|
||||
@@ -0,0 +1,3 @@
|
||||
data merge storage fz.installed {sweeper:1b}
|
||||
|
||||
function fz:sweeper/start
|
||||
@@ -0,0 +1,9 @@
|
||||
execute if score sweepMinecart parameter matches 1 run execute store result score sweeperItem parameter run kill @e[type=item]
|
||||
execute unless score sweepMinecart parameter matches 1 run execute store result score sweeperItem parameter run kill @e[type=item,predicate=!fz:sweeper/minecart]
|
||||
tellraw @a [{"text": "本次清理了"},{"score": {"objective": "parameter", "name": "sweeperItem"}},{"text": "堆物品"}]
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
|
||||
execute if score sweeperTime parameter matches 30 run function fz:sweeper/timer/30s
|
||||
execute if score sweeperTime parameter matches 60 run function fz:sweeper/timer/1min
|
||||
execute if score sweeperTime parameter matches 120 run function fz:sweeper/timer/2min
|
||||
execute if score sweeperTime parameter matches 180 run function fz:sweeper/timer/3min
|
||||
execute if score sweeperTime parameter matches 240 run function fz:sweeper/timer/4min
|
||||
@@ -0,0 +1,13 @@
|
||||
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
|
||||
|
||||
tellraw @a {"text": "扫地机ok"}
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "10s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/5s 5s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "1min后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/30s 30s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "1s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/main 1s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "2min后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1min 60s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "2s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1s 1s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "30s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/10s 20s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "3min后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2min 60s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "3s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2s 1s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "4min后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3min 60s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "4s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3s 1s
|
||||
@@ -0,0 +1,3 @@
|
||||
tellraw @a {"text": "5s后清理掉落物"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/4s 1s
|
||||
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
data merge storage fz.installed {sweeper:0b}
|
||||
Reference in New Issue
Block a user