math
Last updated
The math namespace, the same helpers breeze uses internally for tick interpolation, clamping and visibility checks.
Entity positions only move once per tick. Anything you draw in a render event should use the interpolated variants here, otherwise it will visibly stutter.
script.addListener("Render3DEvent", (event) => {
if (mc.pointedEntity === null) return;
const box = math.interpolateEntityBB(mc.pointedEntity, event.getPartialTicks());
renderer.boundingESPBox(box, new Color(255, 0, 0), 2, false);
});Last updated