From 1b18ff0218269f937d9c9cfa1bb5ea13a256b72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=B6=E7=9A=93?= <1214946206@qq.com> Date: Tue, 2 Aug 2022 00:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B91.18=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ++++- data/fzsd/advancements/game_event/on_unsneak.json | 7 +++++++ data/fzsd/functions/boot.mcfunction | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 61f84de..82fea75 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,5 +16,8 @@ "TEXT": "{\"text\": \"${1:TEXT}\", \"color\": \"${2:COLOR}\"}", "storageText": "{\"nbt\": \"${1:NBT}\", \"interpret\": true, \"storage\": \"${2:A namespaced ID}\"}", "ifInstalled": "execute if data storage fz:installed fz.module{${1:module_name}:1b} run ${tellraw}" - } + }, + "datapack.env.cmdVersion": "1.19", + "datapack.env.jsonVersion": "1.19", + "datapack.env.dataVersion": "1.19" } \ No newline at end of file diff --git a/data/fzsd/advancements/game_event/on_unsneak.json b/data/fzsd/advancements/game_event/on_unsneak.json index c2b20c4..93e9353 100644 --- a/data/fzsd/advancements/game_event/on_unsneak.json +++ b/data/fzsd/advancements/game_event/on_unsneak.json @@ -16,11 +16,18 @@ "flags": { "is_sneaking": false }, + "__comment_type_specific": "1.19+", "type_specific": { "type": "player", "advancements": { "fzsd:game_event/on_sneak": true } + }, + "__comment_player": "1.18 compat", + "player": { + "advancements": { + "fzsd:game_event/on_sneak": true + } } } } diff --git a/data/fzsd/functions/boot.mcfunction b/data/fzsd/functions/boot.mcfunction index 710ffc2..6cc0539 100644 --- a/data/fzsd/functions/boot.mcfunction +++ b/data/fzsd/functions/boot.mcfunction @@ -1,4 +1,4 @@ -execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd:{version: '3.0.0-beta.6'}} +execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd: {version: '3.0.0-beta.6'}} execute if data storage fzsd:version fzsd{need_update: 1} run function fzsd:system/update function fzsd:system/carpet/try_load_fzsd_score function #fzsd:load