Compare commits
171 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
96f2320257 | ||
|
d81d0a530a | ||
|
61a9f25505 | ||
|
e57961e031 | ||
|
d6124efa12 | ||
|
218b24b4a4 | ||
|
56b2a16634 | ||
|
fd706b77bc | ||
|
39711d3e01 | ||
|
51c667c392 | ||
|
48a2fd7cb5 | ||
|
0b41cddbf8 | ||
|
52f182a02f | ||
|
78451c559e | ||
|
0fa1c6ae32 | ||
|
f2d84334fe | ||
|
f3cee3baef | ||
|
63efa94335 | ||
|
6e8a38d027 | ||
|
888d664897 | ||
|
c46c3d0ec2 | ||
|
b398e27d89 | ||
|
14f7fdc70c | ||
|
664735720f | ||
|
697957300b | ||
|
1c9f10261a | ||
|
a3642694e8 | ||
|
f2226d6c0e | ||
|
0c09cd467f | ||
|
4cd45d6ab1 | ||
|
3499fb0be3 | ||
|
0c93ee830c | ||
|
09fcbb7891 | ||
|
e13ab7619c | ||
|
cfbd6da92a | ||
|
b3582c3bab | ||
|
2a96a9ee3a | ||
|
4e79e3209e | ||
|
09fac1082a | ||
|
44d7a24b1b | ||
|
667822c436 | ||
|
02330aec55 | ||
|
05853884de | ||
|
5ea4c7461f | ||
|
648898966e | ||
|
153439abfc | ||
|
b4b296ea9b | ||
|
b1ea5bb682 | ||
|
2e9b0637c4 | ||
|
6b000ceba9 | ||
|
9fb6a4f0bc | ||
|
03d0d0df63 | ||
|
95abf97f17 | ||
|
f886ca2ed5 | ||
|
ffe6930599 | ||
|
1bfe996fb5 | ||
|
4c66b76e1f | ||
|
ab37f056d7 | ||
|
caad1117c3 | ||
|
6ac7cbc246 | ||
|
6a26940eef | ||
|
dec77bb496 | ||
|
8325f9ec08 | ||
|
2fd72d84de | ||
|
47bd69d3a8 | ||
|
8162a7031a | ||
|
08f73b9b9c | ||
|
2a31e4a2c6 | ||
|
e431f13e49 | ||
|
718ed537c4 | ||
|
025d821495 | ||
|
4625636ed4 | ||
|
670ab5514c | ||
|
c39ff19f1d | ||
|
28d8625cb6 | ||
|
0905d460b6 | ||
|
a40a33b19c | ||
|
423447dfe0 | ||
|
c11e3ea966 | ||
|
95c003825a | ||
|
40088893b5 | ||
|
c305885777 | ||
|
284a7594ec | ||
|
faad8f7f24 | ||
|
cccc793446 | ||
|
41657ce24c | ||
|
a9f8c2068a | ||
|
696238c188 | ||
|
7bdae8271e | ||
|
69ddfba745 | ||
|
d7a4b8850f | ||
|
bd651ce38c | ||
|
e2ca203450 | ||
|
90155651ab | ||
|
2e9bbaf22c | ||
|
3b902c7880 | ||
|
5e2858a25a | ||
|
59230b5389 | ||
|
c189ac700a | ||
|
525e1a0865 | ||
|
24bb299869 | ||
|
26dac885cb | ||
|
7fc0c2612a | ||
|
ed3c0e5077 | ||
|
3d2348dd61 | ||
|
d05ac38056 | ||
|
a8c56ab5c6 | ||
|
1b18ff0218 | ||
|
76e80ac0ce | ||
|
1defc59eb5 | ||
|
d2222c9899 | ||
|
3633138d13 | ||
|
a351e5a831 | ||
|
3f4df874e6 | ||
|
da7af9fc83 | ||
|
08d3d01b18 | ||
|
dfe06e506c | ||
|
3ce37c9abf | ||
|
5520832d55 | ||
|
696adfa9d7 | ||
|
4ef9270a21 | ||
|
67a608a1d5 | ||
|
90a4a61855 | ||
|
7b2136c282 | ||
|
a35bac8ecc | ||
|
0d19aefc01 | ||
|
1bfd8448c0 | ||
|
37b06a1e8d | ||
|
5a2255a9f8 | ||
|
d85e07874f | ||
|
4a69d7d927 | ||
|
596ebd9d64 | ||
|
4665599abb | ||
|
171b19c93a | ||
|
d8d5b7b677 | ||
|
2e3b933e9b | ||
|
6852545faf | ||
|
efa07bec51 | ||
|
905b8120a0 | ||
|
f2f2241220 | ||
|
6f6d2cbeef | ||
|
78336bc6e4 | ||
|
131263aca5 | ||
|
18d6d3b4aa | ||
|
88445a4e8c | ||
|
b925dfa464 | ||
|
460b39698a | ||
|
288c0a3d5f | ||
|
f266f8b936 | ||
|
a0aa66a044 | ||
c636870b9f | |||
51fa09b830 | |||
|
d74bb19964 | ||
|
6f6ccb05be | ||
|
c5b36c5f50 | ||
|
a2a9d874f7 | ||
|
cb8c0a1079 | ||
|
d9b5c29fff | ||
|
e87d148380 | ||
|
4ad5cf2a3c | ||
|
5c75fa4127 | ||
|
ff5d951fd1 | ||
|
e1b364eb42 | ||
|
c74f1e4515 | ||
|
5ecb61500e | ||
|
5cf96e15c8 | ||
|
ecd1280225 | ||
|
27d19c941b | ||
|
474dc6a6e4 | ||
f6c8e25eb7 | |||
364d2dc36f |
41
.vscode/settings.json
vendored
Normal file
41
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"datapack.snippets": {
|
||||||
|
"executeIfScoreSet": "execute if score ${1:score_holder} ${2:objective} = ${1:score_holder} ${2:objective} $0",
|
||||||
|
"scoreboardPlayersOperation": "scoreboard players operation ${1:target_score_holder} ${2:target_objective} ${3|+=,-=,*=,/=,%=,=,>,<,<>|} ${4:source_score_holder} ${5:source_objective}",
|
||||||
|
"scoreboardPlayersSet": "scoreboard players set ${1:score_holder} ${2:objective} ${3:0}",
|
||||||
|
"scoreboardAddObjective": "scoreboard objectives add ${1:objective} ${2:dummy}",
|
||||||
|
"tagAdd": "tag ${1:target} add ${2:tag}",
|
||||||
|
"tagRemove": "tag ${1:target} remove ${2:tag}",
|
||||||
|
"dataModifyStorageFromSelf": "data modify storage ${1:id} ${2:path} set from entity @s ${3:path}",
|
||||||
|
"summonAec": "summon minecraft:area_effect_cloud ~ ~ ~ {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: [\"${1:tag}\"]}",
|
||||||
|
"logFine": "execute if score fzsd.logger.level fzsd.variable.integer matches ..300 run tellraw @a [{\"nbt\": \"fzsd.level.fine\", \"interpret\": true, \"storage\": \"fzsd:logger\"}, {\"text\": \"${log_fine}\"}",
|
||||||
|
"logDebug": "execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{\"nbt\": \"fzsd.level.debug\", \"interpret\": true, \"storage\": \"fzsd:logger\"}, {\"text\": \"${1:log_debug}\"}]",
|
||||||
|
"logInfo": "execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{\"nbt\": \"fzsd.level.info\", \"interpret\": true, \"storage\": \"fzsd:logger\"}, {\"text\": \"${1:log_info}\"}]",
|
||||||
|
"logAlert": "execute if score fzsd.logger.level fzsd.variable.integer matches ..600 run tellraw @a [{\"nbt\": \"fzsd.level.alert\", \"interpret\": true, \"storage\": \"fzsd:logger\"}, {\"text\": \"${1:log_alert}\"}]",
|
||||||
|
"logError": "execute if score fzsd.logger.level fzsd.variable.integer matches ..800 run tellraw @a [{\"nbt\": \"fzsd.level.error\", \"interpret\": true, \"storage\": \"fzsd:logger\"}, {\"text\": \"${1:log_error}\"}]",
|
||||||
|
"TEXT": "{\"text\": \"${1:TEXT}\", \"color\": \"${2:COLOR}\"}",
|
||||||
|
"storageText": "{\"nbt\": \"${1:NBT}\", \"interpret\": true, \"storage\": \"${2:A namespaced ID}\"}",
|
||||||
|
"ifInstalled": "execute if data storage fzsd:installed fzsd.module{${1:module_name}:1b} run ${tellraw}"
|
||||||
|
},
|
||||||
|
"datapack.env.exclude": [
|
||||||
|
"data/fzsd/functions/system/carpet/*"
|
||||||
|
],
|
||||||
|
"datapack.lint.blockStateCommaSpacing": {
|
||||||
|
"before": 0,
|
||||||
|
"after": 1
|
||||||
|
},
|
||||||
|
"datapack.lint.blockStateEqualSpacing": {
|
||||||
|
"before": 1,
|
||||||
|
"after": 1
|
||||||
|
},
|
||||||
|
"datapack.lint.selectorCommaSpacing": {
|
||||||
|
"before": 0,
|
||||||
|
"after": 1
|
||||||
|
},
|
||||||
|
"datapack.lint.selectorEqualSpacing": {
|
||||||
|
"before": 1,
|
||||||
|
"after": 1
|
||||||
|
},
|
||||||
|
"datapack.env.cmdVersion": "1.20.3",
|
||||||
|
"datapack.env.dataVersion": "1.21"
|
||||||
|
}
|
147
CHANGELOG.md
147
CHANGELOG.md
@ -1,147 +0,0 @@
|
|||||||
# 更新记录
|
|
||||||
|
|
||||||
>所有可查阅的更改记录皆可在此处找到
|
|
||||||
|
|
||||||
### v2.2.0
|
|
||||||
- 仅支持Minecraft1.19+,1.16请用2.0.x,1.17-1.18请用2.1.x
|
|
||||||
- 修复[#I5BP3U](https://gitee.com/harvey-husky/FZ-sDatapack/issues/I5BP3U)
|
|
||||||
|
|
||||||
### v2.2 pre1
|
|
||||||
|
|
||||||
- `census`地毯脚本更新至1.3.1版本
|
|
||||||
- 修复一些显示bug
|
|
||||||
- 现在基本可以正常使用**仍然不能保证稳定性(数据安全性)**
|
|
||||||
- 添加了可以用来*迁移*数据的Python脚本 `score_move`
|
|
||||||
- 使用时与`server`文件夹同级
|
|
||||||
- `score_move.py`
|
|
||||||
- `server`
|
|
||||||
- `server.jar`
|
|
||||||
- ······
|
|
||||||
- ······
|
|
||||||
- ······
|
|
||||||
- 更改了文件结构,将地毯脚本移动到`脚本`文件夹中
|
|
||||||
- 可能会有release
|
|
||||||
- 以后准备要重写整个Datapack了
|
|
||||||
- 3.0!
|
|
||||||
|
|
||||||
### v2.1.3 pre1
|
|
||||||
|
|
||||||
- 添加`census`地毯脚本
|
|
||||||
- `census`脚本**不稳定**,请谨慎使用,本版本无release
|
|
||||||
- 在 readme 里添加了一些badge
|
|
||||||
|
|
||||||
### v2.1.2 & 2.0.10
|
|
||||||
|
|
||||||
- 添加鞘翅滑翔距离榜单 [#I40PFS](https://gitee.com/harvey-husky/FZ-sDatapack/issues/I40PFS)
|
|
||||||
|
|
||||||
## v2.1.0
|
|
||||||
|
|
||||||
- 仅支持 **Minecraft 1.17 +**
|
|
||||||
|
|
||||||
- 修复使用部分工具和方块交互时挖掘榜会减分的 BUG
|
|
||||||
|
|
||||||
- 为榜单恢复插件新增新版本的新方块
|
|
||||||
|
|
||||||
## v2.0.8
|
|
||||||
|
|
||||||
- 修复在末地使用 `/here` 时,世界名称显示为世界 ID 的 BUG
|
|
||||||
|
|
||||||
- 修复 `tagplayer` 可以随意传送玩家的 BUG
|
|
||||||
|
|
||||||
- 修复记分板轮播时不显示击杀榜的 BUG
|
|
||||||
|
|
||||||
- 修复没有破基岩榜时依然会轮播破基岩榜的 BUG
|
|
||||||
|
|
||||||
- 为 `/tagplayer tp` 指令添加了配置文件
|
|
||||||
|
|
||||||
## v2.0.3
|
|
||||||
|
|
||||||
- 修复在不添加 `tagplayer` 工具时记分板不加分的 BUG
|
|
||||||
|
|
||||||
## v2.0.2
|
|
||||||
|
|
||||||
- 修复在使用 Carpet 1.4.22及以上版本时,`tagplayer` 的玩家名错乱的 BUG
|
|
||||||
|
|
||||||
## v2.0.1.8
|
|
||||||
|
|
||||||
- 修复使用金斧头挖掘会导致总量 +2 的 BUG
|
|
||||||
|
|
||||||
- 修复使用金锄头挖掘不会给挖掘榜加分
|
|
||||||
|
|
||||||
- 修复主手有铲子,斧头,锄头时,副手放置方块会导致挖掘榜 -1 的 BUG (原版 BUG,通过 toolsfix2 成就修复) [#I2DJDC](https://gitee.com/harvey-husky/FZ-sDatapack/issues/I2DJDC)
|
|
||||||
|
|
||||||
## v2.0.1.7
|
|
||||||
|
|
||||||
- 修复有时设置界面打不开的 BUG
|
|
||||||
|
|
||||||
- 修复交易榜只加一次分的 BUG..
|
|
||||||
|
|
||||||
- 修复 `tagplayer` 中的事件多次触发的 BUG
|
|
||||||
|
|
||||||
## v2.0.1.6
|
|
||||||
|
|
||||||
- `tagplayer` 现在可以通过自定义文件名来自定义游戏内命令
|
|
||||||
|
|
||||||
- 修复铁制工具依然不统计记分板的 BUG...
|
|
||||||
|
|
||||||
## v2.0.1.3
|
|
||||||
|
|
||||||
- 修复部分铁质工具不统计挖掘榜的 BUG
|
|
||||||
|
|
||||||
## v2.0.1.1
|
|
||||||
|
|
||||||
- 为设置界面的计分板添加悬浮文本
|
|
||||||
|
|
||||||
- 无需配置即可支持该铁头功破基岩榜 Mod:[FZ-BBL](https://gitee.com/harvey-husky/FZ-BBL/releases)
|
|
||||||
|
|
||||||
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于 `0` 时显示,以免未添加该 Mod 的服务器显示破基岩榜
|
|
||||||
|
|
||||||
## v2.0.0.11
|
|
||||||
|
|
||||||
- `/tagplayer spawn xxx`后面现在可以追加`at`、`facing`、`in`参数
|
|
||||||
|
|
||||||
## v2.0.0.10
|
|
||||||
|
|
||||||
- 扫地机添加了位于怪物血条栏的文字提示,同时添加了各种提示的开关功能
|
|
||||||
|
|
||||||
## v2.0.0.9
|
|
||||||
|
|
||||||
- 修复矿车白名单状态反了的 BUG
|
|
||||||
|
|
||||||
## v2.0.0.8
|
|
||||||
|
|
||||||
- 添加 `c.sc`、`s.sc`、`here.sc` 工具
|
|
||||||
|
|
||||||
## v2.0.0.7
|
|
||||||
|
|
||||||
- `tagplayer` 添加了新版 Carpet 新指令,可以为假人切换热键栏
|
|
||||||
|
|
||||||
- 现在 `tagplayer` 需要 Carpet **1.4.21** 及以上版本运行!
|
|
||||||
|
|
||||||
- 现在 `tagplayer` 可以给自己设置动作了
|
|
||||||
|
|
||||||
- 添加`/tagplayer shadow`指令将自己变为前缀为`挂机`的假人
|
|
||||||
|
|
||||||
## v2.0.0.6
|
|
||||||
|
|
||||||
- 修复 `restore_scores.sc` 工具不能恢复受伤害榜(抖M榜)的 BUG
|
|
||||||
|
|
||||||
## v2.0.0.5
|
|
||||||
|
|
||||||
- 修复挖掘榜部分工具不起作用的 BUG
|
|
||||||
|
|
||||||
- 添加 `restore_scores.sc` 工具便于恢复或从 `1.0` 版本升级记分板
|
|
||||||
|
|
||||||
## v2.0.0.4
|
|
||||||
|
|
||||||
- 添加彩色字体
|
|
||||||
|
|
||||||
## v2.0.0.3
|
|
||||||
|
|
||||||
- `tagplayer` 需要 Carpet **1.4.18** 及以上版本来运行
|
|
||||||
|
|
||||||
- 优化了 `tagplayer` 体验及修复若干 BUG
|
|
||||||
|
|
||||||
## v2.0.0.2
|
|
||||||
|
|
||||||
- 重写
|
|
134
DEVDOC.md
Normal file
134
DEVDOC.md
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
# 开发文档
|
||||||
|
|
||||||
|
## 指引
|
||||||
|
|
||||||
|
- `函数`,指数据包`<命名空间>/functions`目录下的`.mcfunction`文件
|
||||||
|
- `标签`,指数据包`<命名空间>/tags`目录下的`.json`文件
|
||||||
|
- `覆盖标签并填入函数`时,`replace`为`true`
|
||||||
|
|
||||||
|
``` json
|
||||||
|
{
|
||||||
|
"replace": true,
|
||||||
|
"values": ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `向标签中注册函数`时,`replace`为`false`
|
||||||
|
|
||||||
|
``` json
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- ***函数和标签是否能被扩展数据包成功覆盖,取决于数据包加载顺序***,请使用`/datapack enable <xxx> after <xxx>`指令,使您的扩展数据包在FZ's Survival Datapack之后加载
|
||||||
|
|
||||||
|
## 基本要求
|
||||||
|
|
||||||
|
- 函数由两个以上的函数调用,或由不同包下的函数调用,或需要作为接口开放给下游数据包时,应改用标签调用!
|
||||||
|
- 函数调用尽量不要使用`function`命令,应改在标签中按顺序调用!
|
||||||
|
|
||||||
|
## 系统模块
|
||||||
|
|
||||||
|
### 频繁使用的计算单元
|
||||||
|
|
||||||
|
- [`#fzsd:calculation/*`](data/fzsd/tags/functions/calculation/)标签通常被用来进行简单重复的计算任务
|
||||||
|
|
||||||
|
### 事件模块
|
||||||
|
|
||||||
|
- 通常由**进度**触发,触发后调用同名的事件标签
|
||||||
|
- 在[`#fzsd:game_event/(<...>/)on_<事件>`](data/fzsd/tags/functions/game_event/)标签中注册触发时需要调用的函数即可
|
||||||
|
|
||||||
|
### 日志模块
|
||||||
|
|
||||||
|
- 仓库中提供了日志相关的代码片段,位于[`.vscode/settings.json`](.vscode/settings.json)
|
||||||
|
- 暂时没有找到方法在服务端控制台打印日志,但会被记录在客户端
|
||||||
|
|
||||||
|
#### 详细 Fine
|
||||||
|
|
||||||
|
- 等级:300
|
||||||
|
- 使用方法:`execute if score fzsd.logger.level fzsd.variable.integer matches ..300 run tellraw @a [{"nbt": "fzsd.level.fine", "interpret": true, "storage": "fzsd:logger"}, {"text": "你的日志"}`
|
||||||
|
|
||||||
|
#### 调试 Debug
|
||||||
|
|
||||||
|
- 等级:400
|
||||||
|
- 使用方法:`execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "你的日志"}`
|
||||||
|
|
||||||
|
#### 信息 Info
|
||||||
|
|
||||||
|
- 等级:500
|
||||||
|
- 使用方法:`execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "你的日志"}`
|
||||||
|
|
||||||
|
#### 提醒 Alert
|
||||||
|
|
||||||
|
- 等级:600
|
||||||
|
- 使用方法:`execute if score fzsd.logger.level fzsd.variable.integer matches ..600 run tellraw @a [{"nbt": "fzsd.level.alert", "interpret": true, "storage": "fzsd:logger"}, {"text": "你的日志"}`
|
||||||
|
|
||||||
|
#### 意外 Exception
|
||||||
|
|
||||||
|
- 暂不提供
|
||||||
|
|
||||||
|
#### 错误 Error
|
||||||
|
|
||||||
|
- 等级:800
|
||||||
|
- 使用方法:`execute if score fzsd.logger.level fzsd.variable.integer matches ..800 run tellraw @a [{"nbt": "fzsd.level.error", "interpret": true, "storage": "fzsd:logger"}, {"text": "你的日志"}`
|
||||||
|
|
||||||
|
## 功能模块
|
||||||
|
|
||||||
|
### 交互器模块
|
||||||
|
|
||||||
|
#### 按钮操作
|
||||||
|
|
||||||
|
1. 定义一个显示按钮时执行的函数,使用形如`tellraw @s {"text": "[按钮]", "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set <触发器分数>"}}`的指令定义按钮。
|
||||||
|
- *触发器分数为正数会重新向玩家发送交互按钮,如不想重新发送,请使用负数*
|
||||||
|
- 大多数情况下这里的触发器分数必须是独一无二的
|
||||||
|
- 建议使用`>10000`的随机数作为自定义按钮的触发器分数
|
||||||
|
2. 在[`#fzsd:module/interactor/event/on_display`](data/fzsd/tags/functions/module/interactor/display.json)标签中注册上述函数
|
||||||
|
3. 定义一个点击按钮时执行的函数,使用形如`execute if score @s fzsd.module.interactor.trigger matches <min>..<max> run ...`的指令判断玩家的触发器分数,并执行你的操作
|
||||||
|
4. 在[`#fzsd:module/interactor/event/on_click`](data/fzsd/tags/functions/module/interactor/event/on_click.json)标签中注册上述函数
|
||||||
|
|
||||||
|
#### 其他标签
|
||||||
|
|
||||||
|
- 标签[`#fzsd:module/interactor/reset_trigger`](data/fzsd/tags/functions/module/interactor/reset_trigger.json):重置玩家`@s`的触发器计分板
|
||||||
|
|
||||||
|
### 计分板模块
|
||||||
|
|
||||||
|
#### 自定义计分板颜色
|
||||||
|
|
||||||
|
- 数据包提供了所有计分板的全部16色命名函数
|
||||||
|
- 使用方法:**覆盖**[`#fzsd:module/scoreboard/display/set_text/<计分板名称>`](data/fzsd/tags/functions/module/scoreboard/display/set_text/)标签,填入[`fzsd:module/scoreboard/display/set_text/<计分板名称>/<颜色名称>`](data/fzsd/functions/module/scoreboard/display/set_text/)函数
|
||||||
|
|
||||||
|
#### 自定义计分板名称
|
||||||
|
|
||||||
|
1. 定义一个设置计分板颜色、文本的函数,格式可以参考[`fzsd:module/scoreboard/display/set_text/general/*`](data/fzsd/functions/module/scoreboard/display/set_text/general/)函数
|
||||||
|
2. **覆盖**[`#fzsd:module/scoreboard/display/set_text/<计分板名称>`](data/fzsd/tags/functions/module/scoreboard/display/set_text/)标签,填入上述函数
|
||||||
|
|
||||||
|
#### 扩展自己的计分板
|
||||||
|
|
||||||
|
1. 定义一个安装函数,参考[`fzsd:module/scoreboard/install`](data/fzsd/functions/module/scoreboard/install.mcfunction)函数
|
||||||
|
2. 在[`#fzsd:module/scoreboard/install`](data/fzsd/tags/functions/module/scoreboard/install.json)标签中注册该函数
|
||||||
|
3. 按照“自定义计分板颜色”和“自定义计分板名称”中的操作,定义你的计分板颜色和名称
|
||||||
|
4. 定义一个生成计分板运行时id的函数,参考[`fzsd:module/scoreboard/display/register_id`](data/fzsd/functions/module/scoreboard/display/register_id.mcfunction)函数
|
||||||
|
5. 在[`#fzsd:module/scoreboard/display/register_id`](data/fzsd/tags/functions/module/scoreboard/display/register_id.json)标签中注册该函数
|
||||||
|
6. 定义一个用来在轮播时显示你的计分板的函数,参考[`fzsd:module/scoreboard/display/carousel/set_display/*`](data/fzsd/functions/module/scoreboard/display/carousel/set_display/activation.mcfunction)函数
|
||||||
|
7. 定义一个用来判断在轮播时是否轮到你的计分板的函数,在判断后调用上一条中的函数,参考[`fzsd:module/scoreboard/display/carousel/try_display/*`](data/fzsd/functions/module/scoreboard/display/carousel/try_display/activation.mcfunction)函数
|
||||||
|
8. 将该函数注册到[`#fzsd:module/scoreboard/display/try_display`](data/fzsd/tags/functions/module/scoreboard/display/carousel/try_display.json)标签中
|
||||||
|
|
||||||
|
## 自定义模块
|
||||||
|
|
||||||
|
### 排除假人
|
||||||
|
|
||||||
|
- 如果您不想对假人执行您的命令,请将以下语句添加在您要执行的命令之前:
|
||||||
|
<pre><code><font color=ee82ee>execute </font><font color=1e90ff>if predicate </font><font color=f0e68c>fzsd:is_real_player</font></code></pre>
|
||||||
|
|
||||||
|
#### 注册安装、卸载、加载函数
|
||||||
|
|
||||||
|
- 在下列标签中注册你的安装、卸载、加载函数:
|
||||||
|
- [`#fzsd:system/install/module`](data/fzsd/tags/functions/system/install/module.json)
|
||||||
|
- [`#fzsd:system/uninstall/module`](data/fzsd/tags/functions/system/uninstall/module.json)
|
||||||
|
- [`#fzsd:system/load/module`](data/fzsd/tags/functions/system/load/module.json)
|
||||||
|
|
||||||
|
#### 注册交互器按钮
|
||||||
|
|
||||||
|
- 见[交互器按钮](#按钮操作)
|
19
LICENSE
19
LICENSE
@ -1,19 +1,20 @@
|
|||||||
|
|
||||||
FZSD许可证
|
FZSD许可协议
|
||||||
|
|
||||||
2022/7/20 https://gitee.com/harvey-husky/fz-survival-datapack/LICENSE
|
2023/6/6 https://gitee.com/harvey-husky/fz-survival-datapack/blob/dev/3.0/LICENSE
|
||||||
|
|
||||||
版权所有 © 2019-2022 延皓<https://gitee.com/harvey-husky><https://space.bilibili.com/677233356>
|
版权所有 © 2019-2023 延皓<https://gitee.com/harvey-husky><https://space.bilibili.com/677233356>
|
||||||
|
|
||||||
定义:
|
定义:
|
||||||
“该许可证”指FZSD许可证。
|
“该许可协议”指FZSD许可协议。
|
||||||
“该软件”指许可在该许可证下的程序和相关文档的集合。
|
“该软件”指许可在该许可协议下的程序和相关文档的集合。
|
||||||
“官方网址”指由版权所有者提供的该软件的发布网址。
|
“官方网址”指由版权所有者提供的该软件的发布网址。
|
||||||
|
|
||||||
您对该软件的复制、使用、修改及分发受如下条款的约束:
|
您对该软件的复制、使用、修改及分发受如下条款的约束:
|
||||||
1. 禁止添加、修改或删除该许可证的内容。
|
1. 禁止添加、修改或删除该许可协议的内容。
|
||||||
2. 禁止未经授权的转载、销售或二次发布该软件。
|
2. 禁止未经授权的转载、销售或二次发布该软件。
|
||||||
3. 禁止添加、修改或抹除该软件中的原作者署名。
|
3. 禁止添加、修改或抹除该软件中的原作者署名。
|
||||||
4. 如果您从部署了该软件的Minecraft服务器中以任何方式获取了收益,则您必须在游戏中的明显位置明确告知用户您的Minecraft服务器使用了该软件,并附上官方网址。
|
4. 如果您从部署了该软件的Minecraft服务器中以任何方式获取了收益,则您必须在游戏中的明显位置明确告知用户您的Minecraft服务器使用了该软件,并附上该软件的官方网址。
|
||||||
5. 如果您修改了该软件中的任何内容,您必须将修改部分开源在主流开源平台(如gitee<https://gitee.com/>或github<https://github.com/>等)。您必须保留该许可证,但您可以追加其他许可证(不包括不支持附加条款的许可证)。当您添加的许可证中的条款与该许可证冲突时,必须以该许可证为准。
|
5. 如果您修改了该软件中的任何内容,您必须将修改部分开源在主流开源平台(如gitee<https://gitee.com/>或github<https://github.com/>等)。
|
||||||
6. 该软件在提供时不带任何明示或默示的担保。在任何情况下,版权所有者不对任何人因使用该软件而引发的任何直接或间接损失承担任何责任。
|
6. 如果您修改了该软件中的任何内容,您必须保留该许可协议,但您可以追加其他许可协议(不包括不支持附加条款的许可协议)。当您添加的许可协议中的条款与该许可协议冲突时,必须以该许可协议为准。
|
||||||
|
7. 该软件在提供时不带任何明示或默示的担保。在任何情况下,版权所有者不对任何人因使用该软件而引发的任何直接或间接损失承担任何责任。
|
260
README.md
260
README.md
@ -1,148 +1,112 @@
|
|||||||
# FZ-sDataPack
|
# FZ生存数据包 v3.1
|
||||||
|
|
||||||
一个Minecraft数据包
|
为FZ服务器写的Minecraft生存辅助数据包
|
||||||
|
|
||||||
[![mc版本](https://img.shields.io/badge/Minecraft-1.16+-blue.svg)](https://minecraft.net/)
|
[![数据包版本](https://img.shields.io/badge/正式版-3.1.7-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases) [![MC版本](https://img.shields.io/badge/Minecraft-1.20+-blue.svg)](https://minecraft.net/)
|
||||||
[![carpet](https://img.shields.io/badge/fabric_carpet-1.4.24+-blue.svg)](https://github.com/gnembon/fabric-carpet/releases)
|
|
||||||
|
> 其他版本见[发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases)
|
||||||
#### @Author: Harvey_Husky
|
|
||||||
|
## 安装教程
|
||||||
#### Copyright (C) 2019-2022 Harvey_Husky
|
|
||||||
|
1. 兼容性
|
||||||
[Bilibili专栏](https://www.bilibili.com/read/cv4267319)(年久失修)
|
- `数据包 v3.1.x` 支持 `Minecraft 1.20-1.21`
|
||||||
|
- `数据包 v3.0.x` 支持 `Minecraft 1.18.2-1.19.x` (不再维护)
|
||||||
## 说明太长不想看·直接安装教程
|
2. 前往[发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases)下载对应MC版本的数据包
|
||||||
|
3. 将数据包 `zip` 文件放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`)
|
||||||
- 1.需要 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod **1.4.24** 或以上版本
|
4. (可选)下载并安装 [Carpet Mod](https://github.com/gnembon/fabric-carpet/releases)
|
||||||
- 2.**兼容性**
|
5. (可选)从数据包 `zip` 文件的 `scripts` 目录中解压 `.sc` 文件,将其放入 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts` )
|
||||||
- `数据包 v2.2.x` 支持 `Minecraft 1.19+`
|
- **注意:如果未正确安装该脚本,数据包会强制禁用 carpet mod 的 `player` 命令以避免假人污染记分板,需要在安装好脚本后手动启用 `player` 命令**
|
||||||
- `数据包 v2.1.x` 支持 `Minecraft 1.17.x-1.18.x`
|
6. 执行 `reload` 指令(或重新打开存档;在一些第三方服务端中可能需要改为`/minecraft:reload`)
|
||||||
- `数据包 v2.0.x` 支持 `Minecraft 1.16.3-1.16.5`
|
|
||||||
- 3.前往 [发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases) 下载此数据包
|
## 功能
|
||||||
- 4.从zip文件中挑选你需要的`.sc`文件
|
|
||||||
- 5.在`world`文件夹中创建`datapacks`和`scripts`两个文件夹
|
### 交互器
|
||||||
- 6.将主体`zip`文件放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`)
|
|
||||||
- 7.将挑选出来的`.sc`文件放到 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts`)
|
- 抬头90°并蹲起,或执行 `/trigger fzsd.module.interactor.trigger` 指令唤出交互器
|
||||||
- 8.在控制台输入`/reload`(客户端则是重新进入世界)
|
|
||||||
|
### 计分板
|
||||||
## 总览
|
|
||||||
|
- 提供下列计分板:
|
||||||
[![release版本](https://img.shields.io/badge/发行版-2.2.0-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases/2.2.0)
|
|
||||||
|
| 默认名称 | 计分板 ID |
|
||||||
![设置界面]()
|
| :------: | :----------------------------------------------: |
|
||||||
|
| 总览 | fzsd.module.scoreboard.display.general |
|
||||||
- 抬头并按一下 `Shift` 来打开设置界面
|
| 活跃度 | fzsd.module.scoreboard.display.activation |
|
||||||
|
| 飞行距离 | fzsd.module.scoreboard.display.aviating_distance |
|
||||||
- 提供玩家挖掘、死亡、击杀、受伤、交易、钓鱼、滑翔和(破基岩)的数据榜单
|
| 抖M榜 | fzsd.module.scoreboard.display.damage_taken |
|
||||||
|
| 死亡榜 | fzsd.module.scoreboard.display.death_count |
|
||||||
- 提供扫地机
|
| 挖掘榜 | fzsd.module.scoreboard.display.dig_count |
|
||||||
|
| 钓鱼榜 | fzsd.module.scoreboard.display.fishing_count |
|
||||||
- 无需配置即可支持该铁头功破基岩榜 Mod:[FZ-BBL](https://gitee.com/harvey-husky/FZ-BBL/releases)
|
| 击杀榜 | fzsd.module.scoreboard.display.kill_count |
|
||||||
|
| 放置榜 | fzsd.module.scoreboard.display.placement_count |
|
||||||
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于 0 时显示,以免未添加该 Mod 的服务器显示破基岩榜
|
| 交易榜 | fzsd.module.scoreboard.display.trade_count |
|
||||||
|
|
||||||
- [B站链接](https://www.bilibili.com/read/cv9178207)
|
- 兼容[破基岩榜Mod](https://gitee.com/harvey-husky/yh-bbl)
|
||||||
|
- 安装该Mod后,使用连点器破基岩,破基岩榜将自动显示在交互器页面
|
||||||
- 记分板对照表:
|
|
||||||
|
| 默认名称 | 计分板 ID |
|
||||||
| Object Name | 内容 |
|
| :------: | :----------------------------------------------: |
|
||||||
| - | - |
|
| 破基岩榜 |fzsd.module.scoreboard.display.bedrock_broken_count|
|
||||||
| activation | 活跃时间(h) |
|
|
||||||
| damageTaken | 受伤害榜 |
|
- 系统总览计分板:`fzsd.module.scoreboard.assign.general`
|
||||||
| deathCounter | 死亡榜 |
|
- 可以在在此记分板修改总分数据,下次加分时会刷新显示分数
|
||||||
| digCounter | 挖掘榜 |
|
- 总计分项名称对照表:
|
||||||
| fishingCounter | 钓鱼榜 |
|
|
||||||
| killCounter | 击杀榜 |
|
| 默认名称 | player ID |
|
||||||
| tradingCounter | 交易榜 |
|
| :------: | :----------------------------------------------: |
|
||||||
| totalList | 总 量 |
|
| 总活跃时间 | fzsd.module.scoreboard.total.activation |
|
||||||
| bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) | [破基岩榜](https://www.bilibili.com/video/BV1KJ411b73z) |
|
| 总飞行距离 | fzsd.module.scoreboard.total.aviating_distance |
|
||||||
| fz.aviate1m | 滑翔距离 |
|
| 总受伤害数 | fzsd.module.scoreboard.total.damage_taken |
|
||||||
|
| 总死亡数 | fzsd.module.scoreboard.total.death_count |
|
||||||
- 提供一些[地毯脚本](#地毯脚本)(`.sc` 文件):***请在升级数据包的同时替换这些工具!!!***
|
| 总挖掘数 | fzsd.module.scoreboard.total.dig_count |
|
||||||
- 还有一个用于`census`脚本转移数据的python脚本`score_move`
|
| 总钓鱼数 | fzsd.module.scoreboard.total.fishing_count |
|
||||||
|
| 总击杀数 | fzsd.module.scoreboard.total.kill_count |
|
||||||
## 更新记录
|
| 总建造数 | fzsd.module.scoreboard.total.placement_count |
|
||||||
|
| 总交易数 | fzsd.module.scoreboard.total.trade_count |
|
||||||
更新记录可在[此处](./CHANGELOG.md)找到
|
|
||||||
|
### 地毯脚本
|
||||||
## 使用
|
|
||||||
|
- 如果你不知道 Carpet Mod 或 Carpet 脚本,请忽略本节
|
||||||
### 安装
|
- 需要安装 [Carpet Mod](https://github.com/gnembon/fabric-carpet/releases)
|
||||||
|
- 从数据包 `zip` 文件的 `scripts` 目录中解压 `.sc` 文件,将其放入 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts` )
|
||||||
- 需要 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod **1.4.24** 或以上版本
|
- **注意:如果未正确安装该脚本,数据包会强制禁用 carpet mod 的 `player` 命令以避免假人污染记分板,需要在安装好脚本后手动启用 `player` 命令**
|
||||||
|
- 脚本:
|
||||||
- **兼容性**
|
- `fzsd_score.sc`:
|
||||||
- `v2.2.x` 支持 `Minecraft 1.19+`
|
- 可避免Carpet假人污染计分板
|
||||||
- `v2.1.x` 支持 `Minecraft 1.17.x-1.18.x`
|
- 可以标记哪些玩家是假人
|
||||||
- `v2.0.x` 支持 `Minecraft 1.16.3-1.16.5`
|
- 子命令( `/fzsd_score <子命令>` ):
|
||||||
|
- ***使用前请务必备份存档!请报告不符预期的结果***
|
||||||
- 前往 [发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases) 下载此数据包
|
- ***使用前请务必备份存档!请报告不符预期的结果***
|
||||||
|
- ***使用前请务必备份存档!请报告不符预期的结果***
|
||||||
>请下载以 `FZ'sDatapack` 开头的 `.zip` 文件
|
- `updateFrom <version>`:用于从给定的数据包版本恢复计分板数据(需要测试!)
|
||||||
|
- `recalculate`:重新计算所有计分板总分
|
||||||
- **将其放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`)**
|
- `recalculate <scoreboardID>`:重新计算该计分板总分
|
||||||
|
- `set <player> <scoreboardID> <score>`:设置该玩家该计分板的分数
|
||||||
- 载入数据包
|
- `reset <player>`:重置该玩家的所有分数
|
||||||
|
- `reset <player> <scoreboardID>`:重置该玩家该计分板的分数
|
||||||
- 如果是单人存档,请保存并退出,再打开存档
|
- `restore player <玩家名> <计分板ID>`:恢复该玩家的该计分板分数
|
||||||
|
- `restore player <玩家名>`:恢复该玩家的所有计分板分数
|
||||||
- 如果是服务器,可使用 `/reload` 指令或重启服务器以载入数据包
|
- `restore whitelist <计分板ID>`:恢复所有白名单玩家的该计分板分数
|
||||||
|
- `restore whitelist`:恢复所有白名单玩家的所有计分板分数
|
||||||
- 计分板的数据迁移
|
- *副作用:恢复完成后玩家会被放置在出生点,请确保出生点完全安全*
|
||||||
|
- `commandPlayer <permissionType>`:设置player命令权限类型
|
||||||
- 请使用 [restore_scores.sc](#restore_scoressc) 地毯脚本
|
|
||||||
|
### 幻翼预警
|
||||||
## 地毯脚本
|
|
||||||
|
- 首次使用需要先睡一觉
|
||||||
- **以下脚本皆在数据包(`.zip` 文件)中,请将其(`.sc` 文件)提取,并将其放入 `world/scripts` (在客户端位于 `.minecraft/saves/<存档名>/scripts`) **
|
|
||||||
- 可使用 `/reload` 指令或重启服务器以载入脚本(或使用 Carpet Mod 的指令 `/script load <脚本名>` 载入)
|
### 管理员
|
||||||
|
|
||||||
### `here.sc`
|
- 使用`/function admin.fzsd:admin`命令管理(安装、卸载等)各模块
|
||||||
|
|
||||||
- `/here` 向所有人发送自己的位置和所在维度
|
### 其他
|
||||||
|
|
||||||
- 发送的消息使用 [VoxelMap](https://www.curseforge.com/minecraft/mc-mods/voxelmap) 可识别的数组格式
|
- 扫地机
|
||||||
- 安装 [VoxelMap](https://www.curseforge.com/minecraft/mc-mods/voxelmap/files) Mod 后,左键高亮该坐标,`Ctrl+左键` 新建坐标点
|
- 获取当前维度和坐标(以及对应的主世界、下界坐标)(私信/广播)
|
||||||
|
- 获取上次死亡维度和坐标(私信)
|
||||||
### `c.sc`
|
- 获取上次穿出的下界传送门坐标(私信/广播)
|
||||||
|
- 获取上个重生点维度和坐标(私信)
|
||||||
- `/c` 修改玩家模式为旁观模式
|
|
||||||
|
## 开发者相关
|
||||||
### `s.sc`
|
|
||||||
|
- 见[开发文档](/DEVDOC.md)
|
||||||
- `/s` 修改玩家模式为生存模式
|
|
||||||
|
|
||||||
### `tagplayer.sc`
|
|
||||||
|
|
||||||
- 这个工具可以防止将地毯 Mod 生成的假人计入记分板
|
|
||||||
- 可以通过自定义文件名来自定义游戏内命令
|
|
||||||
- 配置文件:
|
|
||||||
- `allow_bot_tp`:用于控制是否允许传送假人
|
|
||||||
- `allow_spawning_whitelist_players`:用于控制是否允许生成白名单内的玩家
|
|
||||||
- 使用方法:
|
|
||||||
- 安装 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod
|
|
||||||
- 输入`/script load tagplayer`加载工具
|
|
||||||
- 包含全部地毯假人自带的功能,如:
|
|
||||||
- `/tagplayer use xxx once`让假人xxx按一次使用键
|
|
||||||
- 包含新功能,如:
|
|
||||||
- `/tagplayer check xxx`:检查玩家的状态
|
|
||||||
- `/tagplayer checkall`:检查所有玩家的状态
|
|
||||||
- `/tagplayer killall`:清除所有假人
|
|
||||||
- 其他用法可以在游戏内输入 `/tagplayer` 查看
|
|
||||||
|
|
||||||
### `restore_scores.sc`
|
|
||||||
|
|
||||||
- 从数据包 `v1.4` 升级时也需要使用这个工具
|
|
||||||
- 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板
|
|
||||||
- 如未开启白名单,请把 `usercache.json` 复制一份改成 `whitelist.json` 再进行操作
|
|
||||||
- ***注意:原有的记分板会被删除***
|
|
||||||
- 使用方法:
|
|
||||||
- 输入 `/script load restore_scores` 加载工具
|
|
||||||
- 输入 `/restore_scores by_whitelist` 开始数据迁移
|
|
||||||
- 输入 `/script unload restore_scores` 卸载工具
|
|
||||||
- 记得用完就删掉它!
|
|
||||||
|
|
||||||
### `Census.sc`
|
|
||||||
|
|
||||||
- `/census`
|
|
||||||
- 一个还在测试的脚本,可以输出挖掘榜
|
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
execute unless data storage fzsd:config fzsd.module.health.display{below_name: 0b} run scoreboard objectives setdisplay below_name fzsd.module.health
|
||||||
|
execute if data storage fzsd:config fzsd.module.health.display{below_name: 0b} run scoreboard objectives setdisplay below_name
|
||||||
|
execute unless data storage fzsd:config fzsd.module.health.display{list: 0b} run scoreboard objectives setdisplay list fzsd.module.health
|
||||||
|
execute if data storage fzsd:config fzsd.module.health.display{list: 0b} run scoreboard objectives setdisplay list
|
||||||
|
|
||||||
|
## 日志
|
||||||
|
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已加载组件:玩家血量显示"}]
|
22
compat_27/data/fzsd/advancements/game_event/on_fished.json
Normal file
22
compat_27/data/fzsd/advancements/game_event/on_fished.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event",
|
||||||
|
"criteria": {
|
||||||
|
"on_fished": {
|
||||||
|
"trigger": "minecraft:fishing_rod_hooked",
|
||||||
|
"conditions": {
|
||||||
|
"player": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"item": {
|
||||||
|
"items": "#fzsd:raw_fishes"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_fished"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event",
|
||||||
|
"criteria": {
|
||||||
|
"on_hurt_entity_with_tools": {
|
||||||
|
"trigger": "minecraft:player_hurt_entity",
|
||||||
|
"conditions": {
|
||||||
|
"player": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:entity_properties",
|
||||||
|
"entity": "this",
|
||||||
|
"predicate": {
|
||||||
|
"equipment": {
|
||||||
|
"mainhand": {
|
||||||
|
"items": "#fzsd:tools"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_hurt_entity_with_tools"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event/on_placed_block",
|
||||||
|
"criteria": {
|
||||||
|
"on_placed_liquid": {
|
||||||
|
"trigger": "minecraft:placed_block",
|
||||||
|
"conditions": {
|
||||||
|
"location": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:location_check",
|
||||||
|
"predicate": {
|
||||||
|
"block": {
|
||||||
|
"blocks": "#fzsd:liquid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_placed_block/on_placed_liquid"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event/on_placed_block",
|
||||||
|
"criteria": {
|
||||||
|
"on_placed_solid": {
|
||||||
|
"trigger": "minecraft:placed_block",
|
||||||
|
"conditions": {
|
||||||
|
"location": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term":
|
||||||
|
{
|
||||||
|
"condition": "minecraft:location_check",
|
||||||
|
"predicate": {
|
||||||
|
"block": {
|
||||||
|
"blocks": "#fzsd:liquid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_placed_block/on_placed_solid"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event",
|
||||||
|
"criteria": {
|
||||||
|
"on_shears_used_on_entity": {
|
||||||
|
"trigger": "minecraft:player_interacted_with_entity",
|
||||||
|
"conditions": {
|
||||||
|
"player": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"entity": {
|
||||||
|
"type": "#fzsd:shearable"
|
||||||
|
},
|
||||||
|
"item": {
|
||||||
|
"items": "#fzsd:tool/shears"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_shears_used_on_entity"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event",
|
||||||
|
"criteria": {
|
||||||
|
"on_tools_exclude_axes_used_on_block": {
|
||||||
|
"trigger": "minecraft:item_used_on_block",
|
||||||
|
"conditions": {
|
||||||
|
"location": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:reference",
|
||||||
|
"name": "fzsd:is_real_player"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:any_of",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:match_tool",
|
||||||
|
"predicate": {
|
||||||
|
"items": "#fzsd:tools_exclude_axes"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:all_of",
|
||||||
|
"terms": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:match_tool",
|
||||||
|
"predicate": {
|
||||||
|
"items": "#fzsd:tool/axes"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:location_check",
|
||||||
|
"predicate": {
|
||||||
|
"__comment": "斧子剥树皮会触发两次,所以用目标方块限定只触发一次",
|
||||||
|
"block": {
|
||||||
|
"blocks": "#fzsd:stripped_blocks"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fzsd:game_event/advancement/on_tools_used_on_block"
|
||||||
|
}
|
||||||
|
}
|
40
data/admin.fzsd/function/admin.mcfunction
Normal file
40
data/admin.fzsd/function/admin.mcfunction
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
tellraw @s {"text": "管理员页面:", "color": "red"}
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "全局:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/reload"}, "hoverEvent": {"action": "show_text", "contents": {"text": "重载", "color": "yellow"}}}, {"text": "重载", "color": "yellow"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:install"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "安装:", "color": "dark_green"}, {"text": "仅安装上次卸载前已安装的模块", "color": "red"}]}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:uninstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "卸载:", "color": "dark_red"}, {"text": "将保留模块安装记录", "color": "red"}]}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:reinstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "重装:", "color": "gold"}, {"text": "可能可以修复一些奇怪问题,", "color": "white"}, {"text": "将保留模块安装记录", "color": "red"}]}}, {"text": "重装", "color": "gold"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_install"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度安装:", "color": "dark_green"}, {"text": "将安装所有模块", "color": "red"}]}}, {"text": "深度安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_uninstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度卸载:", "color": "dark_red"}, {"text": "将清除模块安装记录", "color": "red"}]}}, {"text": "深度卸载", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_reinstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度重装:", "color": "gold"}, {"text": "可能可以修复一些奇怪问题,", "color": "white"}, {"text": "将清除模块安装记录", "color": "red"}]}}, {"text": "深度重装", "color": "gold"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "日志等级:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/fine"}, "hoverEvent": {"action": "show_text", "contents": {"text": "详细", "color": "gray"}}}, {"text": "详细", "color": "gray"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/debug"}, "hoverEvent": {"action": "show_text", "contents": {"text": "调试", "color": "dark_aqua"}}}, {"text": "调试", "color": "dark_aqua"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/info"}, "hoverEvent": {"action": "show_text", "contents": {"text": "信息", "color": "green"}}}, {"text": "信息", "color": "green"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "血量显示:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/health/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/health/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "- 名牌下方:", "color": "gray"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/below_name/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "显示", "color": "dark_green"}}}, {"text": "显示", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/below_name/off"}, "hoverEvent": {"action": "show_text", "contents": {"text": "隐藏", "color": "dark_red"}}}, {"text": "隐藏", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "- 玩家列表内:", "color": "gray"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/list/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "显示", "color": "dark_green"}}}, {"text": "显示", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/list/off"}, "hoverEvent": {"action": "show_text", "contents": {"text": "隐藏", "color": "dark_red"}}}, {"text": "隐藏", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "玩家位置:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/here/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/here/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "交互器:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/interactor/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/interactor/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "登录消息:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/join_message/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/join_message/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上一死亡点:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_death/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_death/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上次穿出的下界传送门:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_nether_portal/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_nether_portal/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上一出生点:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_spawn_point/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_spawn_point/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "计分板:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/scoreboard/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/scoreboard/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "扫地机:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/sweeper/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/sweeper/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "幻翼预警:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/phantom_warning/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/phantom_warning/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
@ -0,0 +1 @@
|
|||||||
|
function fzsd:system/carpet/settings_preset
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.below_name set value 0b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.below_name set value 1b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.list set value 0b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.list set value 1b
|
||||||
|
function fzsd:module/health/try_load
|
40
data/admin.fzsd/functions/admin.mcfunction
Normal file
40
data/admin.fzsd/functions/admin.mcfunction
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
tellraw @s {"text": "管理员页面:", "color": "red"}
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "全局:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/reload"}, "hoverEvent": {"action": "show_text", "contents": {"text": "重载", "color": "yellow"}}}, {"text": "重载", "color": "yellow"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:install"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "安装:", "color": "dark_green"}, {"text": "仅安装上次卸载前已安装的模块", "color": "red"}]}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:uninstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "卸载:", "color": "dark_red"}, {"text": "将保留模块安装记录", "color": "red"}]}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:reinstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "重装:", "color": "gold"}, {"text": "可能可以修复一些奇怪问题,", "color": "white"}, {"text": "将保留模块安装记录", "color": "red"}]}}, {"text": "重装", "color": "gold"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_install"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度安装:", "color": "dark_green"}, {"text": "将安装所有模块", "color": "red"}]}}, {"text": "深度安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_uninstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度卸载:", "color": "dark_red"}, {"text": "将清除模块安装记录", "color": "red"}]}}, {"text": "深度卸载", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:deep_reinstall"}, "hoverEvent": {"action": "show_text", "contents": [{"text": "深度重装:", "color": "gold"}, {"text": "可能可以修复一些奇怪问题,", "color": "white"}, {"text": "将清除模块安装记录", "color": "red"}]}}, {"text": "深度重装", "color": "gold"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "日志等级:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/fine"}, "hoverEvent": {"action": "show_text", "contents": {"text": "详细", "color": "gray"}}}, {"text": "详细", "color": "gray"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/debug"}, "hoverEvent": {"action": "show_text", "contents": {"text": "调试", "color": "dark_aqua"}}}, {"text": "调试", "color": "dark_aqua"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function fzsd:logger/level/info"}, "hoverEvent": {"action": "show_text", "contents": {"text": "信息", "color": "green"}}}, {"text": "信息", "color": "green"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "血量显示:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/health/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/health/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "- 名牌下方:", "color": "gray"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/below_name/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "显示", "color": "dark_green"}}}, {"text": "显示", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/below_name/off"}, "hoverEvent": {"action": "show_text", "contents": {"text": "隐藏", "color": "dark_red"}}}, {"text": "隐藏", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "- 玩家列表内:", "color": "gray"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/list/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "显示", "color": "dark_green"}}}, {"text": "显示", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/health/list/off"}, "hoverEvent": {"action": "show_text", "contents": {"text": "隐藏", "color": "dark_red"}}}, {"text": "隐藏", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "玩家位置:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/here/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/here/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "交互器:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/interactor/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/interactor/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "登录消息:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/join_message/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/join_message/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上一死亡点:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_death/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_death/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上次穿出的下界传送门:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_nether_portal/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_nether_portal/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "上一出生点:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_spawn_point/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/last_spawn_point/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "计分板:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/scoreboard/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/scoreboard/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
|
||||||
|
tellraw @s [{"text": "扫地机:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/sweeper/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/sweeper/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
||||||
|
|
||||||
|
tellraw @s [{"text": "幻翼预警:"}, [{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/phantom_warning/install"}, "hoverEvent": {"action": "show_text", "contents": {"text": "安装", "color": "dark_green"}}}, {"text": "安装", "color": "dark_green"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/function #fzsd:module/phantom_warning/uninstall"}, "hoverEvent": {"action": "show_text", "contents": {"text": "卸载", "color": "dark_red"}}}, {"text": "卸载", "color": "dark_red"}, {"text": "]"}]]]
|
@ -0,0 +1 @@
|
|||||||
|
function fzsd:system/carpet/settings_preset
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.below_name set value 0b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.below_name set value 1b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.list set value 0b
|
||||||
|
function fzsd:module/health/try_load
|
@ -0,0 +1,2 @@
|
|||||||
|
data modify storage fzsd:config fzsd.module.health.display.list set value 1b
|
||||||
|
function fzsd:module/health/try_load
|
@ -1,244 +0,0 @@
|
|||||||
{
|
|
||||||
"criteria": {
|
|
||||||
"used_tools": {
|
|
||||||
"trigger": "minecraft:tick",
|
|
||||||
"conditions": {
|
|
||||||
"player": [
|
|
||||||
{
|
|
||||||
"condition": "minecraft:alternative",
|
|
||||||
"terms": [
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedWooShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedWooPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedWooHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedWooAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedStoShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedStoPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedStoHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedStoAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedNetShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedNetPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedNetHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedNetAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedIroShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedIroPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedIroHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedIroAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedGolShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedGolPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedGolHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedGolAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedDiaShovel": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedDiaPickaxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedDiaHoe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedDiaAxe": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"scores": {
|
|
||||||
"usedShears": {
|
|
||||||
"min": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entity": "this"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fz:scoreboards/digcounter/digtrigger"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,58 +0,0 @@
|
|||||||
{
|
|
||||||
"criteria": {
|
|
||||||
"right_click_tools": {
|
|
||||||
"trigger": "minecraft:item_used_on_block",
|
|
||||||
"conditions": {
|
|
||||||
"item": {
|
|
||||||
"items": [
|
|
||||||
"golden_axe",
|
|
||||||
"golden_hoe",
|
|
||||||
"golden_shovel",
|
|
||||||
"wooden_axe",
|
|
||||||
"wooden_hoe",
|
|
||||||
"wooden_shovel",
|
|
||||||
"diamond_axe",
|
|
||||||
"diamond_hoe",
|
|
||||||
"diamond_shovel",
|
|
||||||
"iron_axe",
|
|
||||||
"iron_hoe",
|
|
||||||
"iron_shovel",
|
|
||||||
"stone_axe",
|
|
||||||
"stone_hoe",
|
|
||||||
"stone_shovel",
|
|
||||||
"netherite_axe",
|
|
||||||
"netherite_hoe",
|
|
||||||
"netherite_shovel"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"location": {
|
|
||||||
"block": {
|
|
||||||
"blocks": [
|
|
||||||
"dirt_path",
|
|
||||||
"farmland",
|
|
||||||
"oak_log",
|
|
||||||
"stripped_birch_log",
|
|
||||||
"stripped_acacia_log",
|
|
||||||
"stripped_jungle_log",
|
|
||||||
"stripped_spruce_log",
|
|
||||||
"stripped_dark_oak_log",
|
|
||||||
"stripped_warped_stem",
|
|
||||||
"stripped_crimson_stem",
|
|
||||||
"stripped_oak_wood",
|
|
||||||
"stripped_birch_wood",
|
|
||||||
"stripped_acacia_wood",
|
|
||||||
"stripped_jungle_wood",
|
|
||||||
"stripped_spruce_wood",
|
|
||||||
"stripped_dark_oak_wood",
|
|
||||||
"stripped_warped_hyphae",
|
|
||||||
"stripped_crimson_hyphae"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fz:scoreboards/digcounter/toolsfix"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"criteria": {
|
|
||||||
"tools_hit_entities": {
|
|
||||||
"trigger": "minecraft:player_hurt_entity",
|
|
||||||
"conditions": {
|
|
||||||
"player": [
|
|
||||||
{
|
|
||||||
"condition": "minecraft:entity_properties",
|
|
||||||
"entity": "this",
|
|
||||||
"predicate": {
|
|
||||||
"equipment": {
|
|
||||||
"mainhand": {
|
|
||||||
"items": [
|
|
||||||
"iron_axe",
|
|
||||||
"stone_axe",
|
|
||||||
"golden_axe",
|
|
||||||
"wooden_axe",
|
|
||||||
"diamond_axe",
|
|
||||||
"netherite_axe",
|
|
||||||
"iron_shovel",
|
|
||||||
"stone_shovel",
|
|
||||||
"golden_shovel",
|
|
||||||
"wooden_shovel",
|
|
||||||
"diamond_shovel",
|
|
||||||
"netherite_shovel",
|
|
||||||
"iron_hoe",
|
|
||||||
"stone_hoe",
|
|
||||||
"golden_hoe",
|
|
||||||
"wooden_hoe",
|
|
||||||
"diamond_hoe",
|
|
||||||
"netherite_hoe",
|
|
||||||
"iron_pickaxe",
|
|
||||||
"stone_pickaxe",
|
|
||||||
"golden_pickaxe",
|
|
||||||
"wooden_pickaxe",
|
|
||||||
"diamond_pickaxe",
|
|
||||||
"netherite_pickaxe"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {"function": "fz:scoreboards/digcounter/toolsfix2"}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"criteria": {
|
|
||||||
"trading_counter": {
|
|
||||||
"trigger": "minecraft:villager_trade",
|
|
||||||
"conditions": {
|
|
||||||
"player": [
|
|
||||||
{
|
|
||||||
"condition": "minecraft:inverted",
|
|
||||||
"term": {
|
|
||||||
"condition": "minecraft:entity_scores",
|
|
||||||
"entity": "this",
|
|
||||||
"scores": {
|
|
||||||
"carpetBot": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fz:scoreboards/tradingcounter/calculator"
|
|
||||||
}
|
|
||||||
}
|
|
@ -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:survival installed{sweeper: 1b} as @a if score @s config matches 1478966200..1478966217 run function fz:sweeper/config/trigger
|
|
||||||
execute if data storage fz:survival 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,12 +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}
|
|
||||||
schedule function fz:config/timeout 300s replace
|
|
||||||
#将该玩家加入打开设置页面的玩家的列表
|
|
||||||
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,2,0]
|
|
||||||
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"}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user