兼容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
}
} }
} }
} }