Add a mesh
bb_add_meshAdd a custom mesh to a Blockbench model by defining vertices and faces, with optional UVs and textures for detailed geometry.
Instructions
Create a free-form mesh. vertices is a list of [x,y,z] (or a {key:[x,y,z]} map). faces is a list where each face is either [i0,i1,i2] indices into vertices, or {vertices:[i..], uv:[[u,v]..], texture}. UVs are stored per vertex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| faces | Yes | ||
| origin | No | ||
| parent | No | ||
| texture | No | ||
| rotation | No | ||
| vertices | Yes |