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
+5 -5
View File
@@ -66,7 +66,7 @@ Six rules that keep the work small:
1. **Import data, don't hand-write it.** One tool converts Create's models, textures, blockstates, recipes, tags, loot,
names and worldgen into bworld's formats, and reports what it couldn't convert. Hundreds of blocks then cost the same
as one, and re-running it after a fix redoes all of them. This replaces Create's datagen entirely.
as one. It's run once to start from, and what it made is edited by hand after. This replaces Create's datagen.
2. **Port Create's architecture onto bworld's, not its classes.** Create builds every machine from a few shared pieces
(block entity behaviours, a rotation network, processing recipes, instance types). Each piece becomes one bworld
piece, and then the machines are mostly data plus a little code (see [Architecture](#architecture)).
@@ -123,10 +123,10 @@ shared tags to `c`, which is what bworld calls them. A mod's remap file is where
| `sound` | `assets/*/sounds.json`, `sounds/**.ogg` | sounds, once the engine has them (S8) | |
| `mod` | all of the above | a whole mod folder with a manifest, and one report | |
Block properties (shape, tool, toughness) aren't in any data file: Java mods set them in code. `mod` writes a block for
each blockstate with placeholder properties, and a per-mod table fills them in. For Create that table is
`mods/create/import/blocks.json`. Built for `blockstate` as `--blocks FILE`: each block's fields in it, like its
`components`, replace the ones the importer would write, and a block it names that isn't made is an error.
Block properties (shape, tool, toughness) aren't in any data file: Java mods set them in code. `blockstate` writes a
block for each blockstate with placeholder properties, and what a block really has, like its `components`, is written
into its file by hand after. The importer is a starting point, not something to run again over a mod that's been worked
on, since that would write over those changes.
**What `model` does today.** It keeps `parent`, since the engine merges parents in when it loads (see
[Parents](docs/modding/resources/models.md#parents)), and remaps it like any id. Minecraft's template parents (`cube`,