dummy moment
-
can someone help me change the font to the classic minecraft font in this script?
e2d723c4-1547-442b-89ba-2edf771c2f3f-BPSCounter.js -
what? its already
-
@fart-sex fuck i posted the wrong script, i tried to change it but it didnt work, heres the working one ( as in working i mean the script works, but its not in the classic mc font)
0557fdb9-f75c-4b96-971a-6271ee795f3d-BPSCounter.js -
/// api_version=2 var script = registerScript({ name: "BPSCounter", version: "1.0", authors: ["chocopie"] }); var Fonts = Java.type("net.ccbluex.liquidbounce.ui.font.Fonts"); var ScaledResolution = Java.type("net.minecraft.client.gui.ScaledResolution"); var Color = Java.type("java.awt.Color"); var MathHelper = Java.type("net.minecraft.util.MathHelper") script.registerModule({ name: "BPSCounter", category: "Render", description: "shows your BPS", tag: "fast", }, function (BPSCounter) { BPSCounter.on("render2D", function(event) { var mcHeight = getScaledHeight(); var mcWidth = getScaledWidth(); Fonts.minecraftFont.drawStringWithShadow("BPS: " + getBPS().toFixed(1), mcWidth/2-19, mcHeight/2+12, 0xFFFFFF); }); }); function getDistance(x,z) { xSpeed = mc.thePlayer.posX - x; zSpeed = mc.thePlayer.posZ - z; return MathHelper.sqrt_double(xSpeed * xSpeed + zSpeed * zSpeed); } function getBPS() { if(mc.thePlayer==null || mc.thePlayer.ticksExisted < 1) { return 0; } return getDistance(mc.thePlayer.lastTickPosX,mc.thePlayer.lastTickPosZ) * (20 * mc.timer.timerSpeed); } function getScaledWidth() { var scaledWidth = new ScaledResolution(mc).getScaledWidth(); return scaledWidth; } function getScaledHeight() { var scaledHeight = new ScaledResolution(mc).getScaledHeight(); return scaledHeight; }
-
@fart-sex tyvm