Compare commits

..

145 Commits

Author SHA1 Message Date
延皓 d93b266257 Update README.md 2021-07-04 00:19:22 +08:00
延皓 5b2b95fb99 2.1.0 2021-07-04 00:10:41 +08:00
延皓 66de9d3a8d 2.1.0 2021-07-04 00:02:56 +08:00
延皓 741f0c0622 2.1.0 2021-07-03 18:51:22 +08:00
延皓 e10cfac336 2.1.0 2021-07-03 18:11:55 +08:00
延皓 d5ac52d30c 2.1.0 2021-07-03 09:22:22 +08:00
延皓 17676af50f 2.1.0 2021-07-03 09:01:12 +08:00
延皓 f21d172ae9 datapack version 2021-07-03 09:00:39 +08:00
延皓 6b29d29367 fix tagplayer bugs 2021-07-03 08:02:29 +08:00
延皓 b2843145af 2.1.0 2021-07-03 06:21:34 +08:00
Harveykang 5e41b7d950 Update README.md 2020-12-29 19:19:59 +08:00
Harveykang e21a6fbd6f Update README.md 2020-12-29 19:12:38 +08:00
Harveykang a1a0d89764 Update README.md 2020-12-29 19:12:16 +08:00
Harveykang 7ce6826170 Merge pull request #17 from Harveykang/2.0-dev
2.0.0.11
2020-12-28 18:10:17 +08:00
Harveykang 3f66bb499f 2.0.0.11 2020-12-28 18:09:49 +08:00
Harveykang 689b94a959 Merge pull request #16 from Harveykang/2.0-dev
2.0.0.10
2020-12-28 17:29:30 +08:00
Harveykang cc392b1828 2.0.0.10 2020-12-28 17:29:01 +08:00
Harveykang 089da8fdde Merge pull request #15 from Harveykang/2.0-dev
2.0.0.9
2020-12-28 11:12:11 +08:00
Harveykang 77cc36b363 Merge branch '2.0' into 2.0-dev 2020-12-28 11:12:03 +08:00
Harveykang d8e45a92de Merge branch '2.0-dev' of https://github.com/Harveykang/FZ-sDatapack into 2.0-dev 2020-12-28 11:10:21 +08:00
Harveykang 9ace8501f2 2.0.0.9 2020-12-28 11:10:15 +08:00
Harveykang 7e0b91efd9 Add files via upload 2020-12-27 20:21:23 +08:00
Harveykang b84ced5313 Update README.md 2020-12-27 18:45:12 +08:00
Harveykang 4fc84a42ff Update README.md 2020-12-27 18:43:55 +08:00
Harveykang 89b1a90d8b Add files via upload 2020-12-27 18:17:46 +08:00
Harveykang 41cea99570 Merge pull request #14 from Harveykang/2.0-dev
2.0.0.7
2020-12-27 15:38:33 +08:00
Harveykang e4a7398317 Merge branch '2.0' into 2.0-dev 2020-12-27 15:37:48 +08:00
Harveykang f12afa1972 2.0.0.7 2020-12-27 15:33:51 +08:00
Harveykang 7562e6f227 Add files via upload 2020-12-15 19:44:01 +08:00
Harveykang 41f4940229 Add files via upload 2020-12-15 19:38:46 +08:00
Harveykang 89d17c2db1 Add files via upload 2020-12-15 19:38:03 +08:00
Harveykang 9c9121651c Add files via upload 2020-12-15 19:33:57 +08:00
Harveykang ca1ce3ed56 Update README.md 2020-12-11 12:40:46 +08:00
Harveykang c91488c464 Update README.md 2020-12-11 12:06:29 +08:00
Harveykang 71f95b8064 Merge pull request #13 from Harveykang/2.0-dev
2.0.0.5
2020-12-07 04:27:42 +08:00
Harveykang f4693c8aae Merge branch '2.0' into 2.0-dev 2020-12-07 04:27:34 +08:00
Harveykang 4f1a8b74f9 2.0.0.5 2020-12-07 04:25:40 +08:00
Harveykang 1fcfea1e32 Update README.md 2020-12-05 07:34:37 +08:00
Harveykang 6ad22d7ec8 Merge pull request #12 from Harveykang/2.0-dev
咔勒否 瓦鲁多
2020-12-05 07:28:33 +08:00
Harveykang 4526f5541d 咔勒否 瓦鲁多 2020-12-05 07:27:57 +08:00
Harveykang 04f93c092d Update README.md 2020-11-29 20:18:01 +08:00
Harveykang 43502fc27c Update README.md 2020-11-29 20:17:03 +08:00
Harveykang 773513f95b Merge pull request #11 from Harveykang/2.0-dev
2.0.0.3
2020-11-29 20:07:25 +08:00
Harveykang 381d37914b 2.0.0.3 2020-11-29 20:06:34 +08:00
Harveykang 00048b1ac4 Update README.md 2020-11-29 19:42:06 +08:00
Harveykang 843d5c8591 Update README.md 2020-11-29 09:02:40 +08:00
MapleDust 1013cd1590 update 2.0 files 2020-11-27 00:27:49 +08:00
MapleDust 45d36541ca Delete v2.0 files 2020-11-27 00:03:17 +08:00
Harveykang 8c9c745d6a Update README.md 2020-04-13 22:55:44 +08:00
Harveykang ab5949d12a Update README.md 2020-03-26 08:28:01 +08:00
Harveykang 133f6380f5 Update README.md 2020-03-26 08:21:04 +08:00
Harveykang a6adb22990 Add files via upload 2020-03-26 08:19:51 +08:00
Harveykang 7a9adc2aac Add files via upload 2020-03-21 21:07:15 +08:00
Harveykang 42246fe46d Add files via upload 2020-03-21 21:03:03 +08:00
Harveykang d2fc351352 Update README.md 2020-03-13 17:05:27 +08:00
Harveykang f770a573bc Update README.md 2020-03-02 21:12:31 +08:00
Harveykang 3278b2ea63 Update README.md 2020-02-25 14:08:04 +08:00
Harveykang c624981c6d Update README.md 2020-02-25 14:07:23 +08:00
Harveykang a2907273ac Update README.md 2020-02-25 14:02:16 +08:00
Harveykang 354af4082d Add files via upload 2020-02-14 12:47:11 +08:00
Harveykang 923d1cd39a Delete 1.4.0-dev5.mcfunction 2020-02-14 12:43:57 +08:00
Harveykang 6c9ad78350 Delete 1.4.0-dev.mcfunction 2020-02-14 12:43:51 +08:00
Harveykang 06fd4c2469 Delete 1.3.3d.mcfunction 2020-02-14 12:43:45 +08:00
Harveykang 0ab49b24bd Delete 1.3.3.mcfunction 2020-02-14 12:43:39 +08:00
Harveykang 0756d07f19 Delete 1.4.mcfunction 2020-02-14 12:43:29 +08:00
Harveykang 865f979347 Delete uninstall.mcfunction 2020-02-14 12:43:00 +08:00
Harveykang efd5c13bbb Delete totalnodisplay.mcfunction 2020-02-14 12:42:54 +08:00
Harveykang 26ab5ba500 Delete totalcalculator.mcfunction 2020-02-14 12:42:48 +08:00
Harveykang c5f72c9d8f Delete team.mcfunction 2020-02-14 12:42:42 +08:00
Harveykang d719f2162e Delete sub.mcfunction 2020-02-14 12:42:36 +08:00
Harveykang ef62622ef2 Delete main.mcfunction 2020-02-14 12:42:30 +08:00
Harveykang 4ca899ceb9 Delete install.mcfunction 2020-02-14 12:42:24 +08:00
Harveykang d532d55a1a Delete tradingcounter.mcfunction 2020-02-14 12:42:04 +08:00
Harveykang 1f9ecba65e Delete killcounter.mcfunction 2020-02-14 12:41:56 +08:00
Harveykang a046e6744e Delete fishingcounter.mcfunction 2020-02-14 12:41:50 +08:00
Harveykang bff8167003 Delete digcounter.mcfunction 2020-02-14 12:41:44 +08:00
Harveykang 06c9c8c83b Delete deathcounter.mcfunction 2020-02-14 12:41:37 +08:00
Harveykang fb148e45a9 Delete damagetaken.mcfunction 2020-02-14 12:41:29 +08:00
Harveykang ebe0729e03 Delete activation.mcfunction 2020-02-14 12:41:21 +08:00
Harveykang ddd554e1c7 Delete delscores.mcfunction 2020-02-14 12:41:05 +08:00
Harveykang 506c2b6b6a Delete runaddprefix.mcfunction 2020-02-14 12:40:56 +08:00
Harveykang bddaeb90b1 Delete runbotdead.mcfunction 2020-02-14 12:40:50 +08:00
Harveykang 379a51a9fb Delete removebottag.mcfunction 2020-02-14 12:40:43 +08:00
Harveykang eda28dcb6d Delete activationcarry.mcfunction 2020-02-14 12:40:24 +08:00
Harveykang b6eb1b918b Delete install.mcfunction 2020-02-14 12:39:51 +08:00
Harveykang a62ea2f116 Delete main.mcfunction 2020-02-14 12:39:44 +08:00
Harveykang 802696cd68 Delete uninstall.mcfunction 2020-02-14 12:39:37 +08:00
Harveykang 19d07d7c7f Delete uninstall.mcfunction 2020-02-14 12:37:26 +08:00
Harveykang 9505532ab3 Delete trigger.mcfunction 2020-02-14 12:37:19 +08:00
Harveykang 45f0bcdad0 Delete subclean.mcfunction 2020-02-14 12:37:12 +08:00
Harveykang 459f3d181b Delete main.mcfunction 2020-02-14 12:37:06 +08:00
Harveykang 8c91287b1b Delete install.mcfunction 2020-02-14 12:36:59 +08:00
Harveykang ed9fb677e9 Delete cleanersoundon.mcfunction 2020-02-14 12:36:51 +08:00
Harveykang b2e86c9718 Delete cleanersoundoff.mcfunction 2020-02-14 12:36:32 +08:00
Harveykang c0102f0960 Delete cleaneron.mcfunction 2020-02-14 12:36:18 +08:00
Harveykang 140e7f331c Delete cleaneroff.mcfunction 2020-02-14 12:36:01 +08:00
Harveykang 74a7be30a5 Delete cleanerchaton.mcfunction 2020-02-14 12:35:46 +08:00
Harveykang 5256948fcf Delete cleanerchatoff.mcfunction 2020-02-14 12:35:32 +08:00
Harveykang 34005ba964 Delete cleanerbaron.mcfunction 2020-02-14 12:35:26 +08:00
Harveykang 5249e29dcf Delete cleanerbaroff.mcfunction 2020-02-14 12:35:18 +08:00
Harveykang 80f2086c40 Delete scarpettagplayer.mcfunction 2020-02-14 12:35:08 +08:00
Harveykang 045cce8b9a Delete scarpet.mcfunction 2020-02-14 12:35:01 +08:00
Harveykang 990e7b801b Delete killbot.mcfunction 2020-02-14 12:34:54 +08:00
Harveykang bd20699e24 Delete install.mcfunction 2020-02-14 12:34:47 +08:00
Harveykang 4908df8781 Delete script.mcfunction 2020-02-14 12:34:40 +08:00
Harveykang 4a08ea5c60 Delete scriptplayer.mcfunction 2020-02-14 12:33:55 +08:00
Harveykang 33e1993b74 Delete summonbot.mcfunction 2020-02-14 12:33:47 +08:00
Harveykang ed944c3d44 Delete tagplayer.mcfunction 2020-02-14 12:33:41 +08:00
Harveykang 24cf81bd69 Delete carpet.mcfunction 2020-02-14 12:33:13 +08:00
Harveykang 920cb0a96d Delete uninstall.mcfunction 2020-02-14 12:33:06 +08:00
Harveykang 034172e38b Delete install.mcfunction 2020-02-14 12:32:58 +08:00
Harveykang 9892dbc2d3 Delete main.mcfunction 2020-02-14 12:32:50 +08:00
Harveykang 3857383e58 Delete uninstall.mcfunction 2020-02-14 12:32:43 +08:00
Harveykang 3703c3ea4e Delete logintips.mcfunction 2020-02-14 12:32:35 +08:00
Harveykang 8f6c8c1ba3 Delete condition.mcfunction 2020-02-14 12:32:19 +08:00
Harveykang 52b7df1204 Delete carpet.mcfunction 2020-02-14 12:32:11 +08:00
Harveykang 0a852f4e8c Delete scarpet.mcfunction 2020-02-14 12:30:53 +08:00
Harveykang deaab5ab47 Delete updatebeforeinstall134.mcfunction 2020-02-14 12:30:37 +08:00
Harveykang bc47664b25 Delete updatebeforeinstall133.mcfunction 2020-02-14 12:30:27 +08:00
Harveykang 6ba572076e Delete updatebeforeinstall.mcfunction 2020-02-14 12:30:18 +08:00
Harveykang abcc23a07f Add files via upload 2020-01-30 13:54:44 +08:00
Harveykang ad25b4f6cb Add files via upload 2020-01-30 13:53:46 +08:00
Harveykang 4bf8603129 Update and rename README to README.md 2020-01-23 07:18:22 +08:00
Harveykang a1ba6db6e1 Rename README.md to README 2020-01-23 07:12:07 +08:00
Harveykang 3cf5aa1784 Rename README.txt to README.md 2020-01-23 07:02:06 +08:00
Harveykang 3e0e3874eb Merge pull request #3 from Harveykang/1.4-pre
Add files via upload
2020-01-21 08:51:02 +08:00
Harveykang bafdf8f473 Add files via upload 2020-01-21 08:50:25 +08:00
Harveykang 4e44e466be Add files via upload 2020-01-21 08:49:23 +08:00
Harveykang 213755ad67 Update README.txt 2020-01-09 18:57:12 +08:00
Harveykang 2ec7830604 Merge pull request #2 from Harveykang/1.4
1.4
2020-01-09 18:39:14 +08:00
Harveykang b3b894ad7a 1.4 2020-01-09 18:38:21 +08:00
Harveykang ae50b60bfc Add files via upload 2020-01-08 20:54:52 +08:00
Harveykang fa33dbbe3c Merge pull request #1 from Harveykang/1.3.3
修复小人仍然计入计分板的bug,并为1.3.4做准备
2020-01-07 00:14:55 +08:00
Harveykang 1c2134f1a4 Add files via upload 2020-01-07 00:12:59 +08:00
Harveykang 9ea7e42377 Add files via upload 2020-01-03 13:09:41 +08:00
Harveykang 18b7b81844 Add files via upload 2019-12-30 16:34:27 +08:00
Harveykang c1c8222c9c Add files via upload 2019-12-29 18:21:13 +08:00
Harveykang be0a2346a6 Update README.txt 2019-12-22 05:55:23 +08:00
Harveykang 204233be99 Update README.txt 2019-12-22 05:53:48 +08:00
Harveykang af5d3cbd05 Update README.txt 2019-12-18 04:53:46 +08:00
Harveykang eb4a52dbdb Update README.txt 2019-12-15 03:54:07 +08:00
Harveykang 11e835a7a3 Update README.txt 2019-12-15 03:28:48 +08:00
Harveykang 547b6f195f Update README.txt 2019-12-15 02:54:04 +08:00
Harveykang b102926036 Add files via upload 2019-12-15 02:52:13 +08:00
Harveykang 9085a7c974 Add files via upload 2019-12-12 00:07:07 +08:00
21 changed files with 94 additions and 198 deletions
+30 -56
View File
@@ -4,73 +4,47 @@ A Minecraft Datapack
#### This project is licensed under the terms of the GNU General Public License v3.0. #### This project is licensed under the terms of the GNU General Public License v3.0.
#### Copyright (C)2019-2021 Harvey_Husky #### Copyright (C)2019-2021 Harvey_Husky
[B站链接](https://www.bilibili.com/read/cv4267319) ### 总览
## 总览 - v2.1.x支持Minecraft1.17+
- v2.0.x支持Minecraft1.16.3-1.16.5
- 抬头并按一下shift来打开设置界面 - 抬头并按一下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+ - 需要carpet mod 1.4.24+https://github.com/gnembon/fabric-carpet/releases
- 将其放入`world/scripts`中(在客户端位于`.minecraft/saves/存档名/scripts``.minecraft/config/carpet/scripts` - 将其放入world/scripts”中(在客户端位于.minecraft/saves/存档名/scripts”或“.minecraft/config/carpet/scripts”)
### `here.sc` - here.sc
- `/here`向所有人发送自己的位置和所在维度 -/here向所有人发送自己的位置和所在维度
- 发送的消息使用voxelmap可识别的数组格式 - 发送的消息使用voxelmap可识别的数组格式
- 安装[voxelmap mod](https://www.curseforge.com/minecraft/mc-mods/voxelmap/files)后,左键高亮该坐标,ctrl+左键新建坐标点 - 安装voxelmap mod后,左键高亮该坐标,ctrl+左键新建坐标点
### `c.sc` - c.sc
- `/c`修改玩家模式为旁观模式 - “/c”修改玩家模式为旁观模式
### `s.sc` - s.sc
- `/s`修改玩家模式为生存模式 - “/s”修改玩家模式为生存模式
### `tagplayer.sc` - tagplayer.sc
- [B站链接](https://www.bilibili.com/read/cv9178207)
- 这个工具可以防止将地毯mod生成的假人计入记分板 - 这个工具可以防止将地毯mod生成的假人计入记分板
- 可以通过自定义文件名来自定义游戏内命令 - 可以通过自定义文件名来自定义游戏内命令
- 配置文件: - 配置文件:
- `allow_bot_tp`:用于控制是否允许tp假人 - allow_bot_tp:用于控制是否允许tp假人
- `allow_spawning_whitelist_players`:用于控制是否允许生成白名单内的玩家 - allow_spawning_whitelist_players:用于控制是否允许生成白名单内的玩家
- 使用方法: - 使用方法:
- 安装[carpet mod](https://github.com/gnembon/fabric-carpet/releases) - 输入“/script load tagplayer”加载工具
- 输入`/script load tagplayer`加载工具 - 包含全部地毯假人自带的功能,以及新功能,如:
- 包含全部地毯假人自带的功能,如: - “/tagplayer check xxx”:检查玩家的状态
- `/tagplayer use xxx once`让假人xxx按一次使用键 -/tagplayer checkall”:检查所有玩家的状态
- 包含新功能,如: - “/tagplayer killall”:清除所有假人
- `/tagplayer check xxx`:检查玩家的状态 - 其他用法可以在游戏内输入“/tagplayer”查看
- `/tagplayer checkall`:检查所有玩家的状态 - restore_scores.sc
- `/tagplayer killall`:清除所有假人
- 其他用法可以在游戏内输入`/tagplayer`查看
### `restore_scores.sc`
- 从数据包1.4升级时也需要使用这个工具 - 从数据包1.4升级时也需要使用这个工具
- 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板 - 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板
- 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦 - 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦
- *注意:原有的记分板会被删除* - *注意:原有的记分板会被删除*
- 使用方法: - 使用方法:
- 输入`/script load restore_scores`加载工具 - 输入/script load restore_scores加载工具
- 输入`/restore_scores by_whitelist`开始恢复 - 输入/restore_scores by_whitelist开始恢复
- 输入`/script unload restore_scores`卸载工具 - 输入/script unload restore_scores卸载工具
- 记得用完就删掉它! - 记得用完就删掉它!
- 无需配置即可支持该铁头功破基岩榜Modhttps://gitee.com/harvey-husky/FZ-BBL/releases
### 更新日志 - 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
- v2.1.x支持Minecraft1.17+
- v2.0.x支持Minecraft1.16.3-1.16.5
##### v2.1.2/2.0.10
- 添加鞘翅滑翔距离榜单
##### v2.1.0 ##### v2.1.0
- 仅支持1.17+ - 仅支持1.17+
- 修复使用部分工具和方块交互时挖掘榜会减分的bug - 修复使用部分工具和方块交互时挖掘榜会减分的bug
@@ -103,7 +77,7 @@ A Minecraft Datapack
- 无需配置即可支持该铁头功破基岩榜Modhttps://gitee.com/harvey-husky/FZ-BBL/releases - 无需配置即可支持该铁头功破基岩榜Modhttps://gitee.com/harvey-husky/FZ-BBL/releases
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜 - 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
##### v2.0.0.11 ##### v2.0.0.11
- `/tagplayer spawn xxx`后面现在可以追加`at``facing``in`参数 - /tagplayer spawn xxx后面现在可以追加“at”、“facing”、“in”参数
##### v2.0.0.10 ##### v2.0.0.10
- 扫地机添加了位于怪物血条栏的文字提示,同时添加了各种提示的开关功能 - 扫地机添加了位于怪物血条栏的文字提示,同时添加了各种提示的开关功能
##### v2.0.0.9 ##### v2.0.0.9
@@ -114,7 +88,7 @@ A Minecraft Datapack
- tagplayer添加了新版carpet新指令,可以为假人切换热键栏 - tagplayer添加了新版carpet新指令,可以为假人切换热键栏
- 现在tagplayer需要carpet1.4.21或以上版本运行! - 现在tagplayer需要carpet1.4.21或以上版本运行!
- 现在tagplayer可以给自己设置动作了 - 现在tagplayer可以给自己设置动作了
- 添加`/tagplayer shadow`指令将自己变为前缀为`挂机`的假人 - 添加/tagplayer shadow指令将自己变为前缀为“挂机”的假人
##### v2.0.0.6 ##### v2.0.0.6
- 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug - 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug
##### v2.0.0.5 ##### v2.0.0.5
@@ -9,6 +9,7 @@
"entity": "this", "entity": "this",
"scores": { "scores": {
"actimeCounter": { "actimeCounter": {
"max": 3600,
"min": 3600 "min": 3600
} }
} }
@@ -1,23 +0,0 @@
{
"criteria": {
"activation": {
"trigger": "minecraft:tick",
"conditions": {
"player": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"fz.aviateCounter": {
"min": 200
}
}
}
]
}
}
},
"rewards": {
"function": "fz:scoreboards/aviate1m/calculator"
}
}
+3 -4
View File
@@ -21,8 +21,7 @@ execute if data storage fz.installed {sweeper: 1b} run tellraw @s {"text": "扫
##记分板 ##记分板
execute if data storage fz.installed {scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"} execute if data storage fz.installed {scoreboards: 1b} run tellraw @s {"text": "记分板:","color": "#ccff00"}
##计分板显示1838019370-1838019379 ##计分板显示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": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
execute if data storage fz.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() ##计分板显示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": "#ff0000","hoverEvent": {"action": "show_text","contents": {"text": "", "color": "#ff0000"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019370"}},{"text": "[轮播]","color": "gold","hoverEvent": {"action": "show_text","contents": {"text": "轮播", "color": "gold"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019371"}},{"text": "[总量]","color": "dark_aqua","hoverEvent": {"action": "show_text","contents": {"text": "总量","color": "dark_aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019379"}},{"text": "[在线时间(h)]","color": "aqua","hoverEvent": {"action": "show_text","contents": {"text": "在线时间(h)","color": "aqua"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019372"}},{"text": "[抖M名单]","color": "yellow","hoverEvent": {"action": "show_text","contents": {"text": "受伤害量","color": "yellow"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019373"}},{"text": "[死亡榜]","color": "dark_red","hoverEvent": {"action": "show_text","contents": {"text": "死亡榜","color": "dark_red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019374"}},{"text": "[挖掘榜]","color": "gray","hoverEvent": {"action": "show_text","contents": {"text": "挖掘榜","color": "gray"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019375"}},{"text": "[钩直饵咸]","color": "blue","hoverEvent": {"action": "show_text","contents": {"text": "钓鱼榜","color": "blue"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019376"}},{"text": "[击杀榜]","color": "red","hoverEvent": {"action": "show_text","contents": {"text": "击杀榜","color": "red"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019377"}},{"text": "[交易榜]","color": "green","hoverEvent": {"action": "show_text","contents": {"text": "交易榜","color": "green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019378"}}]
execute if data storage fz.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"}}] execute if data storage fz.installed {scoreboards: 1b} if score bedrockBreaked matches 1.. run tellraw @s [{"text": "- "},{"text": "[铁头功]","color": "dark_green","hoverEvent": {"action": "show_text","contents": {"text": "破基岩榜","color": "dark_green"}},"clickEvent": {"action": "run_command","value": "/trigger config set 1838019369"}}]
+1 -1
View File
@@ -3,6 +3,6 @@
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.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.installed {scoreboards: 1b} as @a if score @s config matches 1838019369..1838019379 run function fz:scoreboards/config
#循环执行本函数 #循环执行本函数
schedule function fz:config/main 1t schedule function fz:config/main 1t
+1 -1
View File
@@ -1,6 +1,6 @@
#安装血量显示 #安装血量显示
#初始化 #初始化
scoreboard objectives add Health health {"text": "HP"} scoreboard objectives add Health health {"text": "cm","color": "yellow"}
scoreboard objectives modify Health rendertype hearts scoreboard objectives modify Health rendertype hearts
scoreboard objectives setdisplay list Health scoreboard objectives setdisplay list Health
scoreboard objectives setdisplay belowName Health scoreboard objectives setdisplay belowName Health
+4 -19
View File
@@ -3,8 +3,6 @@
scoreboard objectives add parameter dummy scoreboard objectives add parameter dummy
#用于数学计算的记分板 #用于数学计算的记分板
scoreboard objectives add calculator 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 10 calculator 10
scoreboard players set 1 calculator 1 scoreboard players set 1 calculator 1
#检测玩家退出游戏的记分板 #检测玩家退出游戏的记分板
@@ -18,28 +16,15 @@ function fz:login/logintips/install
function fz:carpet/carpet function fz:carpet/carpet
#版本信息 #版本信息
data merge storage fz.installed {installed: 1b} data merge storage fz.installed {installed: 1b}
data merge storage fz {version: 2.1.2} data merge storage fz {version: 2.1.0}
data merge storage fz {date: 2020-7.21} data merge storage fz {date: 2020-7.1}
data merge storage fz {time: "1:14"} data merge storage fz {time: "02:43"}
##data merge storage fz {snapshot: -SNAPSHOT} ##data merge storage fz {snapshot: -SNAPSHOT}
data remove storage fz snapshot data remove storage fz snapshot
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
#提示已安装 #提示已安装
tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"} tellraw @a {"text": "[信息]安装完成!","color": "#5fff00"}
#测试用的输出
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
#info: #5fff00 #info: #5fff00
#alert: #d7ff00 #alert: #d7ff00
#warn: #ffd900 #warn: #ffd900
#error: #ff6100 #error: #ff6100
#抖M名单 -
#钩直饵咸 -
#交 -
#铁头功 -
#群p抖M -
#全部木大 -
#总交 -
#全员头铁 -
#{"text": "cm","color": "yellow"} - {"text": "HP"}
+2 -2
View File
@@ -1,8 +1,8 @@
#如果未安装且未卸载则安装 #如果未安装且未卸载则安装
execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install 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 if data storage fz {version: 2.1.0} if data storage fz.installed {installed: 1b} run function fz:start
#如果版本不符则更新 #如果版本不符则更新
execute unless data storage fz {version: 2.1.2} run function fz:update execute unless data storage fz {version: 2.1.0} run function fz:update
#输出版本信息 #输出版本信息
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}] tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]
@@ -1,11 +0,0 @@
#计算滑翔距离和总榜
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime = @s fz.aviateCounter
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviateOneTime /= 200 calculator
execute unless score @s carpetBot matches 1 run scoreboard players operation @s fz.aviate1m += @s fz.aviateOneTime
execute unless score @s carpetBot matches 1 run scoreboard players operation fz.aviate1m += @s fz.aviateOneTime
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s fz.aviateOneTime
#重置滑翔探测记分板
scoreboard players operation @s fz.aviateCounter %= 200 calculator
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/aviate1m
@@ -1,2 +0,0 @@
#将交易榜显示给轮播记分板的队伍
scoreboard objectives setdisplay sidebar.team.gold fz.aviate1m
@@ -1,8 +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 @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 bedrockBreaked += @s fz.bbl
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s fz.bbl execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s fz.bbl
scoreboard players reset @s fz.bbl execute unless score @s carpetBot matches 1 run scoreboard players reset @s fz.bbl
#重置触发该函数的成就 #重置触发该函数的成就
advancement revoke @s only fz:scoreboards/bedrockbreaked advancement revoke @s only fz:scoreboards/bedrockbreaked
@@ -1,2 +1,2 @@
#将破基岩榜显示给轮播计分板的队伍 #将破基岩榜显示给轮播计分板的队伍
scoreboard objectives setdisplay sidebar.team.gold bedrockBreaked scoreboard objectives setdisplay sidebar.team.dark_gray bedrockBreaked
@@ -10,7 +10,6 @@ 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 1838019378 run team join green
execute if score @s config matches 1838019379 run team join dark_aqua 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 1838019369 run team join dark_green
execute if score @s config matches 1838019368 run team join light_purple
#每条子函数都要reset config分数和function fz:config/display #每条子函数都要reset config分数和function fz:config/display
scoreboard players reset @s config scoreboard players reset @s config
function fz:config/display function fz:config/display
@@ -2,8 +2,8 @@
#判断条件用于排除地毯小人 #判断条件用于排除地毯小人
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 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 @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 p抖M damageTaken += @s 10xDamageTaken
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s 10xDamageTaken execute unless score @s carpetBot matches 1 run scoreboard players operation p抖M totalList += @s 10xDamageTaken
#重置伤害探测记分板 #重置伤害探测记分板
scoreboard players reset @s 10xDamageTaken scoreboard players reset @s 10xDamageTaken
#重置触发该函数的成就 #重置触发该函数的成就
@@ -1,8 +1,8 @@
#计算死亡数和总榜 #计算死亡数和总榜
#判断条件用于排除地毯小人 #判断条件用于排除地毯小人
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 @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 deathCounter += @s deathTester
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s deathTester execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s deathTester
#重置死亡探测记分板 #重置死亡探测记分板
scoreboard players reset @s deathTester scoreboard players reset @s deathTester
#重置触发该函数的成就 #重置触发该函数的成就
@@ -8,6 +8,5 @@ scoreboard objectives remove damageTaken
scoreboard objectives remove activation scoreboard objectives remove activation
scoreboard objectives remove totalList scoreboard objectives remove totalList
scoreboard objectives remove bedrockBreaked scoreboard objectives remove bedrockBreaked
scoreboard objectives remove fz.aviate1m
#提示已删除 #提示已删除
tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"} tellraw @a {"text": "[信息]计分板数据已删除","color": "#5fff00"}
@@ -40,20 +40,16 @@ scoreboard objectives add activation dummy
scoreboard objectives add totalList dummy scoreboard objectives add totalList dummy
scoreboard objectives add bedrockBreaked dummy scoreboard objectives add bedrockBreaked dummy
scoreboard objectives add fz.bbl dummy scoreboard objectives add fz.bbl dummy
scoreboard objectives add fz.aviate1m dummy
scoreboard objectives add fz.aviateCounter minecraft.custom:aviate_one_cm
scoreboard objectives add fz.aviateOneTime dummy
scoreboard objectives modify activation displayname {"text": "活跃时间(h)","color": "aqua"} scoreboard objectives modify activation displayname {"text": "活跃时间(h)","color": "aqua"}
scoreboard objectives modify damageTaken displayname {"text": "受伤害榜","color": "yellow"} scoreboard objectives modify damageTaken displayname {"text": "抖M名单","color": "yellow"}
scoreboard objectives modify deathCounter displayname {"text": "死亡榜","color": "dark_red"} scoreboard objectives modify deathCounter displayname {"text": "死亡榜","color": "dark_red"}
scoreboard objectives modify digCounter displayname {"text": "挖掘榜","color": "gray"} scoreboard objectives modify digCounter displayname {"text": "挖掘榜","color": "gray"}
scoreboard objectives modify fishingCounter displayname {"text": "钓鱼榜","color": "blue"} scoreboard objectives modify fishingCounter displayname {"text": "钩直饵咸","color": "blue"}
scoreboard objectives modify killCounter displayname {"text": "击杀榜","color": "red"} scoreboard objectives modify killCounter displayname {"text": "击杀榜","color": "red"}
scoreboard objectives modify tradingCounter displayname {"text": "交易榜","color": "green"} scoreboard objectives modify tradingCounter displayname {"text": "易榜","color": "green"}
scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"} scoreboard objectives modify totalList displayname {"text": "总 量","color": "dark_aqua"}
scoreboard objectives modify bedrockBreaked displayname {"text": "破基岩榜","color": "dark_green"} scoreboard objectives modify bedrockBreaked displayname {"text": "铁头功","color": "dark_green"}
scoreboard objectives modify fz.aviate1m displayname {"text": "滑翔距离","color": "light_purple"}
team add gold team add gold
team add aqua team add aqua
@@ -65,8 +61,6 @@ team add red
team add green team add green
team add dark_aqua team add dark_aqua
team add dark_green team add dark_green
team add light_purple
team modify gold color gold team modify gold color gold
team modify aqua color aqua team modify aqua color aqua
team modify yellow color yellow team modify yellow color yellow
@@ -77,35 +71,31 @@ team modify red color red
team modify dark_aqua color dark_aqua team modify dark_aqua color dark_aqua
team modify green color green team modify green color green
team modify dark_green color dark_green team modify dark_green color dark_green
team modify light_purple color light_purple
team join aqua 线(h) team join aqua 线(h)
team join yellow team join yellow p抖M
team join dark_red team join dark_red
team join gray team join gray
team join blue team join blue
team join red team join red
team join green team join green
team join dark_green team join dark_green
team join light_purple
#各计分板的总量 #各计分板的总量
scoreboard players operation 线(h) activation = 线(h) activation scoreboard players operation 线(h) activation = 线(h) activation
scoreboard players operation damageTaken = damageTaken scoreboard players operation p抖M damageTaken = p抖M damageTaken
scoreboard players operation deathCounter = deathCounter scoreboard players operation deathCounter = deathCounter
scoreboard players operation digCounter = digCounter scoreboard players operation digCounter = digCounter
scoreboard players operation fishingCounter = fishingCounter scoreboard players operation fishingCounter = fishingCounter
scoreboard players operation killCounter = killCounter scoreboard players operation killCounter = killCounter
scoreboard players operation tradingCounter = tradingCounter scoreboard players operation tradingCounter = tradingCounter
scoreboard players operation fz.aviate1m = fz.aviate1m
#总榜的总量 #总榜的总量
scoreboard players operation 线(h) totalList = 线(h) totalList scoreboard players operation 线(h) totalList = 线(h) totalList
scoreboard players operation totalList = totalList scoreboard players operation p抖M totalList = p抖M totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
scoreboard players operation totalList = totalList scoreboard players operation totalList = totalList
scoreboard players operation totalList = totalList
scoreboard objectives setdisplay sidebar.team.aqua activation scoreboard objectives setdisplay sidebar.team.aqua activation
scoreboard objectives setdisplay sidebar.team.yellow damageTaken scoreboard objectives setdisplay sidebar.team.yellow damageTaken
@@ -116,7 +106,6 @@ scoreboard objectives setdisplay sidebar.team.red killCounter
scoreboard objectives setdisplay sidebar.team.dark_aqua totalList scoreboard objectives setdisplay sidebar.team.dark_aqua totalList
scoreboard objectives setdisplay sidebar.team.green tradingCounter scoreboard objectives setdisplay sidebar.team.green tradingCounter
scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked scoreboard objectives setdisplay sidebar.team.dark_green bedrockBreaked
scoreboard objectives setdisplay sidebar.team.light_purple fz.aviate1m
data merge storage fz.installed {scoreboards:1b} data merge storage fz.installed {scoreboards:1b}
@@ -5,8 +5,7 @@ schedule function fz:scoreboards/tradingcounter/setdisplay 30s replace
schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace schedule function fz:scoreboards/fishingcounter/setdisplay 40s replace
schedule function fz:scoreboards/damagetaken/setdisplay 50s replace schedule function fz:scoreboards/damagetaken/setdisplay 50s replace
schedule function fz:scoreboards/activation/setdisplay 60s replace schedule function fz:scoreboards/activation/setdisplay 60s replace
schedule function fz:scoreboards/aviate1m/setdisplay 70s replace schedule function fz:scoreboards/totallist 70s replace
schedule function fz:scoreboards/totallist 80s replace execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/bedrockbreaked/setdisplay 80s replace
execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/bedrockbreaked/setdisplay 90s replace execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 90s replace
execute if score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 100s replace execute unless score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 80s replace
execute unless score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 90s replace
@@ -1,6 +1,6 @@
#计算交易榜和总榜 #计算交易榜和总榜
scoreboard players add @s tradingCounter 1 scoreboard players add @s tradingCounter 1
scoreboard players add tradingCounter 1 scoreboard players add tradingCounter 1
scoreboard players add totalList 1 scoreboard players add totalList 1
#重置触发该函数的成就 #重置触发该函数的成就
advancement revoke @s only fz:scoreboards/tradingcounter advancement revoke @s only fz:scoreboards/tradingcounter
@@ -35,13 +35,11 @@ scoreboard objectives remove usedNetAxe
scoreboard objectives remove usedNetPickaxe scoreboard objectives remove usedNetPickaxe
scoreboard objectives remove usedNetShovel scoreboard objectives remove usedNetShovel
scoreboard objectives remove usedNetHoe scoreboard objectives remove usedNetHoe
scoreboard objectives remove fz.bbl scoreboard objectives remove fz.bbl
scoreboard objectives remove deathTester scoreboard objectives remove deathTester
scoreboard objectives remove fishingTester scoreboard objectives remove fishingTester
scoreboard objectives remove 10xDamageTaken scoreboard objectives remove 10xDamageTaken
scoreboard objectives remove fz.aviateCounter
scoreboard objectives remove fz.aviateOneTime
scoreboard objectives setdisplay sidebar.team.aqua scoreboard objectives setdisplay sidebar.team.aqua
scoreboard objectives setdisplay sidebar.team.yellow scoreboard objectives setdisplay sidebar.team.yellow
+9 -20
View File
@@ -1,4 +1,4 @@
global_version = '1.3.0'; global_version = '1.2.0';
__config() -> { __config() -> {
'scope' -> 'global', 'scope' -> 'global',
'stay_loaded' -> false 'stay_loaded' -> false
@@ -124,7 +124,6 @@ global_bl = ['stone', 'granite', 'polished_granite', 'diorite', 'polished_diorit
'cyan_candle', 'purple_candle', 'blue_candle', 'brown_candle', 'green_candle', 'red_candle', 'black_candle' 'cyan_candle', 'purple_candle', 'blue_candle', 'brown_candle', 'green_candle', 'red_candle', 'black_candle'
]; ];
__restore(pl, s_player) ->( __restore(pl, s_player) ->(
scoreboard_remove('fz.aviate1m');
scoreboard_remove('killCounter'); scoreboard_remove('killCounter');
scoreboard_remove('digCounter'); scoreboard_remove('digCounter');
scoreboard_remove('deathCounter'); scoreboard_remove('deathCounter');
@@ -133,7 +132,6 @@ __restore(pl, s_player) ->(
scoreboard_remove('damageTaken'); scoreboard_remove('damageTaken');
scoreboard_remove('activation'); scoreboard_remove('activation');
scoreboard_remove('totalList'); scoreboard_remove('totalList');
scoreboard_add('fz.aviate1m');
scoreboard_add('killCounter'); scoreboard_add('killCounter');
scoreboard_add('digCounter'); scoreboard_add('digCounter');
scoreboard_add('deathCounter'); scoreboard_add('deathCounter');
@@ -149,21 +147,15 @@ __restore(pl, s_player) ->(
total_killed = 0; total_killed = 0;
total_traded = 0; total_traded = 0;
total_hurt = 0; total_hurt = 0;
total_aviate = 0;
c_for(i = 0, i < length(pl), i += 1, c_for(i = 0, i < length(pl), i += 1,
run('player ' + pl:i + ' spawn'); run('player ' + pl:i + ' spawn');
game_tick(50); game_tick(50);
//活跃时间 //活跃时间
actime = statistic(pl:i, 'custom', 'play_time')/72000; actime = statistic(pl:i, 'custom', 'play_one_minute')/72000;
print(actime); print(actime);
scoreboard('activation', pl:i, actime); scoreboard('activation', pl:i, actime);
total_actime += actime; total_actime += actime;
//滑翔距离 //抖M榜
aviate = statistic(pl:i, 'custom', 'aviate_one_cm')/100;
print(aviate);
scoreboard('fz.aviate1m', pl:i, aviate);
total_aviate += aviate;
//受伤害榜
hurt = statistic(pl:i, 'custom', 'damage_taken')/100; hurt = statistic(pl:i, 'custom', 'damage_taken')/100;
print(hurt); print(hurt);
scoreboard('damageTaken', pl:i, hurt); scoreboard('damageTaken', pl:i, hurt);
@@ -199,22 +191,20 @@ __restore(pl, s_player) ->(
total_traded += traded; total_traded += traded;
run('player ' + pl:i + ' kill') run('player ' + pl:i + ' kill')
); );
scoreboard('tradingCounter', '总交易数', total_traded); scoreboard('tradingCounter', '总交易数', total_traded);
scoreboard('totalList', '总交易数', total_traded); scoreboard('totalList', '总交易数', total_traded);
scoreboard('killCounter', '总击杀数', total_killed); scoreboard('killCounter', '总击杀数', total_killed);
scoreboard('totalList', '总击杀数', total_killed); scoreboard('totalList', '总击杀数', total_killed);
scoreboard('fishingCounter', '总钓鱼数', total_fished); scoreboard('fishingCounter', '总钓鱼数', total_fished);
scoreboard('totalList', '总钓鱼数', total_fished); scoreboard('totalList', '总钓鱼数', total_fished);
scoreboard('digCounter', '总挖掘量', total_mined); scoreboard('digCounter', '总挖掘量', total_mined);
scoreboard('totalList', '总挖掘量', total_mined); scoreboard('totalList', '总挖掘量', total_mined);
scoreboard('deathCounter', '总死亡数', total_death); scoreboard('deathCounter', '全部木大', total_death);
scoreboard('totalList', '总死亡数', total_death); scoreboard('totalList', '全部木大', total_death);
scoreboard('activation', '总在线时间(h)', total_actime); scoreboard('activation', '总在线时间(h)', total_actime);
scoreboard('totalList', '总在线时间(h)', total_actime); scoreboard('totalList', '总在线时间(h)', total_actime);
scoreboard('damageTaken', '总受伤害量', total_hurt); scoreboard('damageTaken', '群p抖M', total_hurt);
scoreboard('totalList', '总受伤害量', total_hurt); scoreboard('totalList', '群p抖M', total_hurt);
scoreboard('fz.aviate1m', '总滑翔距离', total_aviate);
scoreboard('totalList', '总滑翔距离', total_aviate);
game_tick(50); game_tick(50);
print('完成!'); print('完成!');
run('function fz:scoreboards/install') run('function fz:scoreboards/install')
@@ -224,6 +214,5 @@ by_whitelist() ->(
s_player = player(); s_player = player();
game_tick(50); game_tick(50);
__restore(pl, s_player); __restore(pl, s_player);
print('done! ');
return() return()
) )