The mapping of the box’s texture follows the pattern below. The Top and Side are all a simple “unwrapping” of the box sides; the Bottom has the same view as the Top, i.e. the pattern on the bottom that you would see if the top were transparent and you were looking down at the “inside” of the bottom.
When rendering an Entity, Minecraft applies two transformations to convert the model from model coordinate space into world coordinate space:
- The feet of the model will be at y = 24, not y = 0, unless you adjust it using setRotationPoint().
- You need to account for the transformations by performing
model.preRenderCallback(entityIn, matrixStackIn, partialTicks); // for LivingRender
- Beware - any subsequent translations will be in model space not world space, i.e. if you translate with matrixStack.translate(0, 1, 0) then the model will be rendered closer to the ground (moved down, not up), because the y axis has been flipped.