BlockModeler
Index
Type Aliases
Functions
Type Aliases
BoxVertexes
Array of 6 coordinates representing start and end point of box.
Functions
getRotatedBoxVertexes
Parameters
box: BoxVertexes
array of box vertexes
rotation: number
Returns BoxVertexes
box vertexes with specified rotation
setInventoryModel
Sets hand and ui model for the block.
Parameters
blockID: number
block numeric id
model: any
block model
optionaldata: number
block data (0 by default)
Returns void
setStairsRenderModel
Sets stairs render model and shape to block.
Parameters
id: number
block numeric id
Returns void
Module for creating block models.