

BlockModelBuilderĪ BlockModelBuilder represents a block model to-be-generated.

For any perspective ( TransformsBuilder#transform), the rotation ( TransformVecBuilder#rotation), translation ( TransformVecBuilder#translation), and scale ( TransformVecBuilder#scale) can be set.įinally, the model can set whether to use ambient occlusion in a level ( ModelBuilder#ao) and from what location to light and shade the model from ModelBuilder#guiLight. The model can additionally be transformed ( ModelBuilder#transforms) for any defined perspective (in the left hand in first person, in the gui, on the ground, etc.). A reference is used by any models parenting the current model as keys to define textures for later. A location specifies where a texture is in assets//textures/.png. Each key can then be referenced in any element by prefixing using a # (a texture key of example can be referenced in an element using #example). The cube can also determine whether its shadows should be rendered ( ElementBuilder#shade).Įach model defines a list of texture keys ( ModelBuilder#texture) which points to either a location or a reference.

The cube can scale all faces in relation to the entire model as well ( RotationBuilder#rescale). It recommended for block models which have elements that exceed a bound of on any axis to separate into multiple blocks, such as for a multiblock structure, to avoid lighting and culling issues.Įach cube can additionally be rotated ( ElementBuilder#rotation) around a specified point ( RotationBuilder#origin) for a given axis ( RotationBuilder#axis) in 22.5 degree intervals ( RotationBuilder#angle).
