VoxelEngine/doc/en/9.Block-models.md

487 B

Block Models

Block model may be created with following properties:

"model": "custom",
"model-primitives": {
    "aabbs": [
	    // list of AABB primitives
    ],
    // ... other primitives
}

AABB primitive is an array of values:

[x, y, z, width, height, depth, texture names for all 6 sides]

tetragon primitive (more like parallelogram) an array of three vectors, describing primitive position, X vector * width, Y vector * height.