From 89b1a90d8b6ba41cda97f782a867ec3501a99f14 Mon Sep 17 00:00:00 2001 From: Harveykang <46108547+Harveykang@users.noreply.github.com> Date: Sun, 27 Dec 2020 18:17:46 +0800 Subject: [PATCH 1/4] Add files via upload --- README.md | 105 +++++++++++++++++++++++++++++++++--------------------- c.sc | 7 ++++ here.sc | 21 +++++++++++ s.sc | 6 ++++ 4 files changed, 98 insertions(+), 41 deletions(-) create mode 100644 c.sc create mode 100644 here.sc create mode 100644 s.sc diff --git a/README.md b/README.md index 2a1bead..6b97cb7 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,64 @@ -# FZ-sDataPack -A Minecraft Datapack -#### @Author: Harveykang - -#### This project is licensed under the terms of the GNU General Public License v3.0. -#### Copyright (C)2019-2020 Harvey.Kang - -#### v2.0.0 -- 重写 -- 支持Minecraft1.16.x -- 抬头并按一下shift来打开设置界面 -- 压缩包中的tagplayer.sc - - 把它放在“存档名/scripts”中然后“/script load tagplayer”! - - 使用/tagplayer 命令生成假人可以避免假人被数据包提供的记分板捕捉到~ - - tagplayer需要地毯mod1.4.21或以上版本来运行 - - 使用帮助可以在游戏中输入“/tagplayer”查看 -- 压缩包中的restore_scores.sc工具可以恢复或从1.0版本升级记分板~ - - 把它放在“存档名/scripts”中然后“/script load restore_scores” - - *该工具会先删除旧的记分板* - - 输入“/restore_scores by_whitelist”恢复白名单内的玩家的记分板 - - *用完记得删除它并“/script unload restore_scores”* - - restore_scores需要地毯mod1.4.13或以上版本来运行 -##### - v2.0.0.8(计划) - - 添加单独的记分板升级工具 -##### - v2.0.0.7 - - tagplayer添加了新版carpet新指令,可以为假人切换热键栏 - - 现在tagplayer需要carpet1.4.21或以上版本运行! - - 现在tagplayer可以给自己设置动作了 - - 添加“/tagplayer shadow”指令将自己变为前缀为“挂机”的假人 -##### - v2.0.0.6 - - 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug -##### - v2.0.0.5 - - 修复挖掘榜部分工具不起作用的bug - - 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板 -##### - v2.0.0.4 - - 添加彩色字体 -##### - v2.0.0.3 - - tagplayer需要地毯mod1.4.18或以上版本来运行 - - 优化了tagplayer体验及修复若干bug -##### - v2.0.0.2 - - 重写 +# FZ-sDataPack +A Minecraft Datapack +#### @Author: Harveykang + +#### This project is licensed under the terms of the GNU General Public License v3.0. +#### Copyright (C)2019-2020 Harvey.Kang + +#### v2.0.0 +- 支持Minecraft1.16.x +- 抬头并按一下shift来打开设置界面 +- 提供一些地毯脚本: + - 安装方法: + - 需要carpet mod 1.4.21:https://github.com/gnembon/fabric-carpet/releases + - 提供一个地毯脚本(位于压缩包内)配合数据包使用 + - 将其放入“world/scripts”中(在客户端位于“.minecraft/saves/存档名/scripts”或“.minecraft/config/carpet/scripts”) + - 这三个文件夹默认不会自动生成,直接新建即可 + - here.sc: + - “/here”向所有人发送自己的位置和所在维度 + - 发送的消息使用voxelmap可识别的数组格式 + - 安装voxelmap mod时,左键高亮该坐标,ctrl+左键新建坐标点 + - c.sc + - “/c”修改玩家模式为旁观模式 + - s.sc + - “/s”修改玩家模式为生存模式 + - tagplayer.sc: + - 这个工具可以防止将地毯mod生成的假人计入记分板 + - 使用方法: + - 输入“/scripts load tagplayer”加载工具 + - 包含全部地毯假人自带的功能,以及新功能,如: + - “/tagplayer check xxx”检查玩家的状态 + - “/tagplayer checkall”检查所有玩家的状态 + - “/tagplayer killall”清除所有假人 + - 其他用法可以在游戏内输入“/tagplayer”查看 + - restore_scores.sc: + - 从数据包1.4升级时也需要使用这个工具 + - 这个工具可以从白名单读取玩家列表,并逐一召唤假人,读取统计信息并赋值给记分板 + - 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦 + - 注意:原有的记分板会被删除 + - 使用方法: + - 输入“/scripts load restore_scores”加载工具 + - 输入“/restore_scores by_whitelist”开始恢复 + - 输入“/scripts unload restore_scores”卸载工具 + - 记得用完就删掉它! +##### - v2.0.0.9(计划) + - 添加单独的记分板升级工具 +##### - v2.0.0.8 + - 添加c.sc、s.sc、here.sc工具 +##### - v2.0.0.7 + - tagplayer添加了新版carpet新指令,可以为假人切换热键栏 + - 现在tagplayer需要carpet1.4.21或以上版本运行! + - 现在tagplayer可以给自己设置动作了 + - 添加“/tagplayer shadow”指令将自己变为前缀为“挂机”的假人 +##### - v2.0.0.6 + - 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug +##### - v2.0.0.5 + - 修复挖掘榜部分工具不起作用的bug + - 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板 +##### - v2.0.0.4 + - 添加彩色字体 +##### - v2.0.0.3 + - tagplayer需要地毯mod1.4.18或以上版本来运行 + - 优化了tagplayer体验及修复若干bug +##### - v2.0.0.2 + - 重写 diff --git a/c.sc b/c.sc new file mode 100644 index 0000000..a582f31 --- /dev/null +++ b/c.sc @@ -0,0 +1,7 @@ +__config() -> { + 'stay_loaded' -> true +}; +__command() -> ( + run('gamemode spectator'); + run('execute at @s run tp @s ~ ~0.2 ~') +) \ No newline at end of file diff --git a/here.sc b/here.sc new file mode 100644 index 0000000..0397604 --- /dev/null +++ b/here.sc @@ -0,0 +1,21 @@ +__config() -> { + 'stay_loaded' -> true +}; +__command() -> ( + s_player = player(); + pos = query(s_player, 'pos'); + dim = query(s_player, 'dimension'); + scoreboard_add('here_pos_x'); + scoreboard_add('here_pos_y'); + scoreboard_add('here_pos_z'); + scoreboard('here_pos_x',s_player,round(get(pos, 0))); + scoreboard('here_pos_y',s_player,round(get(pos, 1))); + scoreboard('here_pos_z',s_player,round(get(pos, 2))); + run(str('tellraw @s [{"selector": "@s"},{"text":"说:我在[x:","color": "aqua"},{"score": {"objective": "here_pos_x","name": "%s"}},{"text": ", y:"},{"score": {"objective": "here_pos_y","name": "%s"}},{"text": ", z:"},{"score": {"objective": "here_pos_z","name": "%s"}},{"text": ", dim:%s]"}]', + s_player, s_player, s_player, dim + )); + scoreboard_remove('here_pos_x'); + scoreboard_remove('here_pos_y'); + scoreboard_remove('here_pos_z'); + exit() +) \ No newline at end of file diff --git a/s.sc b/s.sc new file mode 100644 index 0000000..f513568 --- /dev/null +++ b/s.sc @@ -0,0 +1,6 @@ +__config() -> { + 'stay_loaded' -> true +}; +__command() -> ( + run('gamemode survival') +) \ No newline at end of file From 4fc84a42ff547d45ac0e0b787b0aa2d32106ca2a Mon Sep 17 00:00:00 2001 From: Harveykang <46108547+Harveykang@users.noreply.github.com> Date: Sun, 27 Dec 2020 18:43:55 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6b97cb7..db4124d 100644 --- a/README.md +++ b/README.md @@ -42,23 +42,23 @@ A Minecraft Datapack - 输入“/scripts unload restore_scores”卸载工具 - 记得用完就删掉它! ##### - v2.0.0.9(计划) - - 添加单独的记分板升级工具 +- 添加单独的记分板升级工具 ##### - v2.0.0.8 - - 添加c.sc、s.sc、here.sc工具 +- 添加c.sc、s.sc、here.sc工具 ##### - v2.0.0.7 - - tagplayer添加了新版carpet新指令,可以为假人切换热键栏 - - 现在tagplayer需要carpet1.4.21或以上版本运行! - - 现在tagplayer可以给自己设置动作了 - - 添加“/tagplayer shadow”指令将自己变为前缀为“挂机”的假人 +- tagplayer添加了新版carpet新指令,可以为假人切换热键栏 +- 现在tagplayer需要carpet1.4.21或以上版本运行! +- 现在tagplayer可以给自己设置动作了 +- 添加“/tagplayer shadow”指令将自己变为前缀为“挂机”的假人 ##### - v2.0.0.6 - - 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug +- 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug ##### - v2.0.0.5 - - 修复挖掘榜部分工具不起作用的bug - - 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板 +- 修复挖掘榜部分工具不起作用的bug +- 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板 ##### - v2.0.0.4 - - 添加彩色字体 +- 添加彩色字体 ##### - v2.0.0.3 - - tagplayer需要地毯mod1.4.18或以上版本来运行 - - 优化了tagplayer体验及修复若干bug +- tagplayer需要地毯mod1.4.18或以上版本来运行 +- 优化了tagplayer体验及修复若干bug ##### - v2.0.0.2 - - 重写 +- 重写 From b84ced5313fe54a71858ebbc7f72ae1a4fb13b17 Mon Sep 17 00:00:00 2001 From: Harveykang <46108547+Harveykang@users.noreply.github.com> Date: Sun, 27 Dec 2020 18:45:12 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index db4124d..ccc5180 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A Minecraft Datapack #### This project is licensed under the terms of the GNU General Public License v3.0. #### Copyright (C)2019-2020 Harvey.Kang -#### v2.0.0 +### v2.0.0 - 支持Minecraft1.16.x - 抬头并按一下shift来打开设置界面 - 提供一些地毯脚本: @@ -41,24 +41,24 @@ A Minecraft Datapack - 输入“/restore_scores by_whitelist”开始恢复 - 输入“/scripts unload restore_scores”卸载工具 - 记得用完就删掉它! -##### - v2.0.0.9(计划) +##### v2.0.0.9(计划) - 添加单独的记分板升级工具 -##### - v2.0.0.8 +##### v2.0.0.8 - 添加c.sc、s.sc、here.sc工具 -##### - v2.0.0.7 +##### v2.0.0.7 - tagplayer添加了新版carpet新指令,可以为假人切换热键栏 - 现在tagplayer需要carpet1.4.21或以上版本运行! - 现在tagplayer可以给自己设置动作了 - 添加“/tagplayer shadow”指令将自己变为前缀为“挂机”的假人 -##### - v2.0.0.6 +##### v2.0.0.6 - 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug -##### - v2.0.0.5 +##### v2.0.0.5 - 修复挖掘榜部分工具不起作用的bug - 添加restore_scores.sc工具便于恢复或从1.0版本升级记分板 -##### - v2.0.0.4 +##### v2.0.0.4 - 添加彩色字体 -##### - v2.0.0.3 +##### v2.0.0.3 - tagplayer需要地毯mod1.4.18或以上版本来运行 - 优化了tagplayer体验及修复若干bug -##### - v2.0.0.2 +##### v2.0.0.2 - 重写 From 7e0b91efd96cc601678326899c489c4c52e5ad6d Mon Sep 17 00:00:00 2001 From: Harveykang <46108547+Harveykang@users.noreply.github.com> Date: Sun, 27 Dec 2020 20:21:23 +0800 Subject: [PATCH 4/4] Add files via upload --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ccc5180..5fb169e 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,12 @@ A Minecraft Datapack - 提供一些地毯脚本: - 安装方法: - 需要carpet mod 1.4.21:https://github.com/gnembon/fabric-carpet/releases - - 提供一个地毯脚本(位于压缩包内)配合数据包使用 - 将其放入“world/scripts”中(在客户端位于“.minecraft/saves/存档名/scripts”或“.minecraft/config/carpet/scripts”) - 这三个文件夹默认不会自动生成,直接新建即可 - here.sc: - “/here”向所有人发送自己的位置和所在维度 - 发送的消息使用voxelmap可识别的数组格式 - - 安装voxelmap mod时,左键高亮该坐标,ctrl+左键新建坐标点 + - 安装voxelmap mod后,左键高亮该坐标,ctrl+左键新建坐标点 - c.sc - “/c”修改玩家模式为旁观模式 - s.sc @@ -33,7 +32,7 @@ A Minecraft Datapack - 其他用法可以在游戏内输入“/tagplayer”查看 - restore_scores.sc: - 从数据包1.4升级时也需要使用这个工具 - - 这个工具可以从白名单读取玩家列表,并逐一召唤假人,读取统计信息并赋值给记分板 + - 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板 - 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦 - 注意:原有的记分板会被删除 - 使用方法: @@ -41,8 +40,10 @@ A Minecraft Datapack - 输入“/restore_scores by_whitelist”开始恢复 - 输入“/scripts unload restore_scores”卸载工具 - 记得用完就删掉它! -##### v2.0.0.9(计划) +##### v2.0.0.10(计划) - 添加单独的记分板升级工具 +##### v2.0.0.9 +- 修复矿车白名单状态反了的bug ##### v2.0.0.8 - 添加c.sc、s.sc、here.sc工具 ##### v2.0.0.7