From 57ede60186b6f78a0cea7aa7de37ee8225bb90ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=B6=E7=9A=93?= <1214946206@qq.com> Date: Fri, 10 Jun 2022 15:25:14 +0800 Subject: [PATCH] fix #I5BP3U --- data/fz/advancements/config/unsneak.json | 4 +++- data/fz/functions/load.mcfunction | 2 +- pack.mcmeta | 2 +- {scripts => tools}/score_move.py | 0 4 files changed, 5 insertions(+), 3 deletions(-) rename {scripts => tools}/score_move.py (100%) diff --git a/data/fz/advancements/config/unsneak.json b/data/fz/advancements/config/unsneak.json index a6e6f8d..7d2ca7b 100644 --- a/data/fz/advancements/config/unsneak.json +++ b/data/fz/advancements/config/unsneak.json @@ -8,7 +8,9 @@ "condition": "minecraft:entity_properties", "entity": "this", "predicate": { - "player": { + "type": "minecraft:player", + "type_specific": { + "type": "player", "advancements": { "fz:config/sneak": true } diff --git a/data/fz/functions/load.mcfunction b/data/fz/functions/load.mcfunction index 456fc1e..1e3bb0c 100644 --- a/data/fz/functions/load.mcfunction +++ b/data/fz/functions/load.mcfunction @@ -1,5 +1,5 @@ #新版本号 -data modify storage fz:survival newVersion set value [2,1,3,2] +data modify storage fz:survival newVersion set value [2,2,0] execute if data storage fz:survival newVersion[3] run data modify storage fz:survival snapshot set value 1b execute unless data storage fz:survival newVersion[3] run data remove storage fz:survival snapshot ##data remove storage fz:survival snapshot diff --git a/pack.mcmeta b/pack.mcmeta index 79b7482..4508427 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "description": "FZ's Datapack - Code By Harvey_Husky", - "pack_format": 7 + "pack_format": 10 } } \ No newline at end of file diff --git a/scripts/score_move.py b/tools/score_move.py similarity index 100% rename from scripts/score_move.py rename to tools/score_move.py