For the complete documentation index, see llms.txt. This page is also available as Markdown.

math

The math namespace, the same helpers breeze uses internally for tick interpolation, clamping and visibility checks.

Remarks

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.

Example

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);
});

Functions

Last updated