Compare commits

...

17 Commits

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

Before

Width:  |  Height:  |  Size: 30 KiB