Rename engine to cubi
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
# Block Models
|
||||
|
||||
A block's model is its shape: the boxes it's made of and which texture goes on each face. Blocks use `engine:cube`
|
||||
unless they set `model`. For entity models, see [Entities](../entities/index.md#entity-models).
|
||||
A block's model is its shape: the boxes it's made of and which texture goes on each face. Blocks use `cubi:cube` unless
|
||||
they set `model`. For entity models, see [Entities](../entities/index.md#entity-models).
|
||||
|
||||
## Built-In Models
|
||||
|
||||
| Model | Texture variables | Shape |
|
||||
| -------------- | --------------------------------------------------------- | ---------------------------------------------- |
|
||||
| `engine:cube` | one texture, `{ top, bottom, side }` or `{ front, side }` | A full block. |
|
||||
| `engine:cross` | `cross` | Two crossed planes, like flowers and saplings. |
|
||||
| `engine:crop` | `crop` | Four planes in a # shape, like wheat. |
|
||||
| Model | Texture variables | Shape |
|
||||
| ------------ | --------------------------------------------------------- | ---------------------------------------------- |
|
||||
| `cubi:cube` | one texture, `{ top, bottom, side }` or `{ front, side }` | A full block. |
|
||||
| `cubi:cross` | `cross` | Two crossed planes, like flowers and saplings. |
|
||||
| `cubi:crop` | `crop` | Four planes in a # shape, like wheat. |
|
||||
|
||||
Blocks that aren't full cubes should use the `cutout` or `translucent` [render layer](../blocks/index.md#looks), since
|
||||
`solid` blocks hide their neighbors' faces. They usually want `"collision": false` too.
|
||||
@@ -24,13 +24,13 @@ Models name their textures with variables, like `#side`, and blocks fill them in
|
||||
```json
|
||||
{
|
||||
"id": "bworld:sapling",
|
||||
"model": "engine:cross",
|
||||
"model": "cubi:cross",
|
||||
"textures": { "cross": "bworld:sapling" }
|
||||
}
|
||||
```
|
||||
|
||||
For `engine:cube`, one texture id fills every face. `{ "front", "side" }` puts `front` on the north face and `side` on
|
||||
the rest. It's for blocks that [face a way](../blocks/states.md#facing), and can also set `top` and `bottom`.
|
||||
For `cubi:cube`, one texture id fills every face. `{ "front", "side" }` puts `front` on the north face and `side` on the
|
||||
rest. It's for blocks that [face a way](../blocks/states.md#facing), and can also set `top` and `bottom`.
|
||||
|
||||
## Custom Models
|
||||
|
||||
@@ -126,7 +126,7 @@ player is standing in its other half, either.
|
||||
|
||||
By default it comes from the model: one box per element, turned with the block's `y`. An element turned by its own
|
||||
`rotation` gets the box around it. Elements that are flat planes aren't boxes, so a model made only of planes, like
|
||||
`engine:cross` and `engine:crop`, gets one box around all of them, which is what players point at to break the plant.
|
||||
`cubi:cross` and `cubi:crop`, gets one box around all of them, which is what players point at to break the plant.
|
||||
|
||||
A block can set its own with `shape`, a list of boxes in pixels like `from` and `to` put together, as Minecraft's
|
||||
`Block.box` does. That's for a shape simpler than the model, or one that's different from what's drawn, like a flower
|
||||
@@ -136,7 +136,7 @@ their own, like a crop that's taller the older it is:
|
||||
```json
|
||||
{
|
||||
"id": "copper_tools:rice",
|
||||
"model": "engine:crop",
|
||||
"model": "cubi:crop",
|
||||
"textures": { "crop": "copper_tools:rice_3" },
|
||||
"collision": false,
|
||||
"states": [{ "name": "age", "bits": 2, "default": 0 }],
|
||||
|
||||
@@ -63,15 +63,15 @@ than short ones.
|
||||
|
||||
## Missing Textures
|
||||
|
||||
A texture id that doesn't exist shows the magenta and black checker, `engine:missing`, and `check-mods` warns about it.
|
||||
It isn't an error, so a mod still loads while its art is unfinished.
|
||||
A texture id that doesn't exist shows the magenta and black checker, `cubi:missing`, and `check-mods` warns about it. It
|
||||
isn't an error, so a mod still loads while its art is unfinished.
|
||||
|
||||
## Engine Textures
|
||||
|
||||
The engine's own textures use the `engine` namespace and come from `assets/`, not from a mod:
|
||||
|
||||
- `engine:missing`, the missing texture,
|
||||
- `engine:break_0` to `engine:break_8`, the cracks drawn on a block being broken.
|
||||
- `cubi:missing`, the missing texture,
|
||||
- `cubi:break_0` to `cubi:break_8`, the cracks drawn on a block being broken.
|
||||
|
||||
## How Players Get Them
|
||||
|
||||
|
||||
Reference in New Issue
Block a user