Hand crank and shafts

This commit is contained in:
2026-10-15 11:45:12 -03:00
parent cedc7725b5
commit a0596ed0ef
27 changed files with 1008 additions and 36 deletions
+5 -2
View File
@@ -46,7 +46,9 @@ 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`;
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": {...} } }`;
function parse_args(args: string[]) {
const positional: string[] = [];
@@ -70,7 +72,8 @@ function parse_args(args: string[]) {
tags: { ...DEFAULT_REMAPS.tags, ...remap.tags },
...(remap.skip ? { skip: remap.skip } : {}),
};
} else if (arg.startsWith("--")) throw new Error(`unknown option ${arg}`);
} else if (arg === "--blocks") options.blocks = JSON.parse(Deno.readTextFileSync(value()));
else if (arg.startsWith("--")) throw new Error(`unknown option ${arg}`);
else positional.push(arg);
}
return { positional, options };