咔勒否 瓦鲁多
This commit is contained in:
parent
04f93c092d
commit
4526f5541d
@ -12,5 +12,8 @@ A Minecraft Datapack
|
||||
- tagplayer.sc包含在压缩包中啦,把它放在world/scripts中然后“/reload”!
|
||||
- 使用/tagplayer 命令生成假人可以避免假人被数据包提供的记分板捕捉到~
|
||||
- tagplayer需要地毯mod1.4.15或以上版本来运行
|
||||
- v2.0.0.3
|
||||
##### - v2.0.0.3
|
||||
- tagplayer需要地毯mod1.4.18或以上版本来运行
|
||||
- 优化了tagplayer体验及修复若干bug
|
||||
##### - v2.0.0.4
|
||||
- 添加彩色字体
|
@ -3,4 +3,6 @@ carpet setDefault commandScript true
|
||||
carpet setDefault commandScriptACE ops
|
||||
carpet setDefault scriptsAutoload true
|
||||
carpet setDefault commandPlayer ops
|
||||
script load tagplayer
|
||||
execute store success score tagplayer parameter run script load tagplayer
|
||||
#提示已安装
|
||||
execute if score tagplayer parameter matches 1 run tellraw @a {"text": "[信息]Tagplayer已启用","color": "#5fff00"}
|
@ -1,13 +1,13 @@
|
||||
#设置或重设超时时间为300s,超时后运行timeout函数
|
||||
schedule function fz:config/timeout 300s
|
||||
#输出玩家可见的设置页面
|
||||
execute if data storage fz.installed {sweeper:1b} run tellraw @s {"text": "扫地机:"}
|
||||
execute if data storage fz.installed {sweeper:1b} run tellraw @s {"text": "扫地机:","color": "#ccff00"}
|
||||
##扫地机时间,对应分数1478966210-1478966215
|
||||
execute if data storage fz.installed {sweeper:1b} run tellraw @s [{"text": "- [关]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966210"}},{"text": "[30秒]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966211"}},{"text": "[1分钟]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966212"}},{"text": "[2分钟]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966213"}},{"text": "[3分钟]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966214"}},{"text": "[4分钟]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966215"}}]
|
||||
execute if data storage fz.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.installed {sweeper:1b} unless score sweepMinecart parameter matches 1 run tellraw @s [{"text": "- 矿车白名单:"},{"text": "[已关闭]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966216"}}]
|
||||
execute if data storage fz.installed {sweeper:1b} unless score sweepMinecart 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.installed {sweeper:1b} if score sweepMinecart parameter matches 1 run tellraw @s [{"text": "- 矿车白名单:"},{"text": "[已开启]","clickEvent": {"action": "run_command","value": "/trigger config set 1478966217"}}]
|
||||
execute if data storage fz.installed {scoreboards:1b} run tellraw @s {"text": "记分板:"}
|
||||
execute if data storage fz.installed {sweeper:1b} if score sweepMinecart 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.installed {scoreboards:1b} run tellraw @s {"text": "记分板:","color": "#ccff00"}
|
||||
##计分板显示,对应分数1838019370-1838019379
|
||||
execute if data storage fz.installed {scoreboards:1b} run tellraw @s [{"text": "- [关]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交♂易榜]","clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
||||
execute if data storage fz.installed {scoreboards:1b} run tellraw @s [{"text": "- "},{"text": "[关]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","color": "yellow","clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","color": "blue","clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交♂易榜]","color": "green","clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
@ -3,5 +3,7 @@
|
||||
scoreboard objectives add config trigger
|
||||
#存入已安装信息
|
||||
data merge storage fz.installed {config:1b}
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]设置功能已安装","color": "#5fff00"}
|
||||
#开始运行
|
||||
function fz:config/start
|
@ -4,4 +4,4 @@ schedule clear fz:config/timeout
|
||||
data remove storage fz.config is_open
|
||||
scoreboard players enable @a config
|
||||
#测试用的输出
|
||||
tellraw @a {"text": "设置ok"}
|
||||
tellraw @a {"text": "[信息]设置功能已启用","color": "#5fff00"}
|
@ -1,7 +1,7 @@
|
||||
#关闭主进程
|
||||
schedule clear fz:config/main
|
||||
#输出给打开过设置界面的玩家的消息
|
||||
tellraw @a[scores={openingConfig=1}] {"text": "5分钟无任何人回应,为节省性能,已关闭设置功能,请重新唤起"}
|
||||
tellraw @a[scores={openingConfig=1}] {"text": "[提醒]5分钟无任何人回应,为节省性能,已关闭设置功能,请重新唤起","color": "#d7ff00"}
|
||||
#重置打开过设置界面的玩家的列表
|
||||
scoreboard objectives remove openingConfig
|
||||
#移除设置界面被打开的信息
|
||||
|
@ -5,3 +5,5 @@ schedule clear fz:config/timeout
|
||||
data remove storage fz.config is_open
|
||||
#写入已卸载的信息
|
||||
data merge storage fz.installed {config:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]设置功能已卸载","color": "#5fff00"}
|
@ -6,3 +6,5 @@ scoreboard objectives setdisplay list Health
|
||||
scoreboard objectives setdisplay belowName Health
|
||||
#写入已安装的信息
|
||||
data merge storage fz.installed {health:1b}
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]血量显示已安装","color": "#5fff00"}
|
@ -3,3 +3,5 @@
|
||||
scoreboard objectives remove Health
|
||||
#写入已卸载的信息
|
||||
data merge storage fz.installed {health:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]血量显示已卸载","color": "#5fff00"}
|
@ -15,8 +15,14 @@ function fz:login/logintips/install
|
||||
function fz:carpet/carpet
|
||||
#版本信息
|
||||
data merge storage fz.installed {installed:1b}
|
||||
data merge storage fz {version:Alpha-2.0.0.3}
|
||||
data merge storage fz {date:2020-11.27}
|
||||
data merge storage fz {time:"22:18"}
|
||||
data merge storage fz {version:Alpha-2.0.0.4}
|
||||
data merge storage fz {date:2020-12.25}
|
||||
data merge storage fz {time:"07:01"}
|
||||
data merge storage fz {snapshot:-SNAPSHOT}
|
||||
##data remove storage fz snapshot
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"}
|
||||
#info: #5fff00
|
||||
#alert: #d7ff00
|
||||
#warn: #ffd900
|
||||
#error: #ff6100
|
@ -1,8 +1,8 @@
|
||||
#如果未安装且未卸载则安装
|
||||
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:Alpha-2.0.0.3} if data storage fz.installed {installed:1b} run function fz:start
|
||||
execute if data storage fz {version:Alpha-2.0.0.4} if data storage fz.installed {installed:1b} run function fz:start
|
||||
#如果版本不符则更新
|
||||
execute unless data storage fz {version:Alpha-2.0.0.3} run function fz:update
|
||||
execute unless data storage fz {version:Alpha-2.0.0.4} run function fz:update
|
||||
#输出版本信息
|
||||
tellraw @a [{"text": "FZ's Datapack-"},{"nbt":"version","storage":"fz"},{"nbt": "snapshot", "storage": "fz"}]
|
||||
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]
|
@ -1,2 +1,4 @@
|
||||
#安装登陆提示
|
||||
data merge storage fz.installed {logintips:1b}
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]登陆提示已安装","color": "#5fff00"}
|
@ -1,2 +1,4 @@
|
||||
#卸载登陆提示
|
||||
data merge storage fz.installed {logintips:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]登陆提示已卸载","color": "#5fff00"}
|
@ -1,4 +1,4 @@
|
||||
execute if data storage fz.installed {logintips:1b} run tellraw @s {"text": "提示:站在地面,抬头并按一下shift即可打开设置页面"}
|
||||
execute if data storage fz.installed {logintips:1b} run tellraw @s {"text": "[提醒]站在地面,抬头并按一下shift即可打开设置页面","color": "#d7ff00"}
|
||||
|
||||
scoreboard players set @s leaveGame 0
|
||||
|
||||
|
@ -7,3 +7,5 @@ scoreboard objectives remove fishingCounter
|
||||
scoreboard objectives remove damageTaken
|
||||
scoreboard objectives remove activation
|
||||
scoreboard objectives remove totalList
|
||||
#提示已删除
|
||||
tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"}
|
@ -99,4 +99,6 @@ scoreboard objectives setdisplay sidebar.team.green tradingCounter
|
||||
|
||||
data merge storage fz.installed {scoreboards:1b}
|
||||
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]记分板已安装","color": "#5fff00"}
|
||||
function fz:scoreboards/start
|
@ -10,4 +10,4 @@ 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": "记分板ok"}
|
||||
tellraw @a {"text": "[信息]记分板已启用","color": "#5fff00"}
|
@ -49,6 +49,8 @@ scoreboard objectives setdisplay sidebar.team.light_purple
|
||||
scoreboard objectives setdisplay sidebar.team.green
|
||||
scoreboard objectives setdisplay sidebar.team.gold
|
||||
|
||||
tellraw @s [{"text": "您要删除计分板数据吗,它将会永久失去!(真的很久!)", "color": "red"},{"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function fz:scoreboards/delscore"}, "color": "green"}]
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]记分板已卸载","color": "#5fff00"}
|
||||
tellraw @s [{"text": "[警告]您要删除计分板数据吗,它将会永久失去!(真的很久!)", "color": "#ffd900"},{"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function fz:scoreboards/delscore"}, "color": "#00ff00"}]
|
||||
|
||||
data merge storage fz.installed {scoreboards:0b}
|
@ -4,4 +4,4 @@ execute if data storage fz.installed {sweeper:1b} run function fz:sweeper/start
|
||||
execute if data storage fz.installed {config:1b} run function fz:config/start
|
||||
function fz:carpet/carpet
|
||||
#测试用的输出
|
||||
tellraw @a {"text": "ok"}
|
||||
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
|
@ -11,5 +11,5 @@ schedule clear fz:sweeper/timer/1min
|
||||
schedule clear fz:sweeper/timer/2min
|
||||
schedule clear fz:sweeper/timer/3min
|
||||
schedule clear fz:sweeper/timer/4min
|
||||
tellraw @a {"text": "扫地机已关闭"}
|
||||
tellraw @a {"text": "[信息]扫地机已关闭","color": "#5fff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
|
@ -1,3 +1,5 @@
|
||||
data merge storage fz.installed {sweeper:1b}
|
||||
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]扫地机已安装","color": "#5fff00"}
|
||||
function fz:sweeper/start
|
@ -1,6 +1,6 @@
|
||||
execute if score sweepMinecart parameter matches 1 run execute store result score sweeperItem parameter run kill @e[type=item]
|
||||
execute unless score sweepMinecart parameter matches 1 run execute store result score sweeperItem parameter run kill @e[type=item,predicate=!fz:sweeper/minecart]
|
||||
tellraw @a [{"text": "本次清理了"},{"score": {"objective": "parameter", "name": "sweeperItem"}},{"text": "堆物品"}]
|
||||
tellraw @a [{"text": "[信息]本次清理了","color": "#5fff00"},{"score": {"objective": "parameter", "name": "sweeperItem"},"color": "#5fff00"},{"text": "堆物品","color": "#5fff00"}]
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 2
|
||||
execute if score sweeperTime parameter matches 30 run function fz:sweeper/timer/30s
|
||||
execute if score sweeperTime parameter matches 60 run function fz:sweeper/timer/1min
|
||||
|
@ -10,4 +10,4 @@ schedule clear fz:sweeper/timer/2min
|
||||
schedule clear fz:sweeper/timer/3min
|
||||
schedule clear fz:sweeper/timer/4min
|
||||
|
||||
tellraw @a {"text": "扫地机ok"}
|
||||
tellraw @a {"text": "[信息]扫地机已启用","color": "#5fff00"}
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "10s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]10s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/5s 5s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "1min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]1min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/30s 30s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "1s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]1s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/main 1s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "2min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]2min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1min 60s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "2s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]2s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/1s 1s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "30s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]30s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/10s 20s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "3min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]3min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2min 60s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "3s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]3s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/2s 1s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "4min后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]4min后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3min 60s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "4s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]4s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/3s 1s
|
@ -1,3 +1,3 @@
|
||||
tellraw @a {"text": "5s后清理掉落物"}
|
||||
tellraw @a {"text": "[提醒]5s后清理掉落物","color": "#d7ff00"}
|
||||
execute as @a at @a run playsound minecraft:block.note_block.pling voice @s ~ ~ ~ 1 1
|
||||
schedule function fz:sweeper/timer/4s 1s
|
@ -12,3 +12,5 @@ schedule clear fz:sweeper/timer/3min
|
||||
schedule clear fz:sweeper/timer/4min
|
||||
|
||||
data merge storage fz.installed {sweeper:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]扫地机已卸载","color": "#5fff00"}
|
@ -10,3 +10,5 @@ scoreboard objectives remove calculator
|
||||
scoreboard objectives remove leaveGame
|
||||
#存入已卸载信息,下次启动不会重新安装
|
||||
data merge storage fz.installed {installed:0b}
|
||||
#提示已卸载
|
||||
tellraw @a {"text": "[信息]FZ'sDatapack已卸载","color": "#5fff00"}
|
@ -6,3 +6,5 @@ execute if data storage fz.installed {sweeper:0b} run function fz:sweeper/uninst
|
||||
execute if data storage fz.installed {scoreboards:0b} run function fz:scoreboards/uninstall
|
||||
execute if data storage fz.installed {health:0b} run function fz:health/uninstall
|
||||
execute if data storage fz.installed {logintips:0b} run function fz:login/logintips/uninstall
|
||||
#提示已安装
|
||||
tellraw @a {"text": "[信息]升级完成","color": "#5fff00"}
|
Loading…
Reference in New Issue
Block a user