Add all textures and models from create
This commit is contained in:
@@ -99,9 +99,10 @@ pure function of the location, so every kind agrees on ids without sharing state
|
||||
writes the same id the model was written with. Two locations that join to the same id are an error, fixed with
|
||||
`--remap`.
|
||||
|
||||
**Remaps** are prefix rules, longest first: `{ "textures": { "minecraft:block/": "bworld:" }, "models": {} }`. Mapping
|
||||
Minecraft's block and item textures to the base game's of the same name is the default. A mod's remap file is where its
|
||||
vanilla ids go, and later kinds add sections for items, blocks and fluids.
|
||||
**Remaps** are prefix rules, longest first, and a `skip` list of patterns for locations to leave out of every kind:
|
||||
`{ "textures": { "minecraft:block/": "bworld:" }, "models": {} }`. Mapping Minecraft's block and item textures to the
|
||||
base game's of the same name is the default. A mod's remap file is where its vanilla ids go, and later kinds add
|
||||
sections for items, blocks and fluids.
|
||||
|
||||
**Kinds:**
|
||||
|
||||
@@ -109,7 +110,8 @@ vanilla ids go, and later kinds add sections for items, blocks and fluids.
|
||||
| ------------ | -------------------------------------------- | ------------------------------------------------------------------------- | ------ |
|
||||
| `model` | `assets/*/models/**.json` | `models/`, parents kept, faces renamed, Blockbench extras dropped | Built |
|
||||
| `texture` | `assets/*/textures/**.png` and `.png.mcmeta` | `textures/`, with animations | Built |
|
||||
| `blockstate` | `assets/*/blockstates/*.json` | `variants` or `parts` on `blocks/*.json`, string states made numeric | |
|
||||
| `blockstate` | `assets/*/blockstates/*.json` | `blocks/*.json` with `variants` or `parts`, string states made numeric | Built |
|
||||
| `item` | `assets/*/models/item/*.json` | `items/*.json` for items that aren't a block's, with their sprite | Built |
|
||||
| `lang` | `assets/*/lang/en_us.json` | item and block names | |
|
||||
| `recipe` | `data/*/recipe(s)/**.json` | `recipes/`: vanilla types to bworld's, a mod's own types kept as they are | |
|
||||
| `tag` | `data/*/tags/**.json` | `tags/`, `c:` tags merged with bworld's | |
|
||||
@@ -144,8 +146,23 @@ folder holds textures of more than one mod, since a texture's namespace comes fr
|
||||
0.5.0.j it copies 989 textures and 11 animations, and skips the six 512×512 title screen panoramas. Its textures and
|
||||
models together make a mod `check-mods` accepts, with warnings only for the 27 missing textures.
|
||||
|
||||
**For Create**, `mods/create/import/` keeps the remap file and the block table. Re-running the import is one command,
|
||||
and hand-written files are never in the folders it writes.
|
||||
**What `blockstate` and `item` do today.** `blockstate` writes a block for each blockstate: each property becomes a
|
||||
numbered state with the fewest bits that fit (booleans as false and true, facing as north, east, south, west, up and
|
||||
down so a 2 bit facing still faces its placer), properties that never change the look (like `waterlogged`) are left out,
|
||||
`variants` keep their models and `x` and `y` turns, and a `multipart` becomes `parts`, one for each way a part can be
|
||||
drawn. Blocks that aren't full cubes are `cutout`, or `translucent` when their model asks for it. A model that can't be
|
||||
imported (OBJ, composite) is drawn as a placeholder cube. Every block gets the same placeholder mining (a second, any
|
||||
tool) and drops itself, since Java mods set those in code. A block has an item when Java has an item model for it, drawn
|
||||
with that model, or flat as its sprite. `item` writes the items that aren't a block's, with their sprite; the 11 Java
|
||||
draws in 3D (wrench, goggles) are flat with a texture of their model until bworld items can have models.
|
||||
|
||||
`mods/create` is the result: 556 blocks and 81 items from 0.5.0.j (the crimson and warped windows are left out with the
|
||||
remap file's `skip`) that can be placed and look like Create's, with no behavior. `check-mods` accepts it, warning only
|
||||
about 31 vanilla textures bworld doesn't have yet. `uvlock` is left out (132 blockstates use it), so some turned
|
||||
textures turn with their models where Java keeps them upright.
|
||||
|
||||
**For Create**, `mods/create/import/` keeps the remap file and the commands, and later the block table. Re-running the
|
||||
import is one command, and hand-written files are never in the folders it writes.
|
||||
|
||||
**Vanilla ids in recipes.** Create's recipes use 447 distinct Minecraft ids, like dyes, `minecraft:cobblestone` and
|
||||
`minecraft:netherrack`. The remap file maps each to a bworld id or to `null`. A recipe with a `null` or unmapped id is
|
||||
@@ -227,9 +244,9 @@ nothing per frame. See `ports/sodium` for how to keep buffer updates cheap.
|
||||
**R4. Models without blocks** (P1). Any model in `models/` can be loaded by id for visuals, baked once into a GPU
|
||||
buffer, and turned for whatever axis it's used on.
|
||||
|
||||
**R5. The model format** (P0). What Create's models use that bworld's don't support yet (`parent` is built):
|
||||
**R5. The model format** (P0). What Create's models use that bworld's don't support yet (`parent` and `x` turns are
|
||||
built):
|
||||
|
||||
- `x` turns in variants and parts, not just `y`;
|
||||
- `uvlock`;
|
||||
- element `rotation` at every 22.5° step on all three axes;
|
||||
- item models from model JSON (3D items in the hand and the GUI, with `display` transforms), since Create's wrench,
|
||||
|
||||
Reference in New Issue
Block a user