Compare commits

..

2 Commits

Author SHA1 Message Date
延皓 f282dd764d update README.md.
Signed-off-by: 延皓 <harvey_husky@foxmail.com>
2023-07-24 12:45:29 +00:00
延皓 3547afe136 upload vscode settings 2022-08-16 21:27:38 +08:00
12 changed files with 54 additions and 57 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"datapack.env.cmdVersion": "1.18.2",
"datapack.env.jsonVersion": "1.18.2",
"datapack.env.dataVersion": "1.18.2"
}
+1 -5
View File
@@ -2,16 +2,12 @@
>所有可查阅的更改记录皆可在此处找到
### v2.2.0
- 仅支持Minecraft1.19+1.16请用2.0.x1.17-1.18请用2.1.x
- 修复[#I5BP3U](https://gitee.com/harvey-husky/FZ-sDatapack/issues/I5BP3U)
### v2.2 pre1
- `census`地毯脚本更新至1.3.1版本
- 修复一些显示bug
- 现在基本可以正常使用**仍然不能保证稳定性(数据安全性)**
- 添加了可以用来*迁移*数据的Python脚本 `score_move`
- 添加了可以用来`迁移`数据的Python脚本 `score_move`
- 使用时与`server`文件夹同级
- `score_move.py`
- `server`
+21 -19
View File
@@ -1,19 +1,21 @@
FZSD许可证
2022/7/20 https://gitee.com/harvey-husky/fz-survival-datapack/LICENSE
版权所有 © 2019-2022 延皓<https://gitee.com/harvey-husky><https://space.bilibili.com/677233356>
定义:
“该许可证”指FZSD许可证。
“该软件”指许可在该许可证下的程序和相关文档的集合。
“官方网址”指由版权所有者提供的该软件的发布网址。
您对该软件的复制、使用、修改及分发受如下条款的约束:
1. 禁止添加、修改或删除该许可证的内容。
2. 禁止未经授权的转载、销售或二次发布该软件。
3. 禁止添加、修改或抹除该软件中的原作者署名。
4. 如果您从部署了该软件的Minecraft服务器中以任何方式获取了收益,则您必须在游戏中的明显位置明确告知用户您的Minecraft服务器使用了该软件,并附上官方网址。
5. 如果您修改了该软件中的任何内容,您必须将修改部分开源在主流开源平台(如gitee<https://gitee.com/>或github<https://github.com/>等)。您必须保留该许可证,但您可以追加其他许可证(不包括不支持附加条款的许可证)。当您添加的许可证中的条款与该许可证冲突时,必须以该许可证为准。
6. 该软件在提供时不带任何明示或默示的担保。在任何情况下,版权所有者不对任何人因使用该软件而引发的任何直接或间接损失承担任何责任。
MIT License
Copyright (c) 2022 延皓
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+22 -24
View File
@@ -1,35 +1,32 @@
# FZ-sDataPack
一个Minecraft数据包
A Minecraft Datapack
[![mc版本](https://img.shields.io/badge/Minecraft-1.16+-blue.svg)](https://minecraft.net/)
[![carpet](https://img.shields.io/badge/fabric_carpet-1.4.24+-blue.svg)](https://github.com/gnembon/fabric-carpet/releases)
[![mc版本](https://img.shields.io/badge/Minecraft-1.17+-blue.svg)](https://minecraft.net/)
[![carpet版本](https://img.shields.io/badge/fabric_carpet-1.4.24+-blue.svg)](https://github.com/gnembon/fabric-carpet/releases)
#### @Author: Harvey_Husky
#### Copyright (C) 2019-2022 Harvey_Husky
#### This project is licensed under the terms of the GNU General Public License v3.0
[Bilibili专栏](https://www.bilibili.com/read/cv4267319)(年久失修)
#### Copyright (C) 2019-2021 Harvey_Husky
[B站链接](https://www.bilibili.com/read/cv4267319)
## 说明太长不想看·直接安装教程
- 1.需要 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod **1.4.24** 或以上版本
- 2.**兼容性**
- `数据包 v2.2.x` 支持 `Minecraft 1.19+`
- `数据包 v2.1.x` 支持 `Minecraft 1.17.x-1.18.x`
- `数据包 v2.0.x` 支持 `Minecraft 1.16.3-1.16.5`
- 3.前往 [发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases) 下载此数据包
- 4.从zip文件中挑选你需要的`.sc`文件
- 5.在`world`文件夹中创建`datapacks``scripts`两个文件夹
- 6.将主体`zip`文件放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`
- 7.将挑选出来的`.sc`文件放到 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts`
- 8.在控制台输入`/reload`(客户端则是重新进入世界)
- 1.前往 [发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases) 下载此数据包
- 2.从zip文件中挑选你需要的`.sc`文件
- 3.在`world`文件夹中创建`datapacks``scripts`两个文件夹
- 4.将主体`zip`文件放入 `world/datapacks` 中(在客户端位于 `.minecraft/saves/<存档名>/datapacks`
- 5.将挑选出来的`.sc`文件放到 `world/scripts` 中(在客户端位于 `.minecraft/saves/<存档名>/scripts`
- 6.在控制台输入`/reload`(客户端则是重新进入世界)
## 总览
[![release版本](https://img.shields.io/badge/发行版-2.2.0-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases/2.2.0)
[![release版本](https://img.shields.io/badge/发行版-2.1.2-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases/2.1)
![设置界面]()
![设置界面](./图片示例:设置界面.png)
- 抬头并按一下 `Shift` 来打开设置界面
@@ -55,7 +52,7 @@
| killCounter | 击杀榜 |
| tradingCounter | 交易榜 |
| totalList | 总 量 |
| bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) | [破基岩](https://www.bilibili.com/video/BV1KJ411b73z) |
| bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) | [铁头功破基岩](https://www.bilibili.com/video/BV1KJ411b73z) |
| fz.aviate1m | 滑翔距离 |
- 提供一些[地毯脚本](#地毯脚本)`.sc` 文件):***请在升级数据包的同时替换这些工具!!!***
@@ -67,15 +64,16 @@
## 使用
### 安装
### 注意事项
- 需要 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod **1.4.24** 以上版本
- 需要 [Carpet](https://github.com/gnembon/fabric-carpet/releases) Mod **1.4.24** 以上版本
- **兼容性**
- `v2.2.x` 支持 `Minecraft 1.19+`
- `v2.1.x` 支持 `Minecraft 1.17.x-1.18.x`
- **版本的兼容性**
- `v2.1.x` 支持 `Minecraft 1.17+`
- `v2.0.x` 支持 `Minecraft 1.16.3-1.16.5`
### 安装
- 前往 [发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases) 下载此数据包
>请下载以 `FZ'sDatapack` 开头的 `.zip` 文件
+1 -3
View File
@@ -8,9 +8,7 @@
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:player",
"type_specific": {
"type": "player",
"player": {
"advancements": {
"fz:config/sneak": true
}
+2 -2
View File
@@ -2,7 +2,7 @@
#允许玩家操作config记分板
scoreboard players enable @a config
#每条子函数都要reset config分数和function fz:config/display
execute if data storage fz:survival installed{sweeper: 1b} as @a if score @s config matches 1478966200..1478966217 run function fz:sweeper/config/trigger
execute if data storage fz:survival installed{scoreboards: 1b} as @a if score @s config matches 1838019368..1838019379 run function fz:scoreboards/config
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
@@ -5,7 +5,6 @@ scoreboard players reset @s config
execute unless data storage fz.config {is_open: 1b} run function fz:config/main
execute unless data storage fz.config {is_open: 1b} run scoreboard objectives add openingConfig dummy
execute unless data storage fz.config {is_open: 1b} run data merge storage fz.config {is_open: 1b}
schedule function fz:config/timeout 300s replace
#将该玩家加入打开设置页面的玩家的列表
scoreboard players set @s openingConfig 1
#将设置内容输出给玩家
+1 -1
View File
@@ -1,5 +1,5 @@
#新版本号
data modify storage fz:survival newVersion set value [2,2,0]
data modify storage fz:survival newVersion set value [2,1,3,2]
execute if data storage fz:survival newVersion[3] run data modify storage fz:survival snapshot set value 1b
execute unless data storage fz:survival newVersion[3] run data remove storage fz:survival snapshot
##data remove storage fz:survival snapshot
+1 -1
View File
@@ -1,6 +1,6 @@
{
"pack": {
"description": "FZ's Datapack - Code By Harvey_Husky",
"pack_format": 10
"pack_format": 7
}
}
-1
View File
@@ -187,7 +187,6 @@ __on_server_shuts_down() ->(
)
);
scoreboard_remove('carpetBot');
scoreboard_add('carpetBot');
team_remove('carpetBot');
team_remove('shadowedPlayer')
);
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB