Parts¶
File location
/assets/minecraft/optifine/cem/**/*.jpm
CEM part files contain the definition of one model part to be referenced in a CEM model file.
Keys¶
- invertAxis¶
Axes to invert: "xyz" inverts the X, Y, Z axes. An empty string inverts none of them and is equal the key being absent.
- mirrorTexture¶
Texture axis to mirror.
"uv"will mirror both the U and V axis. An empty string mirrors along no axis and is equal the key being absent.
- boxes¶
Array of part model boxes, as follows.
- boxes.textureOffset¶
Texture offset for the box format.
- boxes.uv<FACE>¶
<FACE>is one ofDown,Up,North(aliasFront),South(aliasBack),West(aliasLeft), orEast(aliasRight).UV for face.
- boxes.coordinates¶
Box position and dimensions.
- boxes.sizeAdd¶
Size increment added to all dimensions; can be used for asymmetric scaling.
- boxes.sizesAdd¶
Separate size increments can be used for asymmetric scaling.
- sprites¶
List of 3D sprite models, as follows.
- sprites.textureOffset¶
Texture offset.
- sprites.coordinates¶
Box position and dimensions.
- sprites.sizeAdd¶
Size increment added to all dimensions; can be used for asymmetric scaling.
- submodel¶
A sub-model part; attached to the parent, moving and rotating with it.
- submodels¶
A list of sub-model parts; attached to the parent, moving and rotating with it.
Texture UV¶
Warning
Texture UV cannot have both specifications, either "textureOffset" or uv<face>, not both.
Texture UV can be specified in box format with:
"textureOffset", or"uvDown","uvUp","uvNorth","uvSouth","uvWest", and"uvEast".
The box format UV mapping.¶
Attachment points¶
Entities can have items/blocks attached to them. The attachments system allows you to render these items/blocks attached to model parts of your choice.
Attachment name |
Supported models |
|---|---|
left_handheld_item |
allay, armor_stand, drowned, evoker, giant, husk, illusioner, piglin, piglin_brute, pillager, skeleton, stray, vex, vindicator, wither_skeleton, zombie, zombie_villager, zombified_piglin |
right_handheld_item |
allay, armor_stand, drowned, evoker, giant, husk, illusioner, piglin, piglin_brute, pillager, skeleton, stray, vex, vindicator, wither_skeleton, zombie, zombie_villager, zombified_piglin |