-
Notifications
You must be signed in to change notification settings - Fork 0
Child Components
Sollace edited this page Nov 14, 2020
·
9 revisions
Child components are the bread and butter of the model. These are what form the actual cubes and boxes you see and typically can only be placed inside of a parent that can contain them.
Texturable
A cube. Creates a single cube to render for a model. What else would you expect?
Fabric (Yarn)
- ModelPart.CuboidBlockbench
- CubeAttribute Name | Attribute Type | Default Value | Supports Variables | Description |
---|---|---|---|---|
from |
number[3] | [0, 0, 0] | Yes | The starting point (lower XYZ) of the cube. |
size |
number[3] | [0, 0, 0] | Yes | The XYZ dimensions of the cube. |
texture |
texture | {inherited} | No | Defines the texture u, v, w, and h for this component. #see Textures for more details. |
stretch |
number[3] | {inherited} | No | The XYZ stretch factor. The plane will be expanded along each axis as determined by this value. |
mirror |
boolean | {inherited} | No | Determines whether the X texture coordinates are mirrored for this box. Used in entities to reflect the left/right legs, for instance. |
Texturable
Similar to a cube, but only renders one face.
There is no equivalent to this in vanilla or blockbench, sorry.
Attribute Name | Attribute Type | Default Value | Supports Variables | Description |
---|---|---|---|---|
position |
number[3] | [0, 0, 0] | Yes | The starting point (lower XYZ) of the plane. similar to a cube's from parameter. I get it. It's inconsistent, okay? |
size |
number[2] | [0, 0] | Yes | The width and height of the plane. |
texture |
texture | {inherited} | Yes | Defines the texture u, v, w, and h for this component. #see Textures for more details. |
mirror |
boolean[3] | {inherited} | No | Defines the XYZ mirroring of this component's textures. |
stretch |
number[3] | {inherited} | No | The XYZ stretch factor. The box will be expanded along each axis as determined by this value. |
face |
facing | {required} | No | The direction this plane is facing. Determines its orientation as well is which side of the face points "up". #See Facing for more details. |
Texturable
Extends: mson:box
.
A cone, or as close as we can get to one in vanilla. Creates a square-based pyramid (rombus).
There is no equivalent to this in vanilla or blockbench, sorry.
Supports all the attributes from mson:box
plus the following:
Attribute Name | Attribute Type | Default Value | Supports Variables | Description |
---|---|---|---|---|
taper |
number | 0 | No | The degree to which the narrow end of this cone is tapered. Can become a point by making this value equal to half the width of the base, or a flat tip by making it less. 0 is just a cube. Results may vary depending on whether the base is actually square or not. |