Remove reimporting logic from importer

This commit is contained in:
2026-10-28 21:47:52 -03:00
parent 872db88066
commit fa0748a9c5
7 changed files with 16 additions and 81 deletions
+2 -5
View File
@@ -47,9 +47,7 @@ options:
{ "textures": { "minecraft:block/": "bworld:" }, "models": {}, "ids": {}, "tags": {},
"skip": ["crimson"] }
minecraft's block and item textures, blocks, items and tags become bworld's of the same name,
and forge's shared tags c's, unless it says otherwise
--blocks FILE json of fields blocks get by id, over the placeholders, for blockstate. what java sets in
code, like components and mining: { "gears:shaft": { "components": {...} } }`;
and forge's shared tags c's, unless it says otherwise`;
function parse_args(args: string[]) {
const positional: string[] = [];
@@ -73,8 +71,7 @@ function parse_args(args: string[]) {
tags: { ...DEFAULT_REMAPS.tags, ...remap.tags },
...(remap.skip ? { skip: remap.skip } : {}),
};
} else if (arg === "--blocks") options.blocks = JSON.parse(Deno.readTextFileSync(value()));
else if (arg.startsWith("--")) throw new Error(`unknown option ${arg}`);
} else if (arg.startsWith("--")) throw new Error(`unknown option ${arg}`);
else positional.push(arg);
}
return { positional, options };