import*as mc from"@minecraft/server";export const lerp=(e,t,o)=>e+(t-e)*o;export const clamp=(e,t,o)=>Math.min(Math.max(e,t),o);export const map=(e,t,o,n,r)=>(e-t)/(o-t)*(r-n)+n;export function getAllDimensions(e,t){let o=[];for(const n of[mc.world.getDimension("overworld"),mc.world.getDimension("nether"),mc.world.getDimension("the_end")]){let r=e;n.getEntities(r).forEach((e=>{void 0!==t&&e.id===t||o.push(e)}))}return o}