Skip to main content

RenderTypes

Modelpart render types that can be applied via setPrimaryRenderType(string) or setSecondaryRenderType(string)

There can only be one primary and secondary type applied to a cube at once, so you may get unwanted behavior if you make the primary render type LINES as all the pixels aside from the lines will vanish.

Example:

models.myModel:setPrimaryRenderType("END_PORTAL")
models.myModel:setSecondaryRenderType("EMISSIVE")

The Primary and Secondary render types get combined. You can for example set the Primary to BLURRY and the secondary to GLINT to create a model with blurry textures, while having an animated echantment glint overlayed on top of it.


All Render Types

Render TypeDescriptionExample Image
NONEInvisible
CUTOUTNormal, transparency in the texture is binary. Either fully invisible at an alpha of 0, or fully visibleCUTOUT
CUTOUT_CULLNormal (No Inside Faces), same alpha behavior as CUTOUTCUTOUT CULL
TRANSLUCENTNormal, with alpha values in the textures handled in a way that allows for semi-transparencyTRANSLUCENT
TRANSLUCENT_CULLNormal (No Inside Faces), same alpha behavior as TRANSLUCENTTRANSLUCENT_CULL
EMISSIVEFully Lit, TRANSLUCENT alphaEMISSIVE
EMISSIVE_SOLIDFullbright (No Inside Faces), CUTOUT alphaEMISSIVE SOLID
CUTOUT_EMISSIVE_SOLIDFullbright, TRANSLUCENT alphaCUTOUT EMISSIVE SOLID
EYESFullbright, always semi-transparent, CUTOUT alphaEYES
END_PORTALNo-perspective End Portal EffectEND PORTAL
END_GATEWAYNo-perspective End Gateway EffectEND GATEWAY
TEXTURED_PORTALNo-perspective Geometric Effect (when used as secondary rendertype, uses secondary texture to change the effect)TEXTURED PORTAL
GLINTEnchantment glint when used as secondary render typeGLINT
GLINT2Detailed enchantment glint when used as secondary render typeGLINT 2
TEXTURED_GLINTUses secondary texture as enchantment glint when used as secondary render typeTEXTURED GLINT
LINESWhite Lines Around EdgesLINES
LINES_STRIPWhite Lines Between VerticesLINES_STRIP
SOLIDFully whiteSOLID
BLURRYSmoothed textureBLURRY