From 7a9adc2aacb573479c96c81899c837e826451d0f Mon Sep 17 00:00:00 2001 From: Harveykang <46108547+Harveykang@users.noreply.github.com> Date: Sat, 21 Mar 2020 21:07:15 +0800 Subject: [PATCH] Add files via upload --- data/fz/functions/cleaner/trigger.mcfunction | 3 ++- data/fz/functions/cleaner/uninstall.mcfunction | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/fz/functions/cleaner/trigger.mcfunction b/data/fz/functions/cleaner/trigger.mcfunction index 7372921..493e3a4 100644 --- a/data/fz/functions/cleaner/trigger.mcfunction +++ b/data/fz/functions/cleaner/trigger.mcfunction @@ -2,7 +2,8 @@ scoreboard players enable @a cleaner scoreboard players enable @a cleanerMessage execute as @a[scores={cleaner=..-1}] run function fz:cleaner/cleaneroff execute as @a[scores={cleaner=1..29}] run tellraw @s [{"text":"请输入>=30的时间(单位:秒)","color":"dark_red"}] -execute as @a[scores={cleaner=30..}] run function fz:cleaner/cleaneron +execute as @a[scores={cleaner=30..107374182}] run function fz:cleaner/cleaneron +execute as @a[scores={cleaner=107374183..}] run tellraw @s [{"text":"数值溢出,不能大于107374182","color":"dark_red"}] execute as @a[scores={cleanerMessage=1},tag=noDisplayCleanerChat] run function fz:cleaner/cleanerchaton execute as @a[scores={cleanerMessage=-1},tag=!noDisplayCleanerChat] run function fz:cleaner/cleanerchatoff execute as @a[scores={cleanerMessage=2},tag=!displayCleanerBossBar] run function fz:cleaner/cleanerbaron diff --git a/data/fz/functions/cleaner/uninstall.mcfunction b/data/fz/functions/cleaner/uninstall.mcfunction index 2a33f9e..d1c11e1 100644 --- a/data/fz/functions/cleaner/uninstall.mcfunction +++ b/data/fz/functions/cleaner/uninstall.mcfunction @@ -2,6 +2,7 @@ scoreboard objectives remove cleaner scoreboard objectives remove cleaned scoreboard objectives remove cleanerBooleans scoreboard objectives remove setCleanTime +scoreboard objectives remove secondsCounter scoreboard objectives remove displayCleanTime scoreboard objectives remove cleanerMessage bossbar remove cleaner \ No newline at end of file