CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    dummy moment

    Requests
    2
    5
    117
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 23 hours
      23 hours last edited by

      can someone help me change the font to the classic minecraft font in this script?
      e2d723c4-1547-442b-89ba-2edf771c2f3f-BPSCounter.js

      DreamWasFucked 1 Reply Last reply Reply Quote 0
      • DreamWasFucked
        DreamWasFucked Banned @23 hours last edited by

        what? its already

        1 Reply Last reply Reply Quote 0
        • 23 hours
          23 hours last edited by 23 hours

          @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

          DreamWasFucked 1 Reply Last reply Reply Quote 0
          • DreamWasFucked
            DreamWasFucked Banned @23 hours last edited by

            
            /// 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;
            }
            
            23 hours 1 Reply Last reply Reply Quote 1
            • 23 hours
              23 hours @DreamWasFucked last edited by

              @fart-sex tyvm

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              About
              • Terms of Service
              • Privacy Policy
              • Status
              • Contact Us
              Downloads
              • Releases
              • Source code
              • License
              Docs
              • Tutorials
              • CustomHUD
              • AutoSettings
              • ScriptAPI
              Community
              • Forum
              • Guilded
              • YouTube
              • Twitter
              • D.Tube