36 lines
2.8 KiB
Markdown
36 lines
2.8 KiB
Markdown
# Importing Create
|
|
|
|
`textures/`, `models/`, `blocks/`, `items/`, `tags/` and `recipes/` are made by the importer from Create 0.5.0.j's
|
|
resources, a checkout of it in `ports/create1.19.3`. Nothing in them is edited by hand, so to change them, change the
|
|
importer or `remap.json` and import again:
|
|
|
|
```sh
|
|
rm -rf mods/create/textures mods/create/models mods/create/blocks mods/create/items mods/create/tags mods/create/recipes
|
|
deno task import texture ports/create1.19.3/src --namespace create --output mods/create/textures --remap mods/create/import/remap.json
|
|
deno task import model ports/create1.19.3/src --namespace create --output mods/create/models --remap mods/create/import/remap.json
|
|
deno task import blockstate ports/create1.19.3/src --namespace create --output mods/create/blocks --remap mods/create/import/remap.json --blocks mods/create/import/blocks.json
|
|
deno task import item ports/create1.19.3/src --namespace create --output mods/create/items --remap mods/create/import/remap.json
|
|
deno task import tag ports/create1.19.3/src/generated --namespace create --output mods/create/tags --remap mods/create/import/remap.json
|
|
deno task import tag ports/create1.19.3/src/generated --namespace forge --output mods/create/tags --remap mods/create/import/remap.json
|
|
deno task import recipe ports/create1.19.3/src/generated --namespace create --output mods/create/recipes --remap mods/create/import/remap.json
|
|
deno task check-mods
|
|
```
|
|
|
|
The order matters: tags and recipes are checked against what's already in the mods folder, so blocks and items go first,
|
|
then tags, then recipes. Forge's shared tags, like `forge:ingots/brass`, become bworld's `c:` ones. Recipes are only
|
|
Create's stonecutting and pressing ones so far. The stonecutting ones that cut a stone bworld doesn't have yet (granite,
|
|
diorite, deepslate, calcite, tuff, dripstone) are left out until it does, and so is pressing paper and dirt paths.
|
|
|
|
Java sets what blocks do in code, so every block gets placeholders (a second to mine with anything, dropping itself).
|
|
`blocks.json` gives blocks what they have instead, by id, like the components that make a shaft turn and a hand crank
|
|
turn it. Each block's fields there replace the ones the importer would write.
|
|
|
|
`remap.json` gives three of Create's models other names, since `block/radial_chassis/side_x` and
|
|
`block/radial_chassis_side_x` would both be `create:block_radial_chassis_side_x`.
|
|
|
|
Its `skip` leaves out the crimson and warped windows and window panes, and their models and textures, since bworld won't
|
|
have those woods. It leaves out the pulse repeater too, which is bworld's now
|
|
(`mods/bworld/blocks/pulse_repeater.json`): its id becomes bworld's, and so does the texture of the `indicator` model,
|
|
which uses the pulse repeater's. Its `textures` and `ids` also turn Minecraft's redstone torch into bworld's verdigris
|
|
torch.
|