咔勒否 瓦鲁多
This commit is contained in:
@@ -11,5 +11,5 @@ 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": "扫地机已关闭"}
|
||||
tellraw @a {"text": "[信息]扫地机已关闭","color": "#5fff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
|
||||
@@ -1,3 +1,5 @@
|
||||
data merge storage fz.installed {sweeper:1b}
|
||||
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]扫地机已安装","color": "#5fff00"}
|
||||
function fz:sweeper/start
|
||||
@@ -1,6 +1,6 @@
|
||||
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": "堆物品"}]
|
||||
tellraw @a [{"text": "[信息]本次清理了","color": "#5fff00"},{"score": {"objective": "parameter", "name": "sweeperItem"},"color": "#5fff00"},{"text": "堆物品","color": "#5fff00"}]
|
||||
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
|
||||
|
||||
@@ -10,4 +10,4 @@ schedule clear fz:sweeper/timer/2min
|
||||
schedule clear fz:sweeper/timer/3min
|
||||
schedule clear fz:sweeper/timer/4min
|
||||
|
||||
tellraw @a {"text": "扫地机ok"}
|
||||
tellraw @a {"text": "[信息]扫地机已启用","color": "#5fff00"}
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "10s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]10s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/5s 5s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "1min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]1min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/30s 30s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "1s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]1s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/main 1s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "2min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]2min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1min 60s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "2s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]2s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1s 1s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "30s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]30s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/10s 20s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "3min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]3min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2min 60s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "3s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]3s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2s 1s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "4min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]4min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3min 60s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "4s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]4s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3s 1s
|
||||
@@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "5s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]5s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/4s 1s
|
||||
@@ -11,4 +11,6 @@ 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}
|
||||
data merge storage fz.installed {sweeper:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]扫地机已卸载","color": "#5fff00"}
|
||||
Reference in New Issue
Block a user