兼容1.18!

This commit is contained in:
延皓 2022-08-02 00:24:48 +08:00
parent 1defc59eb5
commit 1b18ff0218
3 changed files with 12 additions and 2 deletions

View File

@ -16,5 +16,8 @@
"TEXT": "{\"text\": \"${1:TEXT}\", \"color\": \"${2:COLOR}\"}", "TEXT": "{\"text\": \"${1:TEXT}\", \"color\": \"${2:COLOR}\"}",
"storageText": "{\"nbt\": \"${1:NBT}\", \"interpret\": true, \"storage\": \"${2:A namespaced ID}\"}", "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}" "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"
} }

View File

@ -16,11 +16,18 @@
"flags": { "flags": {
"is_sneaking": false "is_sneaking": false
}, },
"__comment_type_specific": "1.19+",
"type_specific": { "type_specific": {
"type": "player", "type": "player",
"advancements": { "advancements": {
"fzsd:game_event/on_sneak": true "fzsd:game_event/on_sneak": true
} }
},
"__comment_player": "1.18 compat",
"player": {
"advancements": {
"fzsd:game_event/on_sneak": true
}
} }
} }
} }

View File

@ -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 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:system/carpet/try_load_fzsd_score
function #fzsd:load function #fzsd:load