add_cubes
Create multiple cubes in a single call to rapidly build detailed Minecraft models. Avoids z-fighting by ensuring overlapping cubes penetrate each other.
Instructions
Create many cubes in one call — the efficient way to author a detailed model (aim for 20-50+ cubes for a creature, not 6-8). Pass cubes: an array where each item takes the same fields as add_cube ({name, from, to, origin, rotation, inflate, parent, box_uv, uv_offset, faces}). Build symmetric parts by emitting both the left side and its mirror (negate X, flip Y/Z rotation signs) in the same array. AVOID Z-FIGHTING: when cubes overlap, make one clearly penetrate the other (by >=0.1) and never align two faces to the exact same coordinate; stagger decorative pieces' depths. Returns all created cubes with their face UVs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cubes | Yes | Array of cube specs (each like add_cube's args). |