删掉!
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#给萌新辅助自动配置地毯优化和功能的函数
|
||||
carpet setDefault language zh_cn
|
||||
carpet setDefault antiCheatDisabled true
|
||||
carpet setDefault combineXPOrbs true
|
||||
carpet setDefault persistentParrots true
|
||||
carpet setDefault stackableShulkerBoxes true
|
||||
carpet setDefault lagFreeSpawning true
|
||||
carpet setDefault ctrlQCraftingFix true
|
||||
carpet setDefault flippinCactus true
|
||||
carpet setDefault missingTools true
|
||||
carpet setDefault smoothClientAnimations true
|
||||
carpet setDefault optimizedTNT true
|
||||
carpet setDefault leadFix true
|
||||
carpet setDefault placementRotationFix true
|
||||
carpet setDefault xpNoCooldown true
|
||||
carpet setDefault defaultLoggers mobcaps,tps
|
||||
carpet setDefault commandTick true
|
||||
carpet setDefault commandTrackAI true
|
||||
@@ -1,5 +0,0 @@
|
||||
#初始化tagplayer
|
||||
carpet setDefault commandScript true
|
||||
carpet setDefault commandScriptACE ops
|
||||
script run carpet_rules = system_info('world_carpet_rules'); if(carpet_rules:'scriptsAutoload' != 'true', run('carpet setDefault scriptsAutoload true'); run('tellraw @a {"text":"[错误]假人插件未正确加载,已自动将“scriptsAutoload”设为true。正在重载,如仍未加载,请手动加载...", "color":"#ff6100"}'); run('reload'))
|
||||
script unload player
|
||||
@@ -1,28 +0,0 @@
|
||||
#设置或重设超时时间为300s,超时后运行timeout函数
|
||||
schedule function fz:config/timeout 300s
|
||||
#输出玩家可见的设置页面
|
||||
##扫地机
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s {"text": "扫地机:","color": "#ccff00"}
|
||||
##扫地机时间,对应分数1478966210-1478966215
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s [{"text": "- "},{"text": "[关]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966210"}},{"text": "[30秒]","color": "#5fff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966211"}},{"text": "[1分钟]","color": "#d7ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966212"}},{"text": "[2分钟]","color": "#ffd900","clickEvent": {"action": "run_command","value": "/trigger config set 1478966213"}},{"text": "[3分钟]","color": "#ff6100","clickEvent": {"action": "run_command","value": "/trigger config set 1478966214"}},{"text": "[4分钟]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966215"}}]
|
||||
##开启矿车白名单1478966216
|
||||
execute if data storage fz:survival installed{sweeper: 1b} unless score keepMinecart parameter matches 1 run tellraw @s [{"text": "- "},{"text": "矿车白名单:","color": "#8c8f91"},{"text": "[已关闭]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966216"}}]
|
||||
##关闭矿车白名单1478966217
|
||||
execute if data storage fz:survival installed{sweeper: 1b} if score keepMinecart parameter matches 1 run tellraw @s [{"text": "- "},{"text": "矿车白名单:","color": "#8c8f91"},{"text": "[已开启]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966217"}}]
|
||||
##声音提示
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=!fz.sweeperSoundOff] [{"text": "- "},{"text": "声音:","color": "#8c8f91"},{"text": "[已开启]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966209"}}]
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=fz.sweeperSoundOff] [{"text": "- "},{"text": "声音:","color": "#8c8f91"},{"text": "[已关闭]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966208"}}]
|
||||
##消息提示
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=!fz.sweeperMessageOff] [{"text": "- "},{"text": "消息:","color": "#8c8f91"},{"text": "[已开启]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966205"}}]
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=fz.sweeperMessageOff] [{"text": "- "},{"text": "消息:","color": "#8c8f91"},{"text": "[已关闭]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966204"}}]
|
||||
##血条栏提示
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=!fz.sweeperBossbarOff] [{"text": "- "},{"text": "血条栏:","color": "#8c8f91"},{"text": "[已开启]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966207"}}]
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run tellraw @s[tag=fz.sweeperBossbarOff] [{"text": "- "},{"text": "血条栏:","color": "#8c8f91"},{"text": "[已关闭]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966206"}}]
|
||||
##记分板
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"}
|
||||
##计分板显示,对应分数1838019370-1838019379
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} unless score 全员头铁 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[关]","color": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "关", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交♂易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} unless score 全员头铁 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[滑翔距离]", "color": "light_purple", "hoverEvent": {"action": "show_text","contents": {"text": "滑翔距离", "color": "light_purple"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019368"}}]
|
||||
##计分板显示,对应分数1838019369-1838019379(有破基岩榜)
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} if score 全员头铁 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[关]","color": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "关", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交♂易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} if score 全员头铁 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[滑翔距离]", "color": "light_purple", "hoverEvent": {"action": "show_text","contents": {"text": "滑翔距离", "color": "light_purple"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019368"}},{"text": "[铁头功]","color": "dark_green","hoverEvent": {"action": "show_text","contents": {"text": "破基岩榜","color": "dark_green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019369"}}]
|
||||
@@ -1,9 +0,0 @@
|
||||
#安装设置功能
|
||||
#初始化触发器记分板
|
||||
scoreboard objectives add config trigger
|
||||
#存入已安装信息
|
||||
data modify storage fz:survival installed.config set value 1b
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]设置功能已安装","color": "#5fff00"}
|
||||
#开始运行
|
||||
function fz:config/start
|
||||
@@ -1,8 +0,0 @@
|
||||
#主函数
|
||||
#允许玩家操作config记分板
|
||||
scoreboard players enable @a config
|
||||
#每条子函数都要reset config分数和function fz:config/display
|
||||
execute if data storage fz.installed {sweeper: 1b} as @a if score @s config matches 1478966200..1478966217 run function fz:sweeper/config/trigger
|
||||
execute if data storage fz.installed {scoreboards: 1b} as @a if score @s config matches 1838019368..1838019379 run function fz:scoreboards/config
|
||||
#循环执行本函数
|
||||
schedule function fz:config/main 1t
|
||||
@@ -1,9 +0,0 @@
|
||||
#删除进程残留
|
||||
schedule clear fz:config/main
|
||||
schedule clear fz:config/timeout
|
||||
data remove storage fz.config is_open
|
||||
scoreboard players enable @a config
|
||||
advancement revoke @a only fz:config/sneak
|
||||
advancement revoke @a only fz:config/unsneak
|
||||
#测试用的输出
|
||||
tellraw @a {"text": "[信息]设置功能已启用","color": "#5fff00"}
|
||||
@@ -1,8 +0,0 @@
|
||||
#关闭主进程
|
||||
schedule clear fz:config/main
|
||||
#输出给打开过设置界面的玩家的消息
|
||||
tellraw @a[scores={openingConfig=1}] {"text": "[提醒]5分钟无任何人回应,为节省性能,已关闭设置功能,请重新唤起","color": "#66ffff"}
|
||||
#重置打开过设置界面的玩家的列表
|
||||
scoreboard objectives remove openingConfig
|
||||
#移除设置界面被打开的信息
|
||||
data remove storage fz.config is_open
|
||||
@@ -1,11 +0,0 @@
|
||||
#触发函数,由成就和unsneak函数控制
|
||||
#重置玩家的config分数,避免开启设置功能后,由于该玩家先前的分数而直接运行某些功能
|
||||
scoreboard players reset @s config
|
||||
#判断设置功能是否已经开启,如果未开启则运行主函数
|
||||
execute unless data storage fz.config {is_open: 1b} run function fz:config/main
|
||||
execute unless data storage fz.config {is_open: 1b} run scoreboard objectives add openingConfig dummy
|
||||
execute unless data storage fz.config {is_open: 1b} run data merge storage fz.config {is_open: 1b}
|
||||
#将该玩家加入打开设置页面的玩家的列表
|
||||
scoreboard players set @s openingConfig 1
|
||||
#将设置内容输出给玩家
|
||||
function fz:config/display
|
||||
@@ -1,9 +0,0 @@
|
||||
#卸载设置功能
|
||||
#移除进程残留
|
||||
schedule clear fz:config/main
|
||||
schedule clear fz:config/timeout
|
||||
data remove storage fz.config is_open
|
||||
#写入已卸载的信息
|
||||
data modify storage fz:survival installed.config set value 0b
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]设置功能已卸载","color": "#5fff00"}
|
||||
@@ -1,6 +0,0 @@
|
||||
#由config/sneak和config/unsneak成就触发
|
||||
#判断玩家视角是否指向正上方,是则运行turnon函数
|
||||
execute if data storage fz:survival installed{config: 1b} if entity @s[x_rotation=-90] run function fz:config/turnon
|
||||
#重置该玩家的两个成就
|
||||
advancement revoke @s only fz:config/sneak
|
||||
advancement revoke @s only fz:config/unsneak
|
||||
@@ -1,10 +0,0 @@
|
||||
#安装血量显示
|
||||
#初始化
|
||||
scoreboard objectives add Health health {"text": "cm","color": "yellow"}
|
||||
scoreboard objectives modify Health rendertype hearts
|
||||
scoreboard objectives setdisplay list Health
|
||||
scoreboard objectives setdisplay belowName Health
|
||||
#写入已安装的信息
|
||||
data modify storage fz:survival installed.health set value 1b
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]血量显示已安装","color": "#5fff00"}
|
||||
@@ -1,7 +0,0 @@
|
||||
#卸载血量显示
|
||||
#删除计分板
|
||||
scoreboard objectives remove Health
|
||||
#写入已卸载的信息
|
||||
data modify storage fz:survival installed.health set value 0b
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]血量显示已卸载","color": "#5fff00"}
|
||||
@@ -1,42 +0,0 @@
|
||||
|
||||
#用于储存参数的记分板
|
||||
scoreboard objectives add parameter dummy
|
||||
#用于数学计算的记分板
|
||||
scoreboard objectives add calculator dummy
|
||||
scoreboard players set 200 calculator 200
|
||||
scoreboard players set 100 calculator 100
|
||||
scoreboard players set 10 calculator 10
|
||||
scoreboard players set 1 calculator 1
|
||||
#检测玩家退出游戏的记分板
|
||||
scoreboard objectives add leaveGame minecraft.custom:minecraft.leave_game
|
||||
#安装各功能
|
||||
function fz:config/install
|
||||
function fz:sweeper/install
|
||||
function fz:scoreboards/install
|
||||
function fz:health/install
|
||||
function fz:login/logintips/install
|
||||
function fz:carpet/carpet
|
||||
#版本信息
|
||||
data modify storage fz:survival version set from storage fz:survival newVersion
|
||||
data modify storage fz:survival date set value "2020-7.21"
|
||||
data modify storage fz:survival time set value "1:14"
|
||||
#提示已安装
|
||||
data modify storage fz:survival installed.datapack set value 1b
|
||||
tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"}
|
||||
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
|
||||
#info: #5fff00 信息
|
||||
#alert: #d7ff00 提醒
|
||||
#warn: #ffd900 警告
|
||||
#error: #ff6100 错误
|
||||
|
||||
#抖M名单 - 受伤害榜
|
||||
#钩直饵咸 - 钓鱼榜
|
||||
#交♂易榜 - 交易榜
|
||||
#铁头功 - 破基岩榜
|
||||
|
||||
#群p抖M - 总受伤害量
|
||||
#全部木大 - 总死亡数
|
||||
#总交♂易数 - 总交易数
|
||||
#全员头铁 - 总破基岩数
|
||||
|
||||
#{"text": "cm","color": "yellow"} - {"text": "HP"}
|
||||
@@ -1,22 +0,0 @@
|
||||
#新版本号
|
||||
data modify storage fz:survival newVersion set value [2,1,3,2]
|
||||
execute if data storage fz:survival newVersion[3] run data modify storage fz:survival snapshot set value 1b
|
||||
execute unless data storage fz:survival newVersion[3] run data remove storage fz:survival snapshot
|
||||
##data remove storage fz:survival snapshot
|
||||
#版本号识别
|
||||
scoreboard objectives add fz.cache dummy
|
||||
execute store result score version1 fz.cache run data get storage fz:survival version[1]
|
||||
execute store result score version2 fz.cache run data get storage fz:survival version[2]
|
||||
execute store result score version3 fz.cache run data get storage fz:survival version[3]
|
||||
execute store result score newVersion1 fz.cache run data get storage fz:survival newVersion[1]
|
||||
execute store result score newVersion2 fz.cache run data get storage fz:survival newVersion[2]
|
||||
execute store result score newVersion3 fz.cache run data get storage fz:survival newVersion[3]
|
||||
#版本号比较
|
||||
execute if data storage fz:survival installed{datapack: 1b} unless score version1 fz.cache = newVersion1 fz.cache run function fz:start/update
|
||||
execute if data storage fz:survival installed{datapack: 1b} if score version1 fz.cache = newVersion1 fz.cache run function fz:start/00xx
|
||||
scoreboard objectives remove fz.cache
|
||||
#如果未安装且未卸载则安装
|
||||
execute unless data storage fz:survival installed{datapack: 1b} unless data storage fz:survival installed{datapack: 0b} run function fz:install
|
||||
#输出版本信息
|
||||
execute unless data storage fz:survival {snapshot:1b} unless data storage fz:survival installed{datapack: 0b} run tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version[0]","storage":"fz:survival","color": "#ffd900"},{"text":".","color": "#ffd900"},{"nbt":"version[1]","storage":"fz:survival","color": "#ffd900"},{"text": ".","color": "#ffd900"},{"nbt":"version[2]","storage":"fz:survival","color": "#ffd900"}]
|
||||
execute if data storage fz:survival {snapshot:1b} unless data storage fz:survival installed{datapack: 0b} run tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version[0]","storage":"fz:survival","color": "#ffd900"},{"text":".","color": "#ffd900"},{"nbt":"version[1]","storage":"fz:survival","color": "#ffd900"},{"text": ".","color": "#ffd900"},{"nbt":"version[2]","storage":"fz:survival","color": "#ffd900"},{"text": ".","color": "#ffd900"},{"nbt":"version[3]","storage":"fz:survival","color": "#ffd900"},{"text": "-SNAPSHOT","color": "red"}]
|
||||
@@ -1,4 +0,0 @@
|
||||
#安装登陆提示
|
||||
data modify storage fz:survival installed.logintips set value 1b
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]登陆提示已安装","color": "#5fff00"}
|
||||
@@ -1,4 +0,0 @@
|
||||
#卸载登陆提示
|
||||
data modify storage fz:survival installed.logintips set value 0b
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]登陆提示已卸载","color": "#5fff00"}
|
||||
@@ -1,17 +0,0 @@
|
||||
execute if data storage fz:survival installed{logintips: 1b} run tellraw @s {"text": "[提醒]站在地面,抬头并按一下shift即可打开设置页面","color": "#66ffff"}
|
||||
|
||||
scoreboard players set @s leaveGame 0
|
||||
|
||||
advancement revoke @s only fz:scoreboards/activation
|
||||
advancement revoke @s only fz:scoreboards/damagetaken
|
||||
advancement revoke @s only fz:scoreboards/deathcounter
|
||||
advancement revoke @s only fz:scoreboards/fishingcounter
|
||||
advancement revoke @s only fz:scoreboards/killcounter
|
||||
advancement revoke @s only fz:scoreboards/tradingcounter
|
||||
advancement revoke @s only fz:scoreboards/digcounter/digtrigger
|
||||
advancement revoke @s only fz:scoreboards/digcounter/toolsfix
|
||||
advancement revoke @s only fz:scoreboards/digcounter/toolsfix2
|
||||
advancement revoke @s only fz:config/sneak
|
||||
advancement revoke @s only fz:config/unsneak
|
||||
|
||||
execute if data storage fz:survival installed{datapack: 1b} run advancement revoke @s from fz:leavegame
|
||||
@@ -1,9 +0,0 @@
|
||||
#计算在线时间和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s activation += 1 calculator
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总在线时间(h) activation += 1 calculator
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总在线时间(h) totalList += 1 calculator
|
||||
#重置玩家计时器
|
||||
scoreboard players reset @s actimeCounter
|
||||
#重置触发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/activation
|
||||
@@ -1,3 +0,0 @@
|
||||
#主函数给在线玩家的计时器1s+1分
|
||||
scoreboard players add @a actimeCounter 1
|
||||
schedule function fz:scoreboards/activation/main 1s
|
||||
@@ -1,2 +0,0 @@
|
||||
#将在线时间榜显示给轮播计分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold activation
|
||||
@@ -1,11 +0,0 @@
|
||||
#计算滑翔距离和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime = @s fz.aviateCounter
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime /= 200 calculator
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviate1m += @s fz.aviateOneTime
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总滑翔距离 fz.aviate1m += @s fz.aviateOneTime
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总滑翔距离 totalList += @s fz.aviateOneTime
|
||||
#重置滑翔探测记分板
|
||||
scoreboard players operation @s fz.aviateCounter %= 200 calculator
|
||||
#重置触发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/aviate1m
|
||||
@@ -1,2 +0,0 @@
|
||||
#将交易榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold fz.aviate1m
|
||||
@@ -1,8 +0,0 @@
|
||||
#计算受破基岩量和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s bedrockBreaked += @s fz.bbl
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 全员头铁 bedrockBreaked += @s fz.bbl
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 全员头铁 totalList += @s fz.bbl
|
||||
scoreboard players reset @s fz.bbl
|
||||
#重置触发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/bedrockbreaked
|
||||
@@ -1,2 +0,0 @@
|
||||
#将破基岩榜显示给轮播计分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold bedrockBreaked
|
||||
@@ -1,16 +0,0 @@
|
||||
#应用计分板显示,对应分数1838019369-1838019379
|
||||
execute if score @s config matches 1838019370 run team leave @s
|
||||
execute if score @s config matches 1838019371 run team join gold
|
||||
execute if score @s config matches 1838019372 run team join aqua
|
||||
execute if score @s config matches 1838019373 run team join yellow
|
||||
execute if score @s config matches 1838019374 run team join dark_red
|
||||
execute if score @s config matches 1838019375 run team join gray
|
||||
execute if score @s config matches 1838019376 run team join blue
|
||||
execute if score @s config matches 1838019377 run team join red
|
||||
execute if score @s config matches 1838019378 run team join green
|
||||
execute if score @s config matches 1838019379 run team join dark_aqua
|
||||
execute if score @s config matches 1838019369 run team join dark_green
|
||||
execute if score @s config matches 1838019368 run team join light_purple
|
||||
#每条子函数都要reset config分数和function fz:config/display
|
||||
scoreboard players reset @s config
|
||||
function fz:config/display
|
||||
@@ -1,10 +0,0 @@
|
||||
#计算受伤害量和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s 10xDamageTaken /= 10 calculator
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s damageTaken += @s 10xDamageTaken
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 群p抖M damageTaken += @s 10xDamageTaken
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 群p抖M totalList += @s 10xDamageTaken
|
||||
#重置伤害探测记分板
|
||||
scoreboard players reset @s 10xDamageTaken
|
||||
#重置触发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/damagetaken
|
||||
@@ -1,2 +0,0 @@
|
||||
#将抖M榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold damageTaken
|
||||
@@ -1,9 +0,0 @@
|
||||
#计算死亡数和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s deathCounter += @s deathTester
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 全部木大 deathCounter += @s deathTester
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 全部木大 totalList += @s deathTester
|
||||
#重置死亡探测记分板
|
||||
scoreboard players reset @s deathTester
|
||||
#重置触发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/deathcounter
|
||||
@@ -1,2 +0,0 @@
|
||||
#将死亡榜显示给轮播计分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold deathCounter
|
||||
@@ -1,13 +0,0 @@
|
||||
#计分板数据将永久失去(真的很久!)
|
||||
scoreboard objectives remove killCounter
|
||||
scoreboard objectives remove digCounter
|
||||
scoreboard objectives remove deathCounter
|
||||
scoreboard objectives remove tradingCounter
|
||||
scoreboard objectives remove fishingCounter
|
||||
scoreboard objectives remove damageTaken
|
||||
scoreboard objectives remove activation
|
||||
scoreboard objectives remove totalList
|
||||
scoreboard objectives remove bedrockBreaked
|
||||
scoreboard objectives remove fz.aviate1m
|
||||
#提示已删除
|
||||
tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"}
|
||||
@@ -1,31 +0,0 @@
|
||||
#判断各工具是否被使用并运行相应函数计算挖掘榜(左右键都会探测)
|
||||
#需要配合修正函数toolfix修正右键使用带来的加分
|
||||
execute if score @s usedDiaAxe matches 1.. run function fz:scoreboards/digcounter/tools/diaaxe
|
||||
execute if score @s usedDiaHoe matches 1.. run function fz:scoreboards/digcounter/tools/diahoe
|
||||
execute if score @s usedDiaPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/diapickaxe
|
||||
execute if score @s usedDiaShovel matches 1.. run function fz:scoreboards/digcounter/tools/diashovel
|
||||
execute if score @s usedGolAxe matches 1.. run function fz:scoreboards/digcounter/tools/golaxe
|
||||
execute if score @s usedGolHoe matches 1.. run function fz:scoreboards/digcounter/tools/golhoe
|
||||
execute if score @s usedGolHoe matches 1.. run kill @s
|
||||
execute if score @s usedGolPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/golpickaxe
|
||||
execute if score @s usedGolShovel matches 1.. run function fz:scoreboards/digcounter/tools/golshovel
|
||||
execute if score @s usedIroAxe matches 1.. run function fz:scoreboards/digcounter/tools/iroaxe
|
||||
execute if score @s usedIroHoe matches 1.. run function fz:scoreboards/digcounter/tools/irohoe
|
||||
execute if score @s usedIroHoe matches 1.. run kill @s
|
||||
execute if score @s usedIroPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/iropickaxe
|
||||
execute if score @s usedIroShovel matches 1.. run function fz:scoreboards/digcounter/tools/iroshovel
|
||||
execute if score @s usedNetAxe matches 1.. run function fz:scoreboards/digcounter/tools/netaxe
|
||||
execute if score @s usedNetHoe matches 1.. run function fz:scoreboards/digcounter/tools/nethoe
|
||||
execute if score @s usedNetPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/netpickaxe
|
||||
execute if score @s usedNetShovel matches 1.. run function fz:scoreboards/digcounter/tools/netshovel
|
||||
execute if score @s usedStoAxe matches 1.. run function fz:scoreboards/digcounter/tools/stoaxe
|
||||
execute if score @s usedStoHoe matches 1.. run function fz:scoreboards/digcounter/tools/stohoe
|
||||
execute if score @s usedStoPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/stopickaxe
|
||||
execute if score @s usedStoShovel matches 1.. run function fz:scoreboards/digcounter/tools/stoshovel
|
||||
execute if score @s usedWooAxe matches 1.. run function fz:scoreboards/digcounter/tools/wooaxe
|
||||
execute if score @s usedWooHoe matches 1.. run function fz:scoreboards/digcounter/tools/woohoe
|
||||
execute if score @s usedWooPickaxe matches 1.. run function fz:scoreboards/digcounter/tools/woopickaxe
|
||||
execute if score @s usedWooShovel matches 1.. run function fz:scoreboards/digcounter/tools/wooshovel
|
||||
execute if score @s usedShears matches 1.. run function fz:scoreboards/digcounter/tools/shears
|
||||
#重置探测使用工具的记分板的成就
|
||||
advancement revoke @s only fz:scoreboards/digcounter/digtrigger
|
||||
@@ -1,2 +0,0 @@
|
||||
#将挖掘榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold digCounter
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaAxe
|
||||
scoreboard players reset @s usedDiaAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaHoe
|
||||
scoreboard players reset @s usedDiaHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaPickaxe
|
||||
scoreboard players reset @s usedDiaPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedDiaShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedDiaShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedDiaShovel
|
||||
scoreboard players reset @s usedDiaShovel
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolAxe
|
||||
scoreboard players reset @s usedGolAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolHoe
|
||||
scoreboard players reset @s usedGolHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolPickaxe
|
||||
scoreboard players reset @s usedGolPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedGolShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedGolShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedGolShovel
|
||||
scoreboard players reset @s usedGolShovel
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroAxe
|
||||
scoreboard players reset @s usedIroAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroHoe
|
||||
scoreboard players reset @s usedIroHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroPickaxe
|
||||
scoreboard players reset @s usedIroPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedIroShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedIroShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedIroShovel
|
||||
scoreboard players reset @s usedIroShovel
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetAxe
|
||||
scoreboard players reset @s usedNetAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetHoe
|
||||
scoreboard players reset @s usedNetHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetPickaxe
|
||||
scoreboard players reset @s usedNetPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedNetShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedNetShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedNetShovel
|
||||
scoreboard players reset @s usedNetShovel
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedShears
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedShears
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedShears
|
||||
scoreboard players reset @s usedShears
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoAxe
|
||||
scoreboard players reset @s usedStoAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoHoe
|
||||
scoreboard players reset @s usedStoHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoPickaxe
|
||||
scoreboard players reset @s usedStoPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedStoShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedStoShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedStoShovel
|
||||
scoreboard players reset @s usedStoShovel
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooAxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooAxe
|
||||
scoreboard players reset @s usedWooAxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooHoe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooHoe
|
||||
scoreboard players reset @s usedWooHoe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooPickaxe
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooPickaxe
|
||||
scoreboard players reset @s usedWooPickaxe
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算挖掘榜和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s digCounter += @s usedWooShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 digCounter += @s usedWooShovel
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总挖掘量 totalList += @s usedWooShovel
|
||||
scoreboard players reset @s usedWooShovel
|
||||
@@ -1,7 +0,0 @@
|
||||
#为digtrigger函数修正非挖掘的使用带来的加分(对一些方块使用工具)
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove @s digCounter 1
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 digCounter 1
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 totalList 1
|
||||
advancement revoke @s only fz:scoreboards/digcounter/toolsfix
|
||||
#铲子和锄头的方块判断居然只响应产物不响应原方块,更离谱的是斧头两者会同时相应
|
||||
@@ -1,6 +0,0 @@
|
||||
#为digtrigger函数修正非挖掘的使用带来的加分(使用工具攻击实体)
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove @s digCounter 1
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 digCounter 1
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players remove 总挖掘量 totalList 1
|
||||
advancement revoke @s only fz:scoreboards/digcounter/toolsfix2
|
||||
@@ -1,9 +0,0 @@
|
||||
#计算钓鱼数和总榜
|
||||
#判断条件用于排除地毯小人
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fishingCounter += @s fishingTester
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总钓鱼数 fishingCounter += @s fishingTester
|
||||
execute unless score @s carpetBot matches 1 run scoreboard players operation 总钓鱼数 totalList += @s fishingTester
|
||||
#重置钓鱼探测记分板
|
||||
scoreboard players reset @s fishingTester
|
||||
#重置出发该函数的成就
|
||||
advancement revoke @s only fz:scoreboards/fishingcounter
|
||||
@@ -1 +0,0 @@
|
||||
scoreboard objectives setdisplay sidebar.team.gold fishingCounter
|
||||
@@ -1,125 +0,0 @@
|
||||
scoreboard objectives add carpetBot dummy
|
||||
#在线时间计数器记分板,用于activation/main函数
|
||||
scoreboard objectives add actimeCounter dummy
|
||||
|
||||
scoreboard objectives add killCounter dummy
|
||||
scoreboard objectives add digCounter dummy
|
||||
scoreboard objectives add usedDiaAxe minecraft.used:minecraft.diamond_axe
|
||||
scoreboard objectives add usedDiaPickaxe minecraft.used:minecraft.diamond_pickaxe
|
||||
scoreboard objectives add usedDiaShovel minecraft.used:minecraft.diamond_shovel
|
||||
scoreboard objectives add usedDiaHoe minecraft.used:minecraft.diamond_hoe
|
||||
scoreboard objectives add usedIroAxe minecraft.used:minecraft.iron_axe
|
||||
scoreboard objectives add usedIroPickaxe minecraft.used:minecraft.iron_pickaxe
|
||||
scoreboard objectives add usedIroShovel minecraft.used:minecraft.iron_shovel
|
||||
scoreboard objectives add usedIroHoe minecraft.used:minecraft.iron_hoe
|
||||
scoreboard objectives add usedStoAxe minecraft.used:minecraft.stone_axe
|
||||
scoreboard objectives add usedStoPickaxe minecraft.used:minecraft.stone_pickaxe
|
||||
scoreboard objectives add usedStoShovel minecraft.used:minecraft.stone_shovel
|
||||
scoreboard objectives add usedStoHoe minecraft.used:minecraft.stone_hoe
|
||||
scoreboard objectives add usedWooAxe minecraft.used:minecraft.wooden_axe
|
||||
scoreboard objectives add usedWooPickaxe minecraft.used:minecraft.wooden_pickaxe
|
||||
scoreboard objectives add usedWooShovel minecraft.used:minecraft.wooden_shovel
|
||||
scoreboard objectives add usedWooHoe minecraft.used:minecraft.wooden_hoe
|
||||
scoreboard objectives add usedGolAxe minecraft.used:minecraft.golden_axe
|
||||
scoreboard objectives add usedGolPickaxe minecraft.used:minecraft.golden_pickaxe
|
||||
scoreboard objectives add usedGolShovel minecraft.used:minecraft.golden_shovel
|
||||
scoreboard objectives add usedGolHoe minecraft.used:minecraft.golden_hoe
|
||||
scoreboard objectives add usedNetAxe minecraft.used:minecraft.netherite_axe
|
||||
scoreboard objectives add usedNetPickaxe minecraft.used:minecraft.netherite_pickaxe
|
||||
scoreboard objectives add usedNetShovel minecraft.used:minecraft.netherite_shovel
|
||||
scoreboard objectives add usedNetHoe minecraft.used:minecraft.netherite_hoe
|
||||
scoreboard objectives add usedShears minecraft.used:minecraft.shears
|
||||
scoreboard objectives add deathCounter dummy
|
||||
scoreboard objectives add deathTester deathCount
|
||||
scoreboard objectives add tradingCounter dummy
|
||||
scoreboard objectives add fishingCounter dummy
|
||||
scoreboard objectives add fishingTester minecraft.custom:fish_caught
|
||||
scoreboard objectives add damageTaken dummy
|
||||
scoreboard objectives add 10xDamageTaken minecraft.custom:damage_taken
|
||||
scoreboard objectives add activation dummy
|
||||
scoreboard objectives add totalList dummy
|
||||
scoreboard objectives add bedrockBreaked dummy
|
||||
scoreboard objectives add fz.bbl dummy
|
||||
scoreboard objectives add fz.aviate1m dummy
|
||||
scoreboard objectives add fz.aviateCounter minecraft.custom:aviate_one_cm
|
||||
scoreboard objectives add fz.aviateOneTime dummy
|
||||
|
||||
scoreboard objectives modify activation displayname {"text": "活跃时间(h)","color": "aqua"}
|
||||
scoreboard objectives modify damageTaken displayname {"text": "抖M名单","color": "yellow"}
|
||||
scoreboard objectives modify deathCounter displayname {"text": "死亡榜","color": "dark_red"}
|
||||
scoreboard objectives modify digCounter displayname {"text": "挖掘榜","color": "gray"}
|
||||
scoreboard objectives modify fishingCounter displayname {"text": "钩直饵咸","color": "blue"}
|
||||
scoreboard objectives modify killCounter displayname {"text": "击杀榜","color": "red"}
|
||||
scoreboard objectives modify tradingCounter displayname {"text": "交♂易榜","color": "green"}
|
||||
scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"}
|
||||
scoreboard objectives modify bedrockBreaked displayname {"text": "铁头功","color": "dark_green"}
|
||||
scoreboard objectives modify fz.aviate1m displayname {"text": "滑翔距离","color": "light_purple"}
|
||||
|
||||
team add gold
|
||||
team add aqua
|
||||
team add yellow
|
||||
team add dark_red
|
||||
team add gray
|
||||
team add blue
|
||||
team add red
|
||||
team add green
|
||||
team add dark_aqua
|
||||
team add dark_green
|
||||
team add light_purple
|
||||
|
||||
team modify gold color gold
|
||||
team modify aqua color aqua
|
||||
team modify yellow color yellow
|
||||
team modify dark_red color dark_red
|
||||
team modify gray color gray
|
||||
team modify blue color blue
|
||||
team modify red color red
|
||||
team modify dark_aqua color dark_aqua
|
||||
team modify green color green
|
||||
team modify dark_green color dark_green
|
||||
team modify light_purple color light_purple
|
||||
|
||||
team join aqua 总在线时间(h)
|
||||
team join yellow 群p抖M
|
||||
team join dark_red 全部木大
|
||||
team join gray 总挖掘量
|
||||
team join blue 总钓鱼数
|
||||
team join red 总击杀数
|
||||
team join green 总交♂易数
|
||||
team join dark_green 全员头铁
|
||||
team join light_purple 总滑翔距离
|
||||
#各计分板的总量
|
||||
scoreboard players operation 总在线时间(h) activation = 总在线时间(h) activation
|
||||
scoreboard players operation 群p抖M damageTaken = 群p抖M damageTaken
|
||||
scoreboard players operation 全部木大 deathCounter = 全部木大 deathCounter
|
||||
scoreboard players operation 总挖掘量 digCounter = 总挖掘量 digCounter
|
||||
scoreboard players operation 总钓鱼数 fishingCounter = 总钓鱼数 fishingCounter
|
||||
scoreboard players operation 总击杀数 killCounter = 总击杀数 killCounter
|
||||
scoreboard players operation 总交♂易数 tradingCounter = 总交♂易数 tradingCounter
|
||||
scoreboard players operation 总滑翔距离 fz.aviate1m = 总滑翔距离 fz.aviate1m
|
||||
#总榜的总量
|
||||
scoreboard players operation 总在线时间(h) totalList = 总在线时间(h) totalList
|
||||
scoreboard players operation 群p抖M totalList = 群p抖M totalList
|
||||
scoreboard players operation 全部木大 totalList = 全部木大 totalList
|
||||
scoreboard players operation 总挖掘量 totalList = 总挖掘量 totalList
|
||||
scoreboard players operation 总钓鱼数 totalList = 总钓鱼数 totalList
|
||||
scoreboard players operation 总击杀数 totalList = 总击杀数 totalList
|
||||
scoreboard players operation 总交♂易数 totalList = 总交♂易数 totalList
|
||||
scoreboard players operation 总滑翔距离 totalList = 总滑翔距离 totalList
|
||||
|
||||
scoreboard objectives setdisplay sidebar.team.aqua activation
|
||||
scoreboard objectives setdisplay sidebar.team.yellow damageTaken
|
||||
scoreboard objectives setdisplay sidebar.team.dark_red deathCounter
|
||||
scoreboard objectives setdisplay sidebar.team.gray digCounter
|
||||
scoreboard objectives setdisplay sidebar.team.blue fishingCounter
|
||||
scoreboard objectives setdisplay sidebar.team.red killCounter
|
||||
scoreboard objectives setdisplay sidebar.team.dark_aqua totalList
|
||||
scoreboard objectives setdisplay sidebar.team.green tradingCounter
|
||||
scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked
|
||||
scoreboard objectives setdisplay sidebar.team.light_purple fz.aviate1m
|
||||
|
||||
data modify storage fz:survival installed.scoreboards set value 1b
|
||||
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]记分板已安装","color": "#5fff00"}
|
||||
function fz:scoreboards/start
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算击杀榜和总榜
|
||||
scoreboard players add @s killCounter 1
|
||||
scoreboard players add 总击杀数 killCounter 1
|
||||
scoreboard players add 总击杀数 totalList 1
|
||||
#重置触发该函数的成就,地毯小人已在成就里排除
|
||||
advancement revoke @s only fz:scoreboards/killcounter
|
||||
@@ -1,2 +0,0 @@
|
||||
#将击杀榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold killCounter
|
||||
@@ -1,12 +0,0 @@
|
||||
function fz:scoreboards/killcounter/setdisplay
|
||||
schedule function fz:scoreboards/deathcounter/setdisplay 10s replace
|
||||
schedule function fz:scoreboards/digcounter/setdisplay 20s replace
|
||||
schedule function fz:scoreboards/tradingcounter/setdisplay 30s replace
|
||||
schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace
|
||||
schedule function fz:scoreboards/damagetaken/setdisplay 50s replace
|
||||
schedule function fz:scoreboards/activation/setdisplay 60s replace
|
||||
schedule function fz:scoreboards/aviate1m/setdisplay 70s replace
|
||||
schedule function fz:scoreboards/totallist 80s replace
|
||||
execute if score 全员头铁 bedrockBreaked matches 1.. run schedule function fz:scoreboards/bedrockbreaked/setdisplay 90s replace
|
||||
execute if score 全员头铁 bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 100s replace
|
||||
execute unless score 全员头铁 bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 90s replace
|
||||
@@ -1,13 +0,0 @@
|
||||
function fz:scoreboards/main
|
||||
function fz:scoreboards/activation/main
|
||||
|
||||
advancement revoke @a only fz:scoreboards/activation
|
||||
advancement revoke @a only fz:scoreboards/damagetaken
|
||||
advancement revoke @a only fz:scoreboards/deathcounter
|
||||
advancement revoke @a only fz:scoreboards/fishingcounter
|
||||
advancement revoke @a only fz:scoreboards/killcounter
|
||||
advancement revoke @a only fz:scoreboards/tradingcounter
|
||||
advancement revoke @a only fz:scoreboards/digcounter/digtrigger
|
||||
advancement revoke @a only fz:scoreboards/digcounter/toolsfix
|
||||
|
||||
tellraw @a {"text": "[信息]记分板已启用","color": "#5fff00"}
|
||||
@@ -1 +0,0 @@
|
||||
scoreboard objectives setdisplay sidebar.team.gold totalList
|
||||
@@ -1,6 +0,0 @@
|
||||
#计算交易榜和总榜
|
||||
scoreboard players add @s tradingCounter 1
|
||||
scoreboard players add 总交♂易数 tradingCounter 1
|
||||
scoreboard players add 总交♂易数 totalList 1
|
||||
#重置触发该函数的成就,地毯小人已在成就里排除
|
||||
advancement revoke @s only fz:scoreboards/tradingcounter
|
||||
@@ -1,2 +0,0 @@
|
||||
#将交易榜显示给轮播记分板的队伍(金队)
|
||||
scoreboard objectives setdisplay sidebar.team.gold tradingCounter
|
||||
@@ -1,60 +0,0 @@
|
||||
schedule clear fz:scoreboards/totallist
|
||||
schedule clear fz:scoreboards/activation/activation
|
||||
schedule clear fz:scoreboards/damagetaken/damagetaken
|
||||
schedule clear fz:scoreboards/deathcounter/deathcounter
|
||||
schedule clear fz:scoreboards/digcounter/digcounter
|
||||
schedule clear fz:scoreboards/fishingcounter/fishingcounter
|
||||
schedule clear fz:scoreboards/killcounter/killcounter
|
||||
schedule clear fz:scoreboards/tradingcounter/tradingcounter
|
||||
schedule clear fz:scoreboards/main
|
||||
|
||||
scoreboard objectives remove carpetBot
|
||||
scoreboard objectives remove actimeCounter
|
||||
|
||||
scoreboard objectives remove usedDiaAxe
|
||||
scoreboard objectives remove usedDiaPickaxe
|
||||
scoreboard objectives remove usedDiaShovel
|
||||
scoreboard objectives remove usedDiaHoe
|
||||
scoreboard objectives remove usedIroAxe
|
||||
scoreboard objectives remove usedIroPickaxe
|
||||
scoreboard objectives remove usedIroShovel
|
||||
scoreboard objectives remove usedIroHoe
|
||||
scoreboard objectives remove usedStoAxe
|
||||
scoreboard objectives remove usedStoPickaxe
|
||||
scoreboard objectives remove usedStoShovel
|
||||
scoreboard objectives remove usedStoHoe
|
||||
scoreboard objectives remove usedWooAxe
|
||||
scoreboard objectives remove usedWooPickaxe
|
||||
scoreboard objectives remove usedWooShovel
|
||||
scoreboard objectives remove usedWooHoe
|
||||
scoreboard objectives remove usedGolAxe
|
||||
scoreboard objectives remove usedGolPickaxe
|
||||
scoreboard objectives remove usedGolShovel
|
||||
scoreboard objectives remove usedGolHoe
|
||||
scoreboard objectives remove usedNetAxe
|
||||
scoreboard objectives remove usedNetPickaxe
|
||||
scoreboard objectives remove usedNetShovel
|
||||
scoreboard objectives remove usedNetHoe
|
||||
|
||||
scoreboard objectives remove fz.bbl
|
||||
scoreboard objectives remove deathTester
|
||||
scoreboard objectives remove fishingTester
|
||||
scoreboard objectives remove 10xDamageTaken
|
||||
scoreboard objectives remove fz.aviateCounter
|
||||
scoreboard objectives remove fz.aviateOneTime
|
||||
|
||||
scoreboard objectives setdisplay sidebar.team.aqua
|
||||
scoreboard objectives setdisplay sidebar.team.yellow
|
||||
scoreboard objectives setdisplay sidebar.team.dark_red
|
||||
scoreboard objectives setdisplay sidebar.team.gray
|
||||
scoreboard objectives setdisplay sidebar.team.blue
|
||||
scoreboard objectives setdisplay sidebar.team.red
|
||||
scoreboard objectives setdisplay sidebar.team.light_purple
|
||||
scoreboard objectives setdisplay sidebar.team.green
|
||||
scoreboard objectives setdisplay sidebar.team.gold
|
||||
|
||||
data modify storage fz:survival installed.scoreboards set value 0b
|
||||
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]记分板已卸载","color": "#5fff00"}
|
||||
tellraw @s [{"text": "[警告]您要删除计分板数据吗,它将会永久失去!(真的很久!)", "color": "#ffd900"},{"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function fz:scoreboards/delscore"}, "color": "#00ff00"}]
|
||||
@@ -1,2 +0,0 @@
|
||||
execute unless score version3 fz.cache = newVersion3 fz.cache run function fz:start/update
|
||||
execute if score version3 fz.cache = newVersion3 fz.cache run function fz:start/start
|
||||
@@ -1,3 +0,0 @@
|
||||
execute unless score version2 fz.cache = newVersion2 fz.cache run function fz:start/update
|
||||
execute if data storage fz:survival {snapshot: 1b} if score version2 fz.cache = newVersion2 fz.cache run function fz:start/000x
|
||||
execute unless data storage fz:survival {snapshot: 1b} run function fz:start/start
|
||||
@@ -1,7 +0,0 @@
|
||||
#判断各功能是否已安装并运行
|
||||
execute if data storage fz:survival installed{scoreboards: 1b} run function fz:scoreboards/start
|
||||
execute if data storage fz:survival installed{sweeper: 1b} run function fz:sweeper/start
|
||||
execute if data storage fz:survival installed{config: 1b} run function fz:config/start
|
||||
function fz:carpet/carpet
|
||||
#测试用的输出
|
||||
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
|
||||
@@ -1,13 +0,0 @@
|
||||
data modify storage fz:cache survival.installed set from storage fz:survival installed
|
||||
#卸载
|
||||
function fz:uninstall
|
||||
#安装
|
||||
function fz:install
|
||||
execute if data storage fz:cache survival.installed{scoreboards: 0b} run function fz:scoreboards/uninstall
|
||||
execute if data storage fz:cache survival.installed{sweeper: 0b} run function fz:sweeper/uninstall
|
||||
execute if data storage fz:cache survival.installed{logintips: 0b} run function fz:login/logintips/uninstall
|
||||
execute if data storage fz:cache survival.installed{health: 0b} run function fz:health/uninstall
|
||||
execute if data storage fz:cache survival.installed{config: 0b} run function fz:config/uninstall
|
||||
data remove storage fz:cache survival.installed
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]升级完成","color": "#5fff00"}
|
||||
@@ -1,4 +0,0 @@
|
||||
bossbar set fz:sweeper name [{"score": {"name": "sweeperBossbar","objective": "parameter"},"color": "#ff6100","underlined": true,"bold": true},{"text": "秒后清理垃圾","color": "#ffd900","bold": false}]
|
||||
bossbar set fz:sweeper players @a[tag=!fz.sweeperBossbarOff]
|
||||
scoreboard players remove sweeperBossbar parameter 1
|
||||
schedule function fz:sweeper/bossbar 1s
|
||||
@@ -1,19 +0,0 @@
|
||||
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
|
||||
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
|
||||
#设置怪物血条
|
||||
bossbar set 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
|
||||
@@ -1,23 +0,0 @@
|
||||
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/bossbar
|
||||
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
|
||||
#设置怪物血条
|
||||
bossbar set fz:sweeper visible true
|
||||
|
||||
function fz:sweeper/main
|
||||
function fz:sweeper/bossbar
|
||||
@@ -1,19 +0,0 @@
|
||||
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 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]
|
||||
|
||||
scoreboard players reset @s config
|
||||
function fz:config/display
|
||||
@@ -1,6 +0,0 @@
|
||||
data modify storage fz:survival installed.sweeper set value 1b
|
||||
bossbar add fz:sweeper {"text":"null"}
|
||||
bossbar set fz:sweeper value 0
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]扫地机已安装","color": "#5fff00"}
|
||||
function fz:sweeper/start
|
||||
@@ -1,10 +0,0 @@
|
||||
execute if score keepMinecart parameter matches 1 store result score sweeperItem parameter run kill @e[type=item,predicate=!fz:sweeper/minecart]
|
||||
execute unless score keepMinecart parameter matches 1 store result score sweeperItem parameter run kill @e[type=item]
|
||||
tellraw @a [{"text": "[信息]本次清理了","color": "#5fff00"},{"score": {"objective": "parameter", "name": "sweeperItem"},"color": "#5fff00"},{"text": "堆物品","color": "#5fff00"}]
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s 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
|
||||
scoreboard players operation sweeperBossbar parameter = sweeperTime parameter
|
||||
@@ -1,16 +0,0 @@
|
||||
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
|
||||
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
|
||||
bossbar set fz:sweeper visible false
|
||||
|
||||
tellraw @a {"text": "[信息]扫地机已启用","color": "#5fff00"}
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]10s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/5s 5s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]1min后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/30s 30s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]1s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/main 1s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]2min后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1min 60s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]2s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1s 1s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]30s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/10s 20s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]3min后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2min 60s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]3s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2s 1s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]4min后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3min 60s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]4s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3s 1s
|
||||
@@ -1,3 +0,0 @@
|
||||
tellraw @a[tag=!fz.sweeperMessageOff] {"text": "[提醒]5s后清理掉落物","color": "#66ffff"}
|
||||
execute as @a[tag=!fz.sweeperSoundOff] at @s run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/4s 1s
|
||||
@@ -1,19 +0,0 @@
|
||||
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
|
||||
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
|
||||
|
||||
bossbar remove fz:sweeper
|
||||
|
||||
data modify storage fz:survival installed.sweeper set value 0b
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]扫地机已卸载","color": "#5fff00"}
|
||||
@@ -1,14 +0,0 @@
|
||||
#全卸载
|
||||
function fz:config/uninstall
|
||||
function fz:health/uninstall
|
||||
function fz:scoreboards/uninstall
|
||||
function fz:sweeper/uninstall
|
||||
function fz:login/logintips/uninstall
|
||||
#删除系统计分板
|
||||
scoreboard objectives remove parameter
|
||||
scoreboard objectives remove calculator
|
||||
scoreboard objectives remove leaveGame
|
||||
#存入已卸载信息,下次启动不会重新安装
|
||||
data modify storage fz:survival installed.datapack set value 0b
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]FZ'sDatapack已卸载","color": "#5fff00"}
|
||||
Reference in New Issue
Block a user