Add various generic models

This commit is contained in:
2026-10-12 17:56:47 -03:00
parent e5baeab193
commit d4eff11f3e
34 changed files with 786 additions and 251 deletions
+2 -3
View File
@@ -25,7 +25,7 @@ options:
--output PATH the file (for one input file) or the folder to write. one model without it is printed
--namespace NS the namespace, when the input isn't inside assets/<namespace>/, or the only one to take from a
folder with several
--parents FOLDER another folder to find parent models in, like another mod's resources. can be repeated
--parents FOLDER another folder to follow parent models through, like another mod's resources. can be repeated
--remap FILE json that renames locations before they become ids, longest match first:
{ "textures": { "minecraft:block/": "bworld:" }, "models": {} }
minecraft's block and item textures become bworld's of the same name unless it says otherwise`;
@@ -71,9 +71,8 @@ function print_report(report: ImportReport) {
console.error(`warning: ${warning} (${locations.length === 1 ? locations[0] : `${locations.length} files`})`);
}
const converted = new Set(report.written.map(({ location }) => location)).size;
const parents = report.parents.length > 0 ? `${report.parents.length} only parents, ` : "";
console.error(
`${converted} converted, ${parents}${report.skipped.length} skipped, ${report.errors.length} with errors`,
`${converted} converted, ${report.skipped.length} skipped, ${report.errors.length} with errors`,
);
}