This commit is contained in:
延皓
2021-07-20 01:50:28 +08:00
parent 04031715a3
commit e944acbbcf
15 changed files with 94 additions and 27 deletions
@@ -9,7 +9,6 @@
"entity": "this", "entity": "this",
"scores": { "scores": {
"actimeCounter": { "actimeCounter": {
"max": 3600,
"min": 3600 "min": 3600
} }
} }
@@ -0,0 +1,23 @@
{
"criteria": {
"activation": {
"trigger": "minecraft:tick",
"conditions": {
"player": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"fz.aviateCounter": {
"min": 200
}
}
}
]
}
}
},
"rewards": {
"function": "fz:scoreboards/aviate1m/calculator"
}
}
+4 -3
View File
@@ -21,7 +21,8 @@ execute if data storage fz.installed {sweeper: 1b} run tellraw @s {"text": "扫
##记分板 ##记分板
execute if data storage fz.installed {scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"} execute if data storage fz.installed {scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"}
##计分板显示1838019370-1838019379 ##计分板显示1838019370-1838019379
execute if data storage fz.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": "[受伤害榜]","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.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": "[受伤害榜]","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.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() ##计分板显示1838019369-1838019379()
execute if data storage fz.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": "[受伤害榜]","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.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": "[受伤害榜]","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.installed {scoreboards: 1b} if score bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[破基岩榜]","color": "dark_green","hoverEvent": {"action": "show_text","contents": {"text": "破基岩榜","color": "dark_green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019369"}}] execute if data storage fz.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": "[受伤害榜]","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"}},{"text": "[破基岩榜]","color": "dark_green","hoverEvent": {"action": "show_text","contents": {"text": "破基岩榜","color": "dark_green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019369"}}]
+1 -1
View File
@@ -3,6 +3,6 @@
scoreboard players enable @a config scoreboard players enable @a config
#每条子函数都要reset config分数和function fz:config/display #每条子函数都要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 {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 1838019369..1838019379 run function fz:scoreboards/config 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 schedule function fz:config/main 1t
+19 -4
View File
@@ -3,6 +3,8 @@
scoreboard objectives add parameter dummy scoreboard objectives add parameter dummy
#用于数学计算的记分板 #用于数学计算的记分板
scoreboard objectives add calculator 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 10 calculator 10
scoreboard players set 1 calculator 1 scoreboard players set 1 calculator 1
#检测玩家退出游戏的记分板 #检测玩家退出游戏的记分板
@@ -16,15 +18,28 @@ function fz:login/logintips/install
function fz:carpet/carpet function fz:carpet/carpet
#版本信息 #版本信息
data merge storage fz.installed {installed: 1b} data merge storage fz.installed {installed: 1b}
data merge storage fz {version: 2.1.0} data merge storage fz {version: 2.1.1}
data merge storage fz {date: 2020-7.1} data merge storage fz {date: 2020-7.18}
data merge storage fz {time: "02:43"} data merge storage fz {time: "22:19"}
##data merge storage fz {snapshot: -SNAPSHOT} ##data merge storage fz {snapshot: -SNAPSHOT}
data remove storage fz snapshot data remove storage fz snapshot
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
#提示已安装 #提示已安装
tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"} tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"}
#测试用的输出
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
#info: #5fff00 #info: #5fff00
#alert: #d7ff00 #alert: #d7ff00
#warn: #ffd900 #warn: #ffd900
#error: #ff6100 #error: #ff6100
#抖M名单 -
#钩直饵咸 -
#交 -
#铁头功 -
#群p抖M -
#全部木大 -
#总交 -
#全员头铁 -
#{"text": "cm","color": "yellow"} - {"text": "HP"}
+2 -2
View File
@@ -1,8 +1,8 @@
#如果未安装且未卸载则安装 #如果未安装且未卸载则安装
execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install
#如果版本正确且已安装则开始运行 #如果版本正确且已安装则开始运行
execute if data storage fz {version: 2.1.0} if data storage fz.installed {installed: 1b} run function fz:start execute if data storage fz {version: 2.1.1} if data storage fz.installed {installed: 1b} run function fz:start
#如果版本不符则更新 #如果版本不符则更新
execute unless data storage fz {version: 2.1.0} run function fz:update execute unless data storage fz {version: 2.1.1} run function fz:update
#输出版本信息 #输出版本信息
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}] tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]
@@ -0,0 +1,11 @@
#计算滑翔距离和总榜
#判断条件用于排除地毯小人
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
@@ -0,0 +1,2 @@
#将交易榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold fz.aviate1m
@@ -1,8 +1,8 @@
#计算受破基岩量和总榜 #计算受破基岩量和总榜
#判断条件用于排除地毯小人 #判断条件用于排除地毯小人
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 @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 bedrockBreaked += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s fz.bbl execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players reset @s fz.bbl scoreboard players reset @s fz.bbl
#重置触发该函数的成就 #重置触发该函数的成就
advancement revoke @s only fz:scoreboards/bedrockbreaked advancement revoke @s only fz:scoreboards/bedrockbreaked
@@ -10,6 +10,7 @@ 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 1838019378 run team join green
execute if score @s config matches 1838019379 run team join dark_aqua 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 1838019369 run team join dark_green
execute if score @s config matches 1838019368 run team join light_purple
#每条子函数都要reset config分数和function fz:config/display #每条子函数都要reset config分数和function fz:config/display
scoreboard players reset @s config scoreboard players reset @s config
function fz:config/display function fz:config/display
@@ -8,5 +8,6 @@ scoreboard objectives remove damageTaken
scoreboard objectives remove activation scoreboard objectives remove activation
scoreboard objectives remove totalList scoreboard objectives remove totalList
scoreboard objectives remove bedrockBreaked scoreboard objectives remove bedrockBreaked
scoreboard objectives remove fz.aviate1m
#提示已删除 #提示已删除
tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"} tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"}
@@ -39,7 +39,10 @@ scoreboard objectives add damageTaken dummy
scoreboard objectives add activation dummy scoreboard objectives add activation dummy
scoreboard objectives add totalList dummy scoreboard objectives add totalList dummy
scoreboard objectives add bedrockBreaked dummy scoreboard objectives add bedrockBreaked dummy
scoreboard objectives add fz.bbl 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 activation displayname {"text": "活跃时间(h)","color": "aqua"}
scoreboard objectives modify damageTaken displayname {"text": "受伤害榜","color": "yellow"} scoreboard objectives modify damageTaken displayname {"text": "受伤害榜","color": "yellow"}
@@ -50,6 +53,7 @@ scoreboard objectives modify killCounter displayname {"text": "击杀榜","color
scoreboard objectives modify tradingCounter displayname {"text": "交易榜","color": "green"} scoreboard objectives modify tradingCounter displayname {"text": "交易榜","color": "green"}
scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"} scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"}
scoreboard objectives modify bedrockBreaked displayname {"text": "破基岩榜","color": "dark_green"} scoreboard objectives modify bedrockBreaked displayname {"text": "破基岩榜","color": "dark_green"}
scoreboard objectives modify fz.aviate1m displayname {"text": "滑翔距离","color": "light_purple"}
team add gold team add gold
team add aqua team add aqua
@@ -61,6 +65,8 @@ team add red
team add green team add green
team add dark_aqua team add dark_aqua
team add dark_green team add dark_green
team add light_purple
team modify gold color gold team modify gold color gold
team modify aqua color aqua team modify aqua color aqua
team modify yellow color yellow team modify yellow color yellow
@@ -71,6 +77,7 @@ team modify red color red
team modify dark_aqua color dark_aqua team modify dark_aqua color dark_aqua
team modify green color green team modify green color green
team modify dark_green color dark_green team modify dark_green color dark_green
team modify light_purple color light_purple
team join aqua 线(h) team join aqua 线(h)
team join yellow team join yellow
@@ -80,6 +87,7 @@ team join blue 总钓鱼数
team join red team join red
team join green team join green
team join dark_green team join dark_green
team join light_purple
#各计分板的总量 #各计分板的总量
scoreboard players operation 线(h) activation = 线(h) activation scoreboard players operation 线(h) activation = 线(h) activation
scoreboard players operation damageTaken = damageTaken scoreboard players operation damageTaken = damageTaken
@@ -88,6 +96,7 @@ scoreboard players operation 总挖掘量 digCounter = 总挖掘量 digCounter
scoreboard players operation fishingCounter = fishingCounter scoreboard players operation fishingCounter = fishingCounter
scoreboard players operation killCounter = killCounter scoreboard players operation killCounter = killCounter
scoreboard players operation tradingCounter = tradingCounter scoreboard players operation tradingCounter = tradingCounter
scoreboard players operation fz.aviate1m = fz.aviate1m
#总榜的总量 #总榜的总量
scoreboard players operation 线(h) totalList = 线(h) totalList scoreboard players operation 线(h) totalList = 线(h) totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
@@ -96,6 +105,7 @@ 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 players operation totalList = totalList
scoreboard players operation totalList = totalList
scoreboard objectives setdisplay sidebar.team.aqua activation scoreboard objectives setdisplay sidebar.team.aqua activation
scoreboard objectives setdisplay sidebar.team.yellow damageTaken scoreboard objectives setdisplay sidebar.team.yellow damageTaken
@@ -106,6 +116,7 @@ scoreboard objectives setdisplay sidebar.team.red killCounter
scoreboard objectives setdisplay sidebar.team.dark_aqua totalList scoreboard objectives setdisplay sidebar.team.dark_aqua totalList
scoreboard objectives setdisplay sidebar.team.green tradingCounter scoreboard objectives setdisplay sidebar.team.green tradingCounter
scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked
scoreboard objectives setdisplay sidebar.team.light_purple fz.aviate1m
data merge storage fz.installed {scoreboards:1b} data merge storage fz.installed {scoreboards:1b}
@@ -5,7 +5,8 @@ schedule function fz:scoreboards/tradingcounter/setdisplay 30s replace
schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace
schedule function fz:scoreboards/damagetaken/setdisplay 50s replace schedule function fz:scoreboards/damagetaken/setdisplay 50s replace
schedule function fz:scoreboards/activation/setdisplay 60s replace schedule function fz:scoreboards/activation/setdisplay 60s replace
schedule function fz:scoreboards/totallist 70s replace schedule function fz:scoreboards/aviate1m/setdisplay 70s replace
execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/bedrockbreaked/setdisplay 80s replace schedule function fz:scoreboards/totallist 80s replace
execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 90s replace execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/bedrockbreaked/setdisplay 90s replace
execute unless score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 80s 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
@@ -35,11 +35,12 @@ scoreboard objectives remove usedNetAxe
scoreboard objectives remove usedNetPickaxe scoreboard objectives remove usedNetPickaxe
scoreboard objectives remove usedNetShovel scoreboard objectives remove usedNetShovel
scoreboard objectives remove usedNetHoe scoreboard objectives remove usedNetHoe
scoreboard objectives remove fz.bbl
scoreboard objectives remove deathTester scoreboard objectives remove deathTester
scoreboard objectives remove fishingTester scoreboard objectives remove fishingTester
scoreboard objectives remove 10xDamageTaken 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.aqua
scoreboard objectives setdisplay sidebar.team.yellow scoreboard objectives setdisplay sidebar.team.yellow
+7 -6
View File
@@ -191,20 +191,20 @@ __restore(pl, s_player) ->(
total_traded += traded; total_traded += traded;
run('player ' + pl:i + ' kill') run('player ' + pl:i + ' kill')
); );
scoreboard('tradingCounter', '总交易数', total_traded); scoreboard('tradingCounter', '总交易数', total_traded);
scoreboard('totalList', '总交易数', total_traded); scoreboard('totalList', '总交易数', total_traded);
scoreboard('killCounter', '总击杀数', total_killed); scoreboard('killCounter', '总击杀数', total_killed);
scoreboard('totalList', '总击杀数', total_killed); scoreboard('totalList', '总击杀数', total_killed);
scoreboard('fishingCounter', '总钓鱼数', total_fished); scoreboard('fishingCounter', '总钓鱼数', total_fished);
scoreboard('totalList', '总钓鱼数', total_fished); scoreboard('totalList', '总钓鱼数', total_fished);
scoreboard('digCounter', '总挖掘量', total_mined); scoreboard('digCounter', '总挖掘量', total_mined);
scoreboard('totalList', '总挖掘量', total_mined); scoreboard('totalList', '总挖掘量', total_mined);
scoreboard('deathCounter', '总死亡数', total_death); scoreboard('deathCounter', '全部木大', total_death);
scoreboard('totalList', '总死亡数', total_death); scoreboard('totalList', '全部木大', total_death);
scoreboard('activation', '总在线时间(h)', total_actime); scoreboard('activation', '总在线时间(h)', total_actime);
scoreboard('totalList', '总在线时间(h)', total_actime); scoreboard('totalList', '总在线时间(h)', total_actime);
scoreboard('damageTaken', '总受伤害量', total_hurt); scoreboard('damageTaken', '群p抖M', total_hurt);
scoreboard('totalList', '总受伤害量', total_hurt); scoreboard('totalList', '群p抖M', total_hurt);
game_tick(50); game_tick(50);
print('完成!'); print('完成!');
run('function fz:scoreboards/install') run('function fz:scoreboards/install')
@@ -214,5 +214,6 @@ by_whitelist() ->(
s_player = player(); s_player = player();
game_tick(50); game_tick(50);
__restore(pl, s_player); __restore(pl, s_player);
print('done! ');
return() return()
) )