fz-survival-datapack/data/fzsd/function/boot.mcfunction

6 lines
584 B
Mcfunction
Raw Permalink Normal View History

2024-06-22 23:53:22 +08:00
execute store success storage fzsd:version fzsd.need_update byte 1 run data merge storage fzsd:version {fzsd: {version: '3.2'}}
execute if data storage fzsd:version fzsd{need_update: 1b} run function fzsd:system/update
function #fzsd:load
2024-06-22 23:53:22 +08:00
function fzsd:system/carpet/try_load_fzsd_score
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "FZ Survival Data Pack当前版本", "color": "gold"}, {"nbt":"fzsd.version", "storage": "fzsd:version", "color": "red"}]