Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c276806d36 | |||
| eaea64cd2d | |||
| 40ccee8f9c | |||
| a80d141be2 | |||
| d096df4784 | |||
| 24290e4c2d | |||
| ae6173aa65 | |||
| a474384b89 | |||
| 8a847cf1a5 | |||
| 91719e8760 | |||
| a86e91b6c2 | |||
| 9c8ccb2c0f | |||
| e944acbbcf | |||
| 04031715a3 | |||
| 3ec5ddaea0 | |||
| 919c4c0daa | |||
| 447fb22652 | |||
| 83d1a51093 | |||
| ab9137fb9c | |||
| 7177cde508 | |||
| b259706807 |
Vendored
-41
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
# 开发文档
|
|
||||||
|
|
||||||
## 指引
|
|
||||||
|
|
||||||
- `函数`,指数据包`<命名空间>/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)
|
|
||||||
|
|
||||||
#### 注册交互器按钮
|
|
||||||
|
|
||||||
- 见[交互器按钮](#按钮操作)
|
|
||||||
@@ -1,20 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
FZSD许可协议
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
2023/6/6 https://gitee.com/harvey-husky/fz-survival-datapack/blob/dev/3.0/LICENSE
|
Preamble
|
||||||
|
|
||||||
版权所有 © 2019-2023 延皓<https://gitee.com/harvey-husky><https://space.bilibili.com/677233356>
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
定义:
|
The licenses for most software and other practical works are designed
|
||||||
“该许可协议”指FZSD许可协议。
|
to take away your freedom to share and change the works. By contrast,
|
||||||
“该软件”指许可在该许可协议下的程序和相关文档的集合。
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
“官方网址”指由版权所有者提供的该软件的发布网址。
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
您对该软件的复制、使用、修改及分发受如下条款的约束:
|
When we speak of free software, we are referring to freedom, not
|
||||||
1. 禁止添加、修改或删除该许可协议的内容。
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
2. 禁止未经授权的转载、销售或二次发布该软件。
|
have the freedom to distribute copies of free software (and charge for
|
||||||
3. 禁止添加、修改或抹除该软件中的原作者署名。
|
them if you wish), that you receive source code or can get it if you
|
||||||
4. 如果您从部署了该软件的Minecraft服务器中以任何方式获取了收益,则您必须在游戏中的明显位置明确告知用户您的Minecraft服务器使用了该软件,并附上该软件的官方网址。
|
want it, that you can change the software or use pieces of it in new
|
||||||
5. 如果您修改了该软件中的任何内容,您必须将修改部分开源在主流开源平台(如gitee<https://gitee.com/>或github<https://github.com/>等)。
|
free programs, and that you know you can do these things.
|
||||||
6. 如果您修改了该软件中的任何内容,您必须保留该许可协议,但您可以追加其他许可协议(不包括不支持附加条款的许可协议)。当您添加的许可协议中的条款与该许可协议冲突时,必须以该许可协议为准。
|
|
||||||
7. 该软件在提供时不带任何明示或默示的担保。在任何情况下,版权所有者不对任何人因使用该软件而引发的任何直接或间接损失承担任何责任。
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
|
|||||||
@@ -1,112 +1,129 @@
|
|||||||
# FZ生存数据包 v3.1
|
# FZ-sDataPack
|
||||||
|
A Minecraft Datapack
|
||||||
|
#### @Author: Harvey_Husky
|
||||||
|
|
||||||
为FZ服务器写的Minecraft生存辅助数据包
|
#### This project is licensed under the terms of the GNU General Public License v3.0.
|
||||||
|
#### Copyright (C)2019-2021 Harvey_Husky
|
||||||
|
[B站链接](https://www.bilibili.com/read/cv4267319)
|
||||||
|
## 总览
|
||||||
|
|
||||||
[](https://gitee.com/harvey-husky/FZ-sDatapack/releases) [](https://minecraft.net/)
|
- 抬头并按一下shift来打开设置界面
|
||||||
|
- 提供玩家挖掘、死亡、击杀、受伤、交易、钓鱼、滑翔、(破基岩)数据的榜单
|
||||||
|
- 提供扫地机
|
||||||
|
- 配套的无需配置即可支持该铁头功破基岩榜Mod:[FZ-BBL](https://gitee.com/harvey-husky/FZ-BBL/releases)
|
||||||
|
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
|
||||||
|
- 记分板对照表:
|
||||||
|
| Object Name | 内容 |
|
||||||
|
| ----------- | ---- |
|
||||||
|
| activation | 活跃时间(h) |
|
||||||
|
| damageTaken | 受伤害榜 |
|
||||||
|
| deathCounter | 死亡榜 |
|
||||||
|
| digCounter | 挖掘榜 |
|
||||||
|
| fishingCounter | 钓鱼榜 |
|
||||||
|
| killCounter | 击杀榜 |
|
||||||
|
| tradingCounter | 交易榜 |
|
||||||
|
| totalList | 总 量 |
|
||||||
|
| bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) | [铁头功破基岩](https://www.bilibili.com/video/BV1KJ411b73z) |
|
||||||
|
| fz.aviate1m | 滑翔距离 |
|
||||||
|
- 提供一些地毯脚本(.sc文件):***请在升级数据包的同时替换这些工具!!***
|
||||||
|
- 安装方法:
|
||||||
|
- 需要[carpet mod](https://github.com/gnembon/fabric-carpet/releases) 1.4.24+
|
||||||
|
- 将其放入`world/scripts`中(在客户端位于`.minecraft/saves/存档名/scripts`或`.minecraft/config/carpet/scripts`)
|
||||||
|
### `here.sc`:
|
||||||
|
- `/here`向所有人发送自己的位置和所在维度
|
||||||
|
- 发送的消息使用voxelmap可识别的数组格式
|
||||||
|
- 安装[voxelmap mod](https://www.curseforge.com/minecraft/mc-mods/voxelmap/files)后,左键高亮该坐标,ctrl+左键新建坐标点
|
||||||
|
### `c.sc`
|
||||||
|
- `/c`修改玩家模式为旁观模式
|
||||||
|
### `s.sc`
|
||||||
|
- `/s`修改玩家模式为生存模式
|
||||||
|
### `tagplayer.sc`:
|
||||||
|
- [B站链接](https://www.bilibili.com/read/cv9178207)
|
||||||
|
- 这个工具可以防止将地毯mod生成的假人计入记分板
|
||||||
|
- 可以通过自定义文件名来自定义游戏内命令
|
||||||
|
- 配置文件:
|
||||||
|
- `allow_bot_tp`:用于控制是否允许tp假人
|
||||||
|
- `allow_spawning_whitelist_players`:用于控制是否允许生成白名单内的玩家
|
||||||
|
- 使用方法:
|
||||||
|
- 安装[carpet mod](https://github.com/gnembon/fabric-carpet/releases)
|
||||||
|
- 输入`/script load tagplayer`加载工具
|
||||||
|
- 包含全部地毯假人自带的功能,如:
|
||||||
|
- `/tagplayer use xxx once`让假人xxx按一次使用键
|
||||||
|
- 包含新功能,如:
|
||||||
|
- `/tagplayer check xxx`:检查玩家的状态
|
||||||
|
- `/tagplayer checkall`:检查所有玩家的状态
|
||||||
|
- `/tagplayer killall`:清除所有假人
|
||||||
|
- 其他用法可以在游戏内输入`/tagplayer`查看
|
||||||
|
|
||||||
> 其他版本见[发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases)
|
### `restore_scores.sc`:
|
||||||
|
- 从数据包1.4升级时也需要使用这个工具
|
||||||
|
- 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板
|
||||||
|
- 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦
|
||||||
|
- *注意:原有的记分板会被删除*
|
||||||
|
- 使用方法:
|
||||||
|
- 输入`/script load restore_scores`加载工具
|
||||||
|
- 输入`/restore_scores by_whitelist`开始恢复
|
||||||
|
- 输入`/script unload restore_scores`卸载工具
|
||||||
|
- 记得用完就删掉它!
|
||||||
|
|
||||||
## 安装教程
|
### 更新日志
|
||||||
|
- v2.1.x支持Minecraft1.17+
|
||||||
1. 兼容性
|
- v2.0.x支持Minecraft1.16.3-1.16.5
|
||||||
- `数据包 v3.1.x` 支持 `Minecraft 1.20-1.21`
|
##### v2.1.2/2.0.10
|
||||||
- `数据包 v3.0.x` 支持 `Minecraft 1.18.2-1.19.x` (不再维护)
|
- 添加鞘翅滑翔距离榜单
|
||||||
2. 前往[发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases)下载对应MC版本的数据包
|
##### v2.1.0
|
||||||
3. 将数据包 `zip` 文件放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`)
|
- 仅支持1.17+
|
||||||
4. (可选)下载并安装 [Carpet Mod](https://github.com/gnembon/fabric-carpet/releases)
|
- 修复使用部分工具和方块交互时挖掘榜会减分的bug
|
||||||
5. (可选)从数据包 `zip` 文件的 `scripts` 目录中解压 `.sc` 文件,将其放入 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts` )
|
- 为榜单恢复插件新增新版本的新方块
|
||||||
- **注意:如果未正确安装该脚本,数据包会强制禁用 carpet mod 的 `player` 命令以避免假人污染记分板,需要在安装好脚本后手动启用 `player` 命令**
|
##### v2.0.8
|
||||||
6. 执行 `reload` 指令(或重新打开存档;在一些第三方服务端中可能需要改为`/minecraft:reload`)
|
- 修复在末地使用/here时,世界名称显示为世界id的bug
|
||||||
|
- 修复tagplayer可以随意传送玩家的bug
|
||||||
## 功能
|
- 修复记分板轮播时不显示击杀榜的bug
|
||||||
|
- 修复没有破基岩榜时依然会轮播破基岩榜的bug
|
||||||
### 交互器
|
- 为/tagplayer tp指令添加了配置文件
|
||||||
|
##### v2.0.3
|
||||||
- 抬头90°并蹲起,或执行 `/trigger fzsd.module.interactor.trigger` 指令唤出交互器
|
- 修复在不添加tagplayer工具时记分板不加分的bug
|
||||||
|
##### v2.0.2
|
||||||
### 计分板
|
- 修复在使用carpet-1.4.22或以上版本时,tagplayer的玩家名错乱的bug
|
||||||
|
##### v2.0.1.8
|
||||||
- 提供下列计分板:
|
- 修复使用金斧头挖掘会导致总量+2的bug
|
||||||
|
- 修复使用金锄头挖掘不会给挖掘榜加分
|
||||||
| 默认名称 | 计分板 ID |
|
- 修复主手有铲子,斧头,锄头时,副手放置方块会导致挖掘榜-1的bug(原版bug,通过toolsfix2成就修复)
|
||||||
| :------: | :----------------------------------------------: |
|
##### v2.0.1.7
|
||||||
| 总览 | fzsd.module.scoreboard.display.general |
|
- 修复有时设置界面打不开的bug
|
||||||
| 活跃度 | fzsd.module.scoreboard.display.activation |
|
- 修复交易榜只加一次分的bug..
|
||||||
| 飞行距离 | fzsd.module.scoreboard.display.aviating_distance |
|
- 修复tagplayer中的事件多次触发的bug
|
||||||
| 抖M榜 | fzsd.module.scoreboard.display.damage_taken |
|
##### v2.0.1.6
|
||||||
| 死亡榜 | fzsd.module.scoreboard.display.death_count |
|
- tagplayer现在可以通过自定义文件名来自定义游戏内命令
|
||||||
| 挖掘榜 | fzsd.module.scoreboard.display.dig_count |
|
- 修复铁制工具依然不统计记分板的bug...
|
||||||
| 钓鱼榜 | fzsd.module.scoreboard.display.fishing_count |
|
##### v2.0.1.3
|
||||||
| 击杀榜 | fzsd.module.scoreboard.display.kill_count |
|
- 修复部分铁质工具不统计挖掘榜的bug
|
||||||
| 放置榜 | fzsd.module.scoreboard.display.placement_count |
|
##### v2.0.1.1
|
||||||
| 交易榜 | fzsd.module.scoreboard.display.trade_count |
|
- 为设置界面的计分板添加悬浮文本
|
||||||
|
- 无需配置即可支持该铁头功破基岩榜Mod:https://gitee.com/harvey-husky/FZ-BBL/releases
|
||||||
- 兼容[破基岩榜Mod](https://gitee.com/harvey-husky/yh-bbl)
|
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
|
||||||
- 安装该Mod后,使用连点器破基岩,破基岩榜将自动显示在交互器页面
|
##### v2.0.0.11
|
||||||
|
- `/tagplayer spawn xxx`后面现在可以追加`at`、`facing`、`in`参数
|
||||||
| 默认名称 | 计分板 ID |
|
##### v2.0.0.10
|
||||||
| :------: | :----------------------------------------------: |
|
- 扫地机添加了位于怪物血条栏的文字提示,同时添加了各种提示的开关功能
|
||||||
| 破基岩榜 |fzsd.module.scoreboard.display.bedrock_broken_count|
|
##### v2.0.0.9
|
||||||
|
- 修复矿车白名单状态反了的bug
|
||||||
- 系统总览计分板:`fzsd.module.scoreboard.assign.general`
|
##### v2.0.0.8
|
||||||
- 可以在在此记分板修改总分数据,下次加分时会刷新显示分数
|
- 添加c.sc、s.sc、here.sc工具
|
||||||
- 总计分项名称对照表:
|
##### v2.0.0.7
|
||||||
|
- tagplayer添加了新版carpet新指令,可以为假人切换热键栏
|
||||||
| 默认名称 | player ID |
|
- 现在tagplayer需要carpet1.4.21或以上版本运行!
|
||||||
| :------: | :----------------------------------------------: |
|
- 现在tagplayer可以给自己设置动作了
|
||||||
| 总活跃时间 | fzsd.module.scoreboard.total.activation |
|
- 添加`/tagplayer shadow`指令将自己变为前缀为`挂机`的假人
|
||||||
| 总飞行距离 | fzsd.module.scoreboard.total.aviating_distance |
|
##### v2.0.0.6
|
||||||
| 总受伤害数 | fzsd.module.scoreboard.total.damage_taken |
|
- 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug
|
||||||
| 总死亡数 | fzsd.module.scoreboard.total.death_count |
|
##### v2.0.0.5
|
||||||
| 总挖掘数 | fzsd.module.scoreboard.total.dig_count |
|
- 修复挖掘榜部分工具不起作用的bug
|
||||||
| 总钓鱼数 | fzsd.module.scoreboard.total.fishing_count |
|
- 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板
|
||||||
| 总击杀数 | fzsd.module.scoreboard.total.kill_count |
|
##### v2.0.0.4
|
||||||
| 总建造数 | fzsd.module.scoreboard.total.placement_count |
|
- 添加彩色字体
|
||||||
| 总交易数 | fzsd.module.scoreboard.total.trade_count |
|
##### v2.0.0.3
|
||||||
|
- tagplayer需要地毯mod1.4.18或以上版本来运行
|
||||||
### 地毯脚本
|
- 优化了tagplayer体验及修复若干bug
|
||||||
|
##### v2.0.0.2
|
||||||
- 如果你不知道 Carpet Mod 或 Carpet 脚本,请忽略本节
|
- 重写
|
||||||
- 需要安装 [Carpet Mod](https://github.com/gnembon/fabric-carpet/releases)
|
|
||||||
- 从数据包 `zip` 文件的 `scripts` 目录中解压 `.sc` 文件,将其放入 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts` )
|
|
||||||
- **注意:如果未正确安装该脚本,数据包会强制禁用 carpet mod 的 `player` 命令以避免假人污染记分板,需要在安装好脚本后手动启用 `player` 命令**
|
|
||||||
- 脚本:
|
|
||||||
- `fzsd_score.sc`:
|
|
||||||
- 可避免Carpet假人污染计分板
|
|
||||||
- 可以标记哪些玩家是假人
|
|
||||||
- 子命令( `/fzsd_score <子命令>` ):
|
|
||||||
- ***使用前请务必备份存档!请报告不符预期的结果***
|
|
||||||
- ***使用前请务必备份存档!请报告不符预期的结果***
|
|
||||||
- ***使用前请务必备份存档!请报告不符预期的结果***
|
|
||||||
- `updateFrom <version>`:用于从给定的数据包版本恢复计分板数据(需要测试!)
|
|
||||||
- `recalculate`:重新计算所有计分板总分
|
|
||||||
- `recalculate <scoreboardID>`:重新计算该计分板总分
|
|
||||||
- `set <player> <scoreboardID> <score>`:设置该玩家该计分板的分数
|
|
||||||
- `reset <player>`:重置该玩家的所有分数
|
|
||||||
- `reset <player> <scoreboardID>`:重置该玩家该计分板的分数
|
|
||||||
- `restore player <玩家名> <计分板ID>`:恢复该玩家的该计分板分数
|
|
||||||
- `restore player <玩家名>`:恢复该玩家的所有计分板分数
|
|
||||||
- `restore whitelist <计分板ID>`:恢复所有白名单玩家的该计分板分数
|
|
||||||
- `restore whitelist`:恢复所有白名单玩家的所有计分板分数
|
|
||||||
- *副作用:恢复完成后玩家会被放置在出生点,请确保出生点完全安全*
|
|
||||||
- `commandPlayer <permissionType>`:设置player命令权限类型
|
|
||||||
|
|
||||||
### 幻翼预警
|
|
||||||
|
|
||||||
- 首次使用需要先睡一觉
|
|
||||||
|
|
||||||
### 管理员
|
|
||||||
|
|
||||||
- 使用`/function admin.fzsd:admin`命令管理(安装、卸载等)各模块
|
|
||||||
|
|
||||||
### 其他
|
|
||||||
|
|
||||||
- 扫地机
|
|
||||||
- 获取当前维度和坐标(以及对应的主世界、下界坐标)(私信/广播)
|
|
||||||
- 获取上次死亡维度和坐标(私信)
|
|
||||||
- 获取上次穿出的下界传送门坐标(私信/广播)
|
|
||||||
- 获取上个重生点维度和坐标(私信)
|
|
||||||
|
|
||||||
## 开发者相关
|
|
||||||
|
|
||||||
- 见[开发文档](/DEVDOC.md)
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
__config() -> {
|
||||||
|
'stay_loaded' -> true
|
||||||
|
};
|
||||||
|
__command() -> (
|
||||||
|
run('gamemode spectator');
|
||||||
|
run('execute at @s run tp @s ~ ~0.2 ~')
|
||||||
|
)
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
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": "已加载组件:玩家血量显示"}]
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"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:placed_liquid_ignore"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fzsd:game_event/advancement/on_placed_block/on_placed_liquid"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"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:placed_liquid_ignore"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fzsd:game_event/advancement/on_placed_block/on_placed_solid"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
tag @s add fzsd.admin
|
|
||||||
|
|
||||||
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 admin.fzsd:module/fake_player_prefix/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "启用假人前缀", "color": "green"}}}, {"text": "启用", "color": "green"}, {"text": "]"}],[{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/fake_player_prefix/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: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/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/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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm here set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm here"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_death set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_death"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_nether_portal set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_nether_portal"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_spawn_point set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_spawn_point"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm scoreboard set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm scoreboard"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm sweeper set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm sweeper"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "]"}]]]
|
|
||||||
## [权限管理]
|
|
||||||
tellraw @s ["- 权限:",[{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm phantom_warning set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm phantom_warning"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"text": "]"}]]]
|
|
||||||
|
|
||||||
|
|
||||||
tellraw @s {"text": "已为您添加管理员标签“fzsd.admin”,使用“/tag <player> add fzsd.admin”为其他人添加“仅管理员”功能的使用权限", "color": "white"}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
function fzsd:system/carpet/settings_preset
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
team modify fzsd.module.scoreboard.fake prefix ""
|
|
||||||
team modify fzsd.module.scoreboard.shadow prefix ""
|
|
||||||
data modify storage fzsd:config fzsd.module.scoreboard.fake_player_prefix set value false
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
team modify fzsd.module.scoreboard.fake prefix "假的"
|
|
||||||
team modify fzsd.module.scoreboard.shadow prefix "挂机"
|
|
||||||
data modify storage fzsd:config fzsd.module.scoreboard.fake_player_prefix set value true
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.below_name set value 0b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.below_name set value 1b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.list set value 0b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.list set value 1b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
tag @s add fzsd.admin
|
|
||||||
|
|
||||||
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 admin.fzsd:module/fake_player_prefix/on"}, "hoverEvent": {"action": "show_text", "contents": {"text": "启用假人前缀", "color": "green"}}}, {"text": "启用", "color": "green"}, {"text": "]"}],[{"text": "[", "clickEvent": {"action": "run_command", "value": "/function admin.fzsd:module/fake_player_prefix/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: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/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/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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm here set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm here"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_death set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_death"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_nether_portal set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_nether_portal"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm last_spawn_point set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm last_spawn_point"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm scoreboard set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm scoreboard"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm sweeper set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm sweeper"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"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": "]"}]]]
|
|
||||||
## [权限管理]
|
|
||||||
tellraw @s ["- 权限:",[{"text": "", "color": "dark_gray"}, [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data modify storage fzsd:perm phantom_warning set value 1"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为仅管理员", "color": "white"}}}, {"text": "仅管理员", "color": "white"}, {"text": "]"}], [{"text": "[", "clickEvent": {"action": "run_command", "value": "/data remove storage fzsd:perm phantom_warning"}, "hoverEvent": {"action": "show_text", "contents": {"text": "设为全体玩家", "color": "white"}}}, {"text": "全体玩家", "color": "white"}, {"text": "]"}]]]
|
|
||||||
|
|
||||||
|
|
||||||
tellraw @s {"text": "已为您添加管理员标签“fzsd.admin”,使用“/tag <player> add fzsd.admin”为其他人添加“仅管理员”功能的使用权限", "color": "white"}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
function fzsd:system/carpet/settings_preset
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
team modify fzsd.module.scoreboard.fake prefix ""
|
|
||||||
team modify fzsd.module.scoreboard.shadow prefix ""
|
|
||||||
data modify storage fzsd:config fzsd.module.scoreboard.fake_player_prefix set value true
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
team modify fzsd.module.scoreboard.fake prefix ""
|
|
||||||
team modify fzsd.module.scoreboard.shadow prefix ""
|
|
||||||
data modify storage fzsd:config fzsd.module.scoreboard.fake_player_prefix set value false
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.below_name set value 0b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.below_name set value 1b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.list set value 0b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
data modify storage fzsd:config fzsd.module.health.display.list set value 1b
|
|
||||||
function fzsd:module/health/try_load
|
|
||||||
+1
-9
@@ -1,14 +1,9 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_sneak": {
|
"config_check_sneak":{
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
{
|
|
||||||
"condition": "minecraft:reference",
|
|
||||||
"name": "fzsd:is_real_player"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"condition": "minecraft:entity_properties",
|
"condition": "minecraft:entity_properties",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
@@ -21,8 +16,5 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"rewards": {
|
|
||||||
"function": "fzsd:game_event/advancement/on_sneak"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+7
-13
@@ -1,26 +1,20 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event/on_sneak",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_unsneak": {
|
"config_check_sneak":{
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
{
|
|
||||||
"condition": "minecraft:reference",
|
|
||||||
"name": "fzsd:is_real_player"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"condition": "minecraft:entity_properties",
|
"condition": "minecraft:entity_properties",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"predicate": {
|
"predicate": {
|
||||||
|
"player": {
|
||||||
|
"advancements": {
|
||||||
|
"fz:config/sneak": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"flags": {
|
"flags": {
|
||||||
"is_sneaking": false
|
"is_sneaking": false
|
||||||
},
|
|
||||||
"type_specific": {
|
|
||||||
"type": "player",
|
|
||||||
"advancements": {
|
|
||||||
"fzsd:game_event/on_sneak": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,6 +23,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_unsneak"
|
"function": "fz:config/unsneak"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+4
-5
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_login": {
|
"leave_game": {
|
||||||
"trigger": "tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
{
|
{
|
||||||
@@ -11,7 +10,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.event.leave_game": {
|
"leaveGame": {
|
||||||
"max": 0
|
"max": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,6 +21,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_login"
|
"function": "fz:login/onlogin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"criteria": {
|
||||||
|
"activation": {
|
||||||
|
"trigger": "minecraft:tick",
|
||||||
|
"conditions": {
|
||||||
|
"player": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:entity_scores",
|
||||||
|
"entity": "this",
|
||||||
|
"scores": {
|
||||||
|
"actimeCounter": {
|
||||||
|
"min": 3600
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fz:scoreboards/activation/calculator"
|
||||||
|
}
|
||||||
|
}
|
||||||
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_aviate_one_meter": {
|
"activation": {
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.event.aviating_distance": {
|
"fz.aviateCounter": {
|
||||||
"min": 200
|
"min": 200
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_aviate_one_meter"
|
"function": "fz:scoreboards/aviate1m/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_dead": {
|
"damage_taken": {
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.event.death_count": {
|
"fz.bbl": {
|
||||||
"min": 1
|
"min": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_dead"
|
"function": "fz:scoreboards/bedrockbreaked/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_dead": {
|
"damage_taken": {
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.event.death_count": {
|
"10xDamageTaken": {
|
||||||
"min": 1
|
"min": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_dead"
|
"function": "fz:scoreboards/damagetaken/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"broke_bedrock": {
|
"death_counter": {
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.extra.bbl": {
|
"deathTester": {
|
||||||
"min": 1
|
"min": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd.extra.bbl:event/advancement/broke_bedrock"
|
"function": "fz:scoreboards/deathcounter/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,244 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"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"}
|
||||||
|
}
|
||||||
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"broke_bedrock": {
|
"fishing_counter": {
|
||||||
"trigger": "minecraft:tick",
|
"trigger": "minecraft:tick",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.extra.bbl": {
|
"fishingTester": {
|
||||||
"min": 1
|
"min": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +18,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd.extra.bbl:event/advancement/broke_bedrock"
|
"function": "fz:scoreboards/fishingcounter/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+6
-6
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"parent": "fzsd:game_event",
|
|
||||||
"criteria": {
|
"criteria": {
|
||||||
"on_login": {
|
"kill_counter": {
|
||||||
"trigger": "tick",
|
"trigger": "minecraft:player_killed_entity",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"player": [
|
"player": [
|
||||||
{
|
{
|
||||||
@@ -11,8 +10,9 @@
|
|||||||
"condition": "minecraft:entity_scores",
|
"condition": "minecraft:entity_scores",
|
||||||
"entity": "this",
|
"entity": "this",
|
||||||
"scores": {
|
"scores": {
|
||||||
"fzsd.event.leave_game": {
|
"carpetBot": {
|
||||||
"max": 0
|
"max": 1,
|
||||||
|
"min": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,6 +22,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"function": "fzsd:game_event/advancement/on_login"
|
"function": "fz:scoreboards/killcounter/calculator"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"criteria": {
|
||||||
|
"trading_counter": {
|
||||||
|
"trigger": "minecraft:villager_trade",
|
||||||
|
"conditions": {
|
||||||
|
"player": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:inverted",
|
||||||
|
"term": {
|
||||||
|
"condition": "minecraft:entity_scores",
|
||||||
|
"entity": "this",
|
||||||
|
"scores": {
|
||||||
|
"carpetBot": {
|
||||||
|
"max": 1,
|
||||||
|
"min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "fz:scoreboards/tradingcounter/calculator"
|
||||||
|
}
|
||||||
|
}
|
||||||
+13
-13
@@ -1,18 +1,18 @@
|
|||||||
# 这个文件并不会自动执行,有需要可以手动执行
|
#给萌新辅助自动配置地毯优化和功能的函数
|
||||||
carpet setDefault language zh_cn
|
carpet setDefault language zh_cn
|
||||||
carpet setDefault stackableShulkerBoxes 16
|
carpet setDefault antiCheatDisabled true
|
||||||
carpet setDefault leadFix true
|
carpet setDefault combineXPOrbs true
|
||||||
carpet setDefault ctrlQCraftingFix true
|
|
||||||
carpet setDefault smoothClientAnimations true
|
|
||||||
carpet setDefault fastRedstoneDust true
|
|
||||||
carpet setDefault reloadSuffocationFix true
|
|
||||||
carpet setDefault persistentParrots true
|
carpet setDefault persistentParrots true
|
||||||
carpet setDefault missingTools true
|
carpet setDefault stackableShulkerBoxes true
|
||||||
carpet setDefault optimizedTNT true
|
|
||||||
carpet setDefault placementRotationFix true
|
|
||||||
carpet setDefault cleanLogs true
|
|
||||||
carpet setDefault lightningKillsDropsFix true
|
|
||||||
carpet setDefault lagFreeSpawning true
|
carpet setDefault lagFreeSpawning true
|
||||||
carpet setDefault accurateBlockPlacement true
|
carpet setDefault ctrlQCraftingFix true
|
||||||
carpet setDefault flippinCactus true
|
carpet setDefault flippinCactus true
|
||||||
|
carpet setDefault missingTools true
|
||||||
|
carpet setDefault smoothClientAnimations true
|
||||||
|
carpet setDefault optimizedTNT true
|
||||||
|
carpet setDefault leadFix true
|
||||||
|
carpet setDefault placementRotationFix true
|
||||||
|
carpet setDefault xpNoCooldown true
|
||||||
carpet setDefault defaultLoggers mobcaps,tps
|
carpet setDefault defaultLoggers mobcaps,tps
|
||||||
|
carpet setDefault commandTick true
|
||||||
|
carpet setDefault commandTrackAI true
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#初始化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
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#设置或重设超时时间为300s,超时后运行timeout函数
|
||||||
|
schedule function fz:config/timeout 300s
|
||||||
|
#输出玩家可见的设置页面
|
||||||
|
##扫地机
|
||||||
|
execute if data storage fz.installed {sweeper: 1b} run tellraw @s {"text": "扫地机:","color": "#ccff00"}
|
||||||
|
##扫地机时间,对应分数1478966210-1478966215
|
||||||
|
execute if data storage fz.installed {sweeper: 1b} run tellraw @s [{"text": "- "},{"text": "[关]","color": "#00ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966210"}},{"text": "[30秒]","color": "#5fff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966211"}},{"text": "[1分钟]","color": "#d7ff00","clickEvent": {"action": "run_command","value": "/trigger config set 1478966212"}},{"text": "[2分钟]","color": "#ffd900","clickEvent": {"action": "run_command","value": "/trigger config set 1478966213"}},{"text": "[3分钟]","color": "#ff6100","clickEvent": {"action": "run_command","value": "/trigger config set 1478966214"}},{"text": "[4分钟]","color": "#ff0000","clickEvent": {"action": "run_command","value": "/trigger config set 1478966215"}}]
|
||||||
|
##开启矿车白名单1478966216
|
||||||
|
execute if data storage fz.installed {sweeper: 1b} unless score 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.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.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.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.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.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.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.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.installed {scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"}
|
||||||
|
##计分板显示,对应分数1838019370-1838019379
|
||||||
|
execute if data storage fz.installed {scoreboards: 1b} unless score 总破基岩数 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[关]","color": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "关", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[受伤害榜]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钓鱼榜]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
||||||
|
execute if data storage fz.installed {scoreboards: 1b} unless score 总破基岩数 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[滑翔距离]", "color": "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.installed {scoreboards: 1b} if score 总破基岩数 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[关]","color": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "关", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[受伤害榜]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钓鱼榜]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
|
||||||
|
execute if data storage fz.installed {scoreboards: 1b} if score 总破基岩数 bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[滑翔距离]", "color": "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"}}]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#安装设置功能
|
||||||
|
#初始化触发器记分板
|
||||||
|
scoreboard objectives add config trigger
|
||||||
|
#存入已安装信息
|
||||||
|
data merge storage fz.installed {config: 1b}
|
||||||
|
#提示已安装
|
||||||
|
tellraw @a {"text": "[信息]设置功能已安装","color": "#5fff00"}
|
||||||
|
#开始运行
|
||||||
|
function fz:config/start
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#主函数
|
||||||
|
#允许玩家操作config记分板
|
||||||
|
scoreboard players enable @a config
|
||||||
|
#每条子函数都要reset config分数和function fz:config/display
|
||||||
|
execute if data storage fz.installed {sweeper: 1b} as @a if score @s config matches 1478966200..1478966217 run function fz:sweeper/config/trigger
|
||||||
|
execute if data storage fz.installed {scoreboards: 1b} as @a if score @s config matches 1838019368..1838019379 run function fz:scoreboards/config
|
||||||
|
#循环执行本函数
|
||||||
|
schedule function fz:config/main 1t
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#删除进程残留
|
||||||
|
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"}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#关闭主进程
|
||||||
|
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
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#触发函数,由成就和unsneak函数控制
|
||||||
|
#重置玩家的config分数,避免开启设置功能后,由于该玩家先前的分数而直接运行某些功能
|
||||||
|
scoreboard players reset @s config
|
||||||
|
#判断设置功能是否已经开启,如果未开启则运行主函数
|
||||||
|
execute unless data storage fz.config {is_open: 1b} run function fz:config/main
|
||||||
|
execute unless data storage fz.config {is_open: 1b} run scoreboard objectives add openingConfig dummy
|
||||||
|
execute unless data storage fz.config {is_open: 1b} run data merge storage fz.config {is_open: 1b}
|
||||||
|
#将该玩家加入打开设置页面的玩家的列表
|
||||||
|
scoreboard players set @s openingConfig 1
|
||||||
|
#将设置内容输出给玩家
|
||||||
|
function fz:config/display
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#卸载设置功能
|
||||||
|
#移除进程残留
|
||||||
|
schedule clear fz:config/main
|
||||||
|
schedule clear fz:config/timeout
|
||||||
|
data remove storage fz.config is_open
|
||||||
|
#写入已卸载的信息
|
||||||
|
data merge storage fz.installed {config: 0b}
|
||||||
|
#提示已卸载
|
||||||
|
tellraw @a {"text": "[信息]设置功能已卸载","color": "#5fff00"}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#由config/sneak和config/unsneak成就触发
|
||||||
|
#判断玩家视角是否指向正上方,是则运行turnon函数
|
||||||
|
execute if data storage fz.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
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#安装血量显示
|
||||||
|
#初始化
|
||||||
|
scoreboard objectives add Health health {"text": "HP"}
|
||||||
|
scoreboard objectives modify Health rendertype hearts
|
||||||
|
scoreboard objectives setdisplay list Health
|
||||||
|
scoreboard objectives setdisplay belowName Health
|
||||||
|
#写入已安装的信息
|
||||||
|
data merge storage fz.installed {health: 1b}
|
||||||
|
#提示已安装
|
||||||
|
tellraw @a {"text": "[信息]血量显示已安装","color": "#5fff00"}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#卸载血量显示
|
||||||
|
#删除计分板
|
||||||
|
scoreboard objectives remove Health
|
||||||
|
#写入已卸载的信息
|
||||||
|
data merge storage fz.installed {health: 0b}
|
||||||
|
#提示已卸载
|
||||||
|
tellraw @a {"text": "[信息]血量显示已卸载","color": "#5fff00"}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
#用于储存参数的记分板
|
||||||
|
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 merge storage fz.installed {installed: 1b}
|
||||||
|
data merge storage fz {version: 2.1.2}
|
||||||
|
data merge storage fz {date: 2020-7.21}
|
||||||
|
data merge storage fz {time: "1:14"}
|
||||||
|
##data merge storage fz {snapshot: -SNAPSHOT}
|
||||||
|
data remove storage fz snapshot
|
||||||
|
#提示已安装
|
||||||
|
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"}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#如果未安装且未卸载则安装
|
||||||
|
execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install
|
||||||
|
#如果版本正确且已安装则开始运行
|
||||||
|
execute if data storage fz {version: 2.1.2} if data storage fz.installed {installed: 1b} run function fz:start
|
||||||
|
#如果版本不符则更新
|
||||||
|
execute unless data storage fz {version: 2.1.2} run function fz:update
|
||||||
|
#输出版本信息
|
||||||
|
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#安装登陆提示
|
||||||
|
data merge storage fz.installed {logintips: 1b}
|
||||||
|
#提示已安装
|
||||||
|
tellraw @a {"text": "[信息]登陆提示已安装","color": "#5fff00"}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#卸载登陆提示
|
||||||
|
data merge storage fz.installed {logintips: 0b}
|
||||||
|
#提示已卸载
|
||||||
|
tellraw @a {"text": "[信息]登陆提示已卸载","color": "#5fff00"}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
execute if data storage fz.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
|
||||||
|
|
||||||
|
advancement revoke @s from fz:leavegame
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#计算在线时间和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#主函数给在线玩家的计时器1s+1分
|
||||||
|
scoreboard players add @a actimeCounter 1
|
||||||
|
schedule function fz:scoreboards/activation/main 1s
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将在线时间榜显示给轮播计分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold activation
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#计算滑翔距离和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime = @s fz.aviateCounter
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime /= 200 calculator
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviate1m += @s fz.aviateOneTime
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation 总滑翔距离 fz.aviate1m += @s fz.aviateOneTime
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation 总滑翔距离 totalList += @s fz.aviateOneTime
|
||||||
|
#重置滑翔探测记分板
|
||||||
|
scoreboard players operation @s fz.aviateCounter %= 200 calculator
|
||||||
|
#重置触发该函数的成就
|
||||||
|
advancement revoke @s only fz:scoreboards/aviate1m
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将交易榜显示给轮播记分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold fz.aviate1m
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#计算受破基岩量和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation @s bedrockBreaked += @s fz.bbl
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation 总破基岩数 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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将破基岩榜显示给轮播计分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold bedrockBreaked
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#应用计分板显示,对应分数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
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#计算受伤害量和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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 总受伤害量 damageTaken += @s 10xDamageTaken
|
||||||
|
execute unless score @s carpetBot matches 1 run scoreboard players operation 总受伤害量 totalList += @s 10xDamageTaken
|
||||||
|
#重置伤害探测记分板
|
||||||
|
scoreboard players reset @s 10xDamageTaken
|
||||||
|
#重置触发该函数的成就
|
||||||
|
advancement revoke @s only fz:scoreboards/damagetaken
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将抖M榜显示给轮播记分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold damageTaken
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#计算死亡数和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将死亡榜显示给轮播计分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold deathCounter
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#计分板数据将永久失去(真的很久!)
|
||||||
|
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"}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
#判断各工具是否被使用并运行相应函数计算挖掘榜(左右键都会探测)
|
||||||
|
#需要配合修正函数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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#将挖掘榜显示给轮播记分板的队伍(金队)
|
||||||
|
scoreboard objectives setdisplay sidebar.team.gold digCounter
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#计算挖掘榜和总榜
|
||||||
|
#判断条件用于排除地毯小人
|
||||||
|
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
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#为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
|
||||||
|
#铲子和锄头的方块判断居然只响应产物不响应原方块,更离谱的是斧头两者会同时相应
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user