Tessellator
object Tessellator
Matrix transforms for world rendering, in the spirit of ChatTriggers' Tessellator. Only valid inside a renderEntity / postRenderEntity trigger, where JIM binds pose to the entity's live pose stack (already positioned at the entity's origin).
Push, transform, draw — JIM auto-pops anything you leave on the stack when the entity finishes rendering, so an unmatched pushMatrix can never corrupt Minecraft's matrices.
Jim.register(Event.RENDER_ENTITY, (entity) => {
if (entity.isLocalPlayer()) { Tessellator.pushMatrix(); Tessellator.scale(2, 2, 2); }
});Content copied to clipboard