Add a cube
bb_add_cubeCreate a cube element in Blockbench by providing from/to bounds or from+size. Optionally assign textures, set per-face UVs, and enable auto UV.
Instructions
Create a cube element. Provide from+to, or from+size (Blockbench cubes use from/to where to is the exclusive upper bound). origin defaults to from. Optionally assign a texture to all faces, set per-face uv, and enable auto UV.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| name | No | ||
| size | No | ||
| color | No | ||
| faces | No | Per-face overrides: {north:{uv:[x1,y1,x2,y2], texture, enabled, rotation, tint}, ...} | |
| autouv | No | 0 off, 1 auto per face, 2 relative | |
| box_uv | No | ||
| origin | No | ||
| parent | No | ||
| inflate | No | ||
| texture | No | Texture name/uuid to assign to every face. | |
| rotation | No | ||
| uv_offset | No |