Files
bworld/mods/create/import/README.md
T

37 lines
2.8 KiB
Markdown

# Importing Create
`textures/`, `models/`, `blocks/`, `items/`, `tags/` and `recipes/` were first made by the importer from Create
0.5.0.j's resources, a checkout of it in `ports/create1.19.3`, and are edited by hand since, as blocks get what they do.
Importing again would write over that, so it's only for bringing in something new, into a folder of its own to copy
from. These are the commands they were made with:
```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
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 got placeholders (a second to mine with anything, dropping itself).
What a block really has, like the components that make a shaft turn and a hand crank turn it, is written into its file
in `blocks/` by hand.
`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.