CCBlueX Forum

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

    [SUPPORT] How to make a basic speed mode?

    Kotlin/Java
    7
    16
    459
    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.
    • G
      Gabriel last edited by

      How do i make a basic speed mode?
      Like, i want to make sure my code is correct, if its wrong, someone fix it so i can add it to my custom lb src v3 (Releasing soon, adding more speed modes.)
      Here, the code for the speed:

      /*
       * LiquidBounce Hacked Client
       * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
       * https://github.com/CCBlueX/LiquidBounce/
       */
      package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other;
      
      import net.ccbluex.liquidbounce.event.MoveEvent;
      import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode;
      import net.ccbluex.liquidbounce.utils.MovementUtils;
      
      public class Legit extends SpeedMode {
      
          public Legit() {
              super("Legit");
          }
      
          @Override
          public void onMotion() {
              if(mc.thePlayer.isInWater())
                  return;
      
              if(MovementUtils.isMoving()) {
                  if(mc.thePlayer.onGround)
                      mc.thePlayer.jump();
              }else{
                  mc.thePlayer.motionX = 0D;
                  mc.thePlayer.motionZ = 0D;
              }
          }
      
          @Override
          public void onUpdate() {
      
          }
      
          @Override
          public void onMove(MoveEvent event) {
          }
      }
      
      

      Someone help me in this.

      M A CzechHek 3 Replies Last reply Reply Quote 0
      • M
        mems Moderator @Gabriel last edited by

        @gabriel do it in kotlin

        G 1 Reply Last reply Reply Quote 0
        • G
          Gabriel @mems last edited by

          @mems I'm doing this for non-crossversion tho...

          M 1 Reply Last reply Reply Quote 0
          • M
            mems Moderator @Gabriel last edited by

            @gabriel

            if(MovementUtils.isMoving()) {
                       if(mc.thePlayer.onGround)
            

            it kinda doesn't make sense, usually people do it this way:

            if(mc.thePlayer.onGround) {
                    if(MovementUtils.isMoving()) {
                             // legit code here
                    } else {
                                    mc.thePlayer.motionX = 0D;
                                    mc.thePlayer.motionZ = 0D;
                     }
            }
            
            G 1 Reply Last reply Reply Quote 0
            • G
              Gabriel @mems last edited by

              @mems ok, fix it for me, i need to add more stuff rn im busy.

              M 1 Reply Last reply Reply Quote 0
              • M
                mems Moderator @Gabriel last edited by

                @gabriel pay me 10$

                G 1 Reply Last reply Reply Quote 0
                • icewormy3
                  icewormy3 last edited by

                  Just make a Setting class with a bunch of constructors with modes, values, etc

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gabriel @mems last edited by

                    @mems k, here are your 10 bucks: https://www.mediafire.com/folder/jlxd8fhskcrrh/All_the_lb_configs_in_the_world some configs are for dortware too...

                    hahayes 1 Reply Last reply Reply Quote 0
                    • hahayes
                      hahayes @Gabriel last edited by

                      @gabriel ah yes bunch of lb and dortware configs = 10$$$$$$$$$$$$$$

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Gabriel @hahayes last edited by

                        @hahayes Yes, they are alot. + Many were private so...

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mems Moderator @Gabriel last edited by

                          @gabriel Is it hard to copy from other speed modules? There, I literally just found a speed module from a random guy: https://github.com/1337quip/LiquidBounce/blob/master/1.8.9-Forge/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACPort.java

                          Remove the aac code part and just add yours, simple, done.

                          1 Reply Last reply Reply Quote 0
                          • A
                            Aftery @Gabriel last edited by

                            @gabriel translation: how do i write code?

                            1 Reply Last reply Reply Quote 0
                            • CzechHek
                              CzechHek @Gabriel last edited by

                              @gabriel go make some cococcococooa's helper configs and get out of here

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mems Moderator @CzechHek last edited by

                                @gabriel said in [SUPPORT] How to make a basic speed mode?:

                                @mems ok, fix it for me, i need to add more stuff rn im busy.

                                This clown makes me wanna e-slap him... Man, go learn how to code this basic shit like I did. You may be multi tasking IRL, but Minecraft coding will always be an exception. Nobody wants to be your slave my dude. You either learn how to code properly by learning from LiquidBounce's speed modules or whatever the shit you wanna accomplish, or you do the following from the comment above my comment.

                                bestnub 1 Reply Last reply Reply Quote 0
                                • bestnub
                                  bestnub @mems last edited by

                                  @mems me:
                                  Bild Text

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mems Moderator @bestnub last edited by

                                    @bestnub wish it was possible in any sort of way

                                    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