Add lang and post_effect generators

This commit is contained in:
Misode
2024-11-25 18:02:37 +01:00
parent b54abd5273
commit ac37928557
3 changed files with 18 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ export async function fetchPreset(versionId: VersionId, registry: string, id: st
if (id.startsWith('immersive_weathering:')) {
url = `https://raw.githubusercontent.com/AstralOrdana/Immersive-Weathering/main/src/main/resources/data/immersive_weathering/block_growths/${id.slice(21)}.json`
} else {
const type = ['atlases', 'blockstates', 'items', 'models', 'font'].includes(registry) ? 'assets' : 'data'
const type = ['atlases', 'blockstates', 'items', 'font', 'lang', 'models', 'post_effect'].includes(registry) ? 'assets' : 'data'
url = `${mcmeta(version, type)}/${type}/minecraft/${registry}/${id}.json`
}
const res = await fetch(url)