Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+12 -12
View File
@@ -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 }],