Compare commits

..

21 Commits

Author SHA1 Message Date
延皓 c276806d36 update README.md.
Signed-off-by: 延皓 <harvey_husky@foxmail.com>
2023-07-24 12:46:08 +00:00
延皓 eaea64cd2d !10 美化README;修复restore_scores.sc的各种bug
Merge pull request !10 from MAX_小葵/2.1-no-memes
2021-08-02 22:31:10 +00:00
MAX_小葵 40ccee8f9c 修复导入的总榜受伤害量bug 2021-07-31 01:01:32 +08:00
MAX_小葵 a80d141be2 美化README;修复restore_score.sc的bug 2021-07-29 22:51:50 +08:00
延皓 d096df4784 2.1.2 2021-07-26 05:56:24 +08:00
延皓 24290e4c2d 2.1.2 2021-07-21 01:44:55 +08:00
延皓 ae6173aa65 2.1.2. 2021-07-21 01:36:53 +08:00
延皓 a474384b89 2.1.2 2021-07-21 01:25:50 +08:00
延皓 8a847cf1a5 2.1.2 2021-07-21 01:22:16 +08:00
延皓 91719e8760 2.1.2 2021-07-21 01:17:39 +08:00
延皓 a86e91b6c2 2.1.1 2021-07-20 02:03:28 +08:00
延皓 9c8ccb2c0f 2.1.1 2021-07-20 01:59:34 +08:00
延皓 e944acbbcf 2.1.1 2021-07-20 01:50:28 +08:00
延皓 04031715a3 !7 【轻量级 PR】:改“cm”为“HP”且去掉黄色
Merge pull request !7 from MAX_小葵/N/A
2021-07-04 01:54:38 +00:00
MAX_小葵 3ec5ddaea0 改“cm”为“HP” 2021-07-04 00:22:53 +00:00
延皓 919c4c0daa Update README.md 2021-07-04 00:19:47 +08:00
延皓 447fb22652 2.1.0 2021-07-04 00:11:04 +08:00
延皓 83d1a51093 2.1.0 2021-07-04 00:03:48 +08:00
延皓 ab9137fb9c 2.1.0 2021-07-03 23:59:43 +08:00
延皓 7177cde508 2.1.0 2021-07-03 23:38:51 +08:00
延皓 b259706807 2.1.0 2021-07-03 18:55:08 +08:00
26 changed files with 280 additions and 857 deletions
+51 -39
View File
@@ -4,59 +4,71 @@ A Minecraft Datapack
#### This project is licensed under the terms of the GNU General Public License v3.0.
#### Copyright (C)2019-2021 Harvey_Husky
### 总览
- v2.1.x支持Minecraft1.17+
- v2.0.x支持Minecraft1.16.3-1.16.5
[B站链接](https://www.bilibili.com/read/cv4267319)
## 总览
- 抬头并按一下shift来打开设置界面
- 提供玩家挖掘、死亡、击杀、受伤、交易、钓鱼、滑翔、(破基岩)数据的榜单
- 无需配置即可支持该铁头功破基岩榜Modhttps://gitee.com/harvey-husky/FZ-BBL/releases
- 提供扫地机
- 配套的无需配置即可支持该铁头功破基岩榜Mod:[FZ-BBL](https://gitee.com/harvey-husky/FZ-BBL/releases)
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
- 记分板对照表:
- activation - 活跃时间(h)
- damageTaken - 受伤害榜
- deathCounter - 死亡榜
- digCounter - 挖掘榜
- fishingCounter - 钓鱼榜
- killCounter - 击杀榜
- tradingCounter - 交易榜
- totalList - 总 量
- bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) - 铁头功
- fz.aviate1m - 滑翔距离
- 提供一些地毯脚本:*请在升级数据包的同时替换这些工具!!*
| Object Name | 内容 |
| ----------- | ---- |
| activation | 活跃时间(h) |
| damageTaken | 受伤害榜 |
| deathCounter | 死亡榜 |
| digCounter | 挖掘榜 |
| fishingCounter | 钓鱼榜 |
| killCounter | 击杀榜 |
| tradingCounter | 交易榜 |
| totalList | 总 量 |
| bedrockBreaked(最开始拼错了,后来不方便改了,不要在意) | [铁头功破基岩](https://www.bilibili.com/video/BV1KJ411b73z) |
| fz.aviate1m | 滑翔距离 |
- 提供一些地毯脚本(.sc文件):***请在升级数据包的同时替换这些工具!!***
- 安装方法:
- 需要carpet mod 1.4.24+https://github.com/gnembon/fabric-carpet/releases
- 将其放入world/scripts”中(在客户端位于.minecraft/saves/存档名/scripts”或“.minecraft/config/carpet/scripts”)
- here.sc
-/here向所有人发送自己的位置和所在维度
- 需要[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后,左键高亮该坐标,ctrl+左键新建坐标点
- c.sc
- “/c”修改玩家模式为旁观模式
- s.sc
- “/s”修改玩家模式为生存模式
- tagplayer.sc
- 安装[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:用于控制是否允许生成白名单内的玩家
- `allow_bot_tp`:用于控制是否允许tp假人
- `allow_spawning_whitelist_players`:用于控制是否允许生成白名单内的玩家
- 使用方法:
- 输入“/script load tagplayer”加载工具
- 包含全部地毯假人自带的功能,以及新功能,如:
- “/tagplayer check xxx”:检查玩家的状态
-/tagplayer checkall”:检查所有玩家的状态
- “/tagplayer killall”:清除所有假人
- 其他用法可以在游戏内输入“/tagplayer”查看
- restore_scores.sc
- 安装[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`查看
### `restore_scores.sc`
- 从数据包1.4升级时也需要使用这个工具
- 这个工具可以从白名单读取玩家列表,逐一召唤假人,读取统计信息并赋值给记分板
- 悄悄说一句没白名单的服把usercache.json复制一份改成whitelist.json就可以啦
- *注意:原有的记分板会被删除*
- 使用方法:
- 输入/script load restore_scores加载工具
- 输入/restore_scores by_whitelist开始恢复
- 输入/script unload restore_scores卸载工具
- 输入`/script load restore_scores`加载工具
- 输入`/restore_scores by_whitelist`开始恢复
- 输入`/script unload restore_scores`卸载工具
- 记得用完就删掉它!
### 更新日志
- v2.1.x支持Minecraft1.17+
- v2.0.x支持Minecraft1.16.3-1.16.5
##### v2.1.2/2.0.10
- 添加鞘翅滑翔距离榜单
##### v2.1.0
@@ -91,7 +103,7 @@ A Minecraft Datapack
- 无需配置即可支持该铁头功破基岩榜Modhttps://gitee.com/harvey-husky/FZ-BBL/releases
- 破基岩榜的分数和订阅设置会在铁头功记分板的总分大于0时显示,以免未添加该mod的服务器显示破基岩榜
##### v2.0.0.11
- /tagplayer spawn xxx后面现在可以追加“at”、“facing”、“in”参数
- `/tagplayer spawn xxx`后面现在可以追加`at``facing``in`参数
##### v2.0.0.10
- 扫地机添加了位于怪物血条栏的文字提示,同时添加了各种提示的开关功能
##### v2.0.0.9
@@ -102,7 +114,7 @@ A Minecraft Datapack
- tagplayer添加了新版carpet新指令,可以为假人切换热键栏
- 现在tagplayer需要carpet1.4.21或以上版本运行!
- 现在tagplayer可以给自己设置动作了
- 添加/tagplayer shadow指令将自己变为前缀为“挂机”的假人
- 添加`/tagplayer shadow`指令将自己变为前缀为`挂机`的假人
##### v2.0.0.6
- 修复restore_scores.sc工具不能恢复受伤害榜(抖M榜)的bug
##### v2.0.0.5
-1
View File
@@ -11,7 +11,6 @@
"entity": "this",
"scores": {
"leaveGame": {
"min": -2147483648,
"max": 0
}
}
@@ -9,7 +9,6 @@
"entity": "this",
"scores": {
"actimeCounter": {
"max": 3600,
"min": 3600
}
}
@@ -9,8 +9,7 @@
"entity": "this",
"scores": {
"fz.aviateCounter": {
"min": 200,
"max": 2147483647
"min": 200
}
}
}
@@ -9,8 +9,7 @@
"entity": "this",
"scores": {
"fz.bbl": {
"min": 1,
"max": 2147483647
"min": 1
}
}
}
@@ -9,8 +9,7 @@
"entity": "this",
"scores": {
"10xDamageTaken": {
"min": 1,
"max": 2147483647
"min": 1
}
}
}
@@ -9,8 +9,7 @@
"entity": "this",
"scores": {
"deathTester": {
"min": 1,
"max": 2147483647
"min": 1
}
}
}
@@ -11,8 +11,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedWooShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -21,8 +20,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedWooPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -31,8 +29,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedWooHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -41,8 +38,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedWooAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -51,8 +47,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedStoShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -61,8 +56,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedStoPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -71,8 +65,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedStoHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -81,8 +74,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedStoAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -91,8 +83,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedNetShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -101,8 +92,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedNetPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -111,8 +101,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedNetHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -121,8 +110,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedNetAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -131,8 +119,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedIroShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -141,8 +128,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedIroPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -151,8 +137,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedIroHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -161,8 +146,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedIroAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -171,8 +155,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedGolShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -181,8 +164,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedGolPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -191,8 +173,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedGolHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -201,8 +182,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedGolAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -211,8 +191,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedDiaShovel": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -221,8 +200,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedDiaPickaxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -231,8 +209,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedDiaHoe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -241,8 +218,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedDiaAxe": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -251,8 +227,7 @@
"condition": "minecraft:entity_scores",
"scores": {
"usedShears": {
"min": 1,
"max": 2147483647
"min": 1
}
},
"entity": "this"
@@ -1,484 +1,57 @@
{
"criteria": {
"used_axe_on_block": {
"right_click_tools": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_axe"
}
}
}
}
"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"
]
}
]
}
},
"attacked_with_axe": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_axe"
}
}
}
}
]
}
]
}
},
"used_shovel_on_block": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_shovel"
}
}
}
}
]
}
]
}
},
"attacked_with_shovel": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_shovel"
}
}
}
}
]
}
]
}
},
"used_hoe_on_block": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_hoe"
}
}
}
}
]
}
]
}
},
"attacked_with_hoe": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_hoe"
}
}
}
}
]
}
"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"
]
}
}
}
}
},
"requirements": [
[
"used_axe_on_block",
"attacked_with_axe",
"used_shovel_on_block",
"attacked_with_shovel",
"used_hoe_on_block",
"attacked_with_hoe"
]
],
"rewards": {
"function": "fz:scoreboards/digcounter/toolsfix"
}
@@ -1,217 +1,48 @@
{
"criteria": {
"offhand_placed_fix": {
"trigger": "minecraft:placed_block",
"tools_hit_entities": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": [
{
"condition": "minecraft:alternative",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_shovel"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_hoe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:iron_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:golden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:wooden_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:stone_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:diamond_axe"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"item": "minecraft:netherite_axe"
"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"
}
"rewards": {"function": "fz:scoreboards/digcounter/toolsfix2"}
}
@@ -9,8 +9,7 @@
"entity": "this",
"scores": {
"fishingTester": {
"min": 1,
"max": 2147483647
"min": 1
}
}
}
+4 -4
View File
@@ -21,8 +21,8 @@ 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"}
##计分板显示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": "[抖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"}}]
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": "[抖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": "#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"}}]
+1 -1
View File
@@ -1,6 +1,6 @@
#安装血量显示
#初始化
scoreboard objectives add Health health {"text": "cm","color": "yellow"}
scoreboard objectives add Health health {"text": "HP"}
scoreboard objectives modify Health rendertype hearts
scoreboard objectives setdisplay list Health
scoreboard objectives setdisplay belowName Health
+17 -4
View File
@@ -18,15 +18,28 @@ function fz:login/logintips/install
function fz:carpet/carpet
#版本信息
data merge storage fz.installed {installed: 1b}
data merge storage fz {version: 2.0.10}
data merge storage fz {date: 2021-7.26}
data merge storage fz {time: "5:44"}
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"}
#测试用的输出
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
#info: #5fff00
#alert: #d7ff00
#warn: #ffd900
#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 if data storage fz {version: 2.0.10} if data storage fz.installed {installed: 1b} run function fz:start
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.0.10} run function fz:update
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"}]
@@ -10,6 +10,7 @@ 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
@@ -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 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 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
@@ -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 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 p抖M totalList += @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
#重置触发该函数的成就
@@ -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 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 deathCounter += @s deathTester
execute unless score @s carpetBot matches 1 run scoreboard players operation totalList += @s deathTester
#重置死亡探测记分板
scoreboard players reset @s deathTester
#重置触发该函数的成就
@@ -1,7 +1,7 @@
#为digtrigger函数修正非挖掘的使用带来的加分(使)
#为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
#铲子和锄头的方块判断居然只响应产物不响应原方块
@@ -1,7 +1,6 @@
#为digtrigger函数修正非挖掘的使用带来的加分()
#为digtrigger函数修正非挖掘的使用带来的加分(使)
#判断条件用于排除地毯小人
execute unless score @s carpetBot matches 1 run scoreboard players add @s digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players add digCounter 1
execute unless score @s carpetBot matches 1 run scoreboard players add totalList 1
#重置探测右键副手放置时主手有工具的成就
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/toolsfix2
@@ -45,14 +45,14 @@ scoreboard objectives add fz.aviate1m dummy
scoreboard objectives add fz.aviateOneTime dummy
scoreboard objectives modify activation displayname {"text": "活跃时间(h)","color": "aqua"}
scoreboard objectives modify damageTaken displayname {"text": "抖M名单","color": "yellow"}
scoreboard objectives modify damageTaken displayname {"text": "受伤害榜","color": "yellow"}
scoreboard objectives modify deathCounter displayname {"text": "死亡榜","color": "dark_red"}
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 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 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
@@ -80,31 +80,31 @@ team modify dark_green color dark_green
team modify light_purple color light_purple
team join aqua 线(h)
team join yellow p抖M
team join dark_red
team join yellow
team join dark_red
team join gray
team join blue
team join red
team join green
team join dark_green
team join green
team join dark_green
team join light_purple
#各计分板的总量
scoreboard players operation 线(h) activation = 线(h) activation
scoreboard players operation p抖M damageTaken = p抖M damageTaken
scoreboard players operation deathCounter = deathCounter
scoreboard players operation damageTaken = damageTaken
scoreboard players operation deathCounter = deathCounter
scoreboard players operation digCounter = digCounter
scoreboard players operation fishingCounter = fishingCounter
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 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 objectives setdisplay sidebar.team.aqua activation
@@ -7,6 +7,6 @@ schedule function fz:scoreboards/damagetaken/setdisplay 50s replace
schedule function fz:scoreboards/activation/setdisplay 60s replace
schedule function fz:scoreboards/aviate1m/setdisplay 70s replace
schedule function fz:scoreboards/totallist 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 100s replace
execute unless score bedrockBreaked matches 1.. run schedule function fz:scoreboards/main 90s 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 100s 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 tradingCounter 1
scoreboard players add totalList 1
scoreboard players add tradingCounter 1
scoreboard players add totalList 1
#重置触发该函数的成就
advancement revoke @s only fz:scoreboards/tradingcounter
+2 -2
View File
@@ -1,6 +1,6 @@
{
"pack": {
"description": "FZ's Datapack - Code By Harvey_kang",
"pack_format": 6
"description": "FZ's Datapack - Code By Harvey_Husky",
"pack_format": 7
}
}
+44 -18
View File
@@ -1,10 +1,10 @@
global_version = '1.1.1';
global_version = '1.3.0';
__config() -> {
'scope' -> 'global',
'stay_loaded' -> false
};
__command() -> print('版本:' + global_version);
global_bl = l('stone', 'granite', 'polished_granite', 'diorite', 'polished_diorite', 'andesite', 'polished_andesite', 'grass_block',
global_bl = ['stone', 'granite', 'polished_granite', 'diorite', 'polished_diorite', 'andesite', 'polished_andesite', 'grass_block',
'dirt', 'coarse_dirt', 'podzol', 'crimson_nylium', 'warped_nylium', 'cobblestone', 'oak_planks', 'spruce_planks', 'birch_planks',
'jungle_planks', 'acacia_planks', 'dark_oak_planks', 'crimson_planks', 'warped_planks', 'sand', 'red_sand', 'gravel', 'gold_ore',
'iron_ore', 'coal_ore', 'nether_gold_ore', 'oak_log', 'spruce_log', 'birch_log', 'jungle_log', 'acacia_log', 'dark_oak_log',
@@ -101,9 +101,30 @@ global_bl = l('stone', 'granite', 'polished_granite', 'diorite', 'polished_diori
'light_weighted_pressure_plate', 'heavy_weighted_pressure_plate', 'daylight_detector', 'redstone_block', 'hopper', 'dropper',
'iron_trapdoor', 'observer', 'iron_door', 'oak_door', 'spruce_door', 'birch_door', 'jungle_door', 'acacia_door', 'dark_oak_door',
'crimson_door', 'warped_door', 'repeater', 'comparator', 'redstone', 'lectern', 'target', 'powered_rail', 'detector_rail',
'rail', 'activator_rail', 'beacon', 'turtle_egg', 'conduit', 'brewing_stand', 'cauldron'
);
'rail', 'activator_rail', 'beacon', 'turtle_egg', 'conduit', 'brewing_stand', 'cauldron', 'sculk_sensor', 'raw_iron_block',
'raw_copper_block', 'raw_gold_block', 'powder_snow', 'candle', 'deepslate_coal_ore', 'deepslate_iron_ore', 'deepslate_copper_ore',
'deepslate_lapis_ore', 'deepslate_gold_ore', 'deepslate_redstone_ore', 'deepslate_diamond_ore', 'deepslate_emerald_ore',
'cobbled_deepslate', 'infested_stone', 'infested_cobblestone', 'infested_stone_bricks', 'infested_cracked_stone_bricks',
'infested_mossy_stone_bricks', 'infested_chiseled_stone_bricks', 'infested_deepslate', 'deepslate', 'chiseled_deepslate',
'polished_deepslate', 'spore_blossom', 'hanging_roots', 'rooted_dirt', 'dirt_path', 'farmland', 'wall_torch', 'tall_grass',
'tall_seagrass', 'big_dripleaf', 'small_dripleaf', 'glow_berries', 'cave_vines', 'cave_vines_plant', 'moss_carpet', 'moss_block',
'flowering_azalea_leaves', 'azalea_leaves', 'azalea', 'flowering_azalea', 'glow_lichen', 'dripstone_block', 'pointed_dripstone',
'lightning_rod', 'cobbled_deepslate_stairs', 'polished_deepslate_stairs', 'deepslate_brick_stairs', 'deepslate_tile_stairs',
'cut_copper_stairs', 'exposed_cut_copper_stairs', 'weathered_cut_copper_stairs', 'oxidized_cut_copper_stairs',
'waxed_cut_copper_stairs', 'waxed_exposed_cut_copper_stairs', 'waxed_weathered_cut_copper_stairs',
'waxed_oxidized_cut_copper_stairs', 'cobbled_deepslate_slab', 'polished_deepslate_slab', 'deepslate_brick_slab',
'deepslate_tile_slab', 'cut_copper_slab', 'exposed_cut_copper_slab', 'weathered_cut_copper_slab', 'oxidized_cut_copper_slab',
'waxed_cut_copper_slab', 'waxed_exposed_cut_copper_slab', 'waxed_weathered_cut_copper_slab', 'waxed_oxidized_cut_copper_slab',
'copper_block', 'exposed_copper', 'weathered_copper', 'oxidized_copper', 'cut_copper', 'exposed_cut_copper',
'weathered_cut_copper', 'oxidized_cut_copper', 'waxed_copper_block', 'waxed_exposed_copper', 'waxed_weathered_copper',
'waxed_oxidized_copper', 'waxed_cut_copper', 'waxed_exposed_cut_copper', 'waxed_weathered_cut_copper', 'waxed_oxidized_cut_copper',
'copper_ore', 'tinted_glass', 'smooth_basalt', 'calcite', 'amethyst_block', 'budding_amethyst', 'amethyst_cluster',
'small_amethyst_bud', 'medium_amethyst_bud', 'large_amethyst_bud', 'amethyst_cluster', 'tuff', 'white_candle', 'orange_candle',
'magenta_candle', 'light_blue_candle', 'yellow_candle', 'lime_candle', 'pink_candle', 'gray_candle', 'light_gray_candle',
'cyan_candle', 'purple_candle', 'blue_candle', 'brown_candle', 'green_candle', 'red_candle', 'black_candle'
];
__restore(pl, s_player) ->(
scoreboard_remove('fz.aviate1m');
scoreboard_remove('killCounter');
scoreboard_remove('digCounter');
scoreboard_remove('deathCounter');
@@ -112,6 +133,7 @@ __restore(pl, s_player) ->(
scoreboard_remove('damageTaken');
scoreboard_remove('activation');
scoreboard_remove('totalList');
scoreboard_add('fz.aviate1m');
scoreboard_add('killCounter');
scoreboard_add('digCounter');
scoreboard_add('deathCounter');
@@ -127,15 +149,21 @@ __restore(pl, s_player) ->(
total_killed = 0;
total_traded = 0;
total_hurt = 0;
total_aviate = 0;
c_for(i = 0, i < length(pl), i += 1,
run('player ' + pl:i + ' spawn');
game_tick(50);
//活跃时间
actime = statistic(pl:i, 'custom', 'play_one_minute')/72000;
actime = statistic(pl:i, 'custom', 'play_time')/72000;
print(actime);
scoreboard('activation', pl:i, 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;
print(hurt);
scoreboard('damageTaken', pl:i, hurt);
@@ -171,33 +199,31 @@ __restore(pl, s_player) ->(
total_traded += traded;
run('player ' + pl:i + ' kill')
);
scoreboard('tradingCounter', '总交易数', total_traded);
scoreboard('totalList', '总交易数', total_traded);
scoreboard('tradingCounter', '总交易数', total_traded);
scoreboard('totalList', '总交易数', total_traded);
scoreboard('killCounter', '总击杀数', total_killed);
scoreboard('totalList', '总击杀数', total_killed);
scoreboard('fishingCounter', '总钓鱼数', total_fished);
scoreboard('totalList', '总钓鱼数', total_fished);
scoreboard('digCounter', '总挖掘量', total_mined);
scoreboard('totalList', '总挖掘量', total_mined);
scoreboard('deathCounter', '全部木大', total_death);
scoreboard('totalList', '全部木大', total_death);
scoreboard('deathCounter', '总死亡数', total_death);
scoreboard('totalList', '总死亡数', total_death);
scoreboard('activation', '总在线时间(h)', total_actime);
scoreboard('totalList', '总在线时间(h)', total_actime);
scoreboard('damageTaken', '群p抖M', total_hurt);
scoreboard('totalList', '群p抖M', total_hurt);
scoreboard('damageTaken', '总受伤害量', total_hurt);
scoreboard('totalList', '总受伤害量', total_hurt);
scoreboard('fz.aviate1m', '总滑翔距离', total_aviate);
scoreboard('totalList', '总滑翔距离', total_aviate);
game_tick(50);
print('完成!');
run('function fz:scoreboards/install')
);
by_whitelist() ->(
pl = keys(system_info('server_whitelist'));
s_player = player();
//c_for(i = 0, i < length(pl), i += 1,
// run('player ' + pl:i + ' spawn at ' + (s_player~'x'+0.1)+ ' ' +s_player~'y'+ ' ' +(s_player~'z'+0.1));
//);
game_tick(50);
__restore(pl, s_player);
//c_for(i = 0, i < length(pl), i += 1,
// run('player ' + pl:i + ' kill');
//);
print('done! ');
return()
)