Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Kotlin/Java
  3. [SUPPORT] How to make a basic speed mode?

[SUPPORT] How to make a basic speed mode?

Scheduled Pinned Locked Moved Kotlin/Java
16 Posts 7 Posters 1.9k Views 1 Watching
  • 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

    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.

    ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #2

    @gabriel do it in kotlin

    G 1 Reply Last reply
    0
    • ? A Former User

      @gabriel do it in kotlin

      G Offline
      G Offline
      Gabriel
      wrote on last edited by
      #3

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

      ? 1 Reply Last reply
      0
      • G Gabriel

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

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #4

        @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
        0
        • ? A Former User

          @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 Offline
          G Offline
          Gabriel
          wrote on last edited by
          #5

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

          ? 1 Reply Last reply
          0
          • G Gabriel

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

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #6

            @gabriel pay me 10$

            G 1 Reply Last reply
            0
            • icewormy3I Offline
              icewormy3I Offline
              icewormy3
              wrote on last edited by
              #7

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

              1 Reply Last reply
              0
              • ? A Former User

                @gabriel pay me 10$

                G Offline
                G Offline
                Gabriel
                wrote on last edited by
                #8

                @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...

                ? 1 Reply Last reply
                0
                • G Gabriel

                  @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...

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #9

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

                  G 1 Reply Last reply
                  0
                  • ? A Former User

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

                    G Offline
                    G Offline
                    Gabriel
                    wrote on last edited by
                    #10

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

                    ? 1 Reply Last reply
                    0
                    • G Gabriel

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

                      ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #11

                      @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
                      0
                      • G Gabriel

                        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.

                        A Offline
                        A Offline
                        Aftery
                        wrote on last edited by
                        #12

                        @gabriel translation: how do i write code?

                        1 Reply Last reply
                        0
                        • G Gabriel

                          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.

                          CzechHekC Offline
                          CzechHekC Offline
                          CzechHek
                          wrote on last edited by
                          #13

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

                          ? 1 Reply Last reply
                          0
                          • CzechHekC CzechHek

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

                            ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #14

                            @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.

                            bestnubB 1 Reply Last reply
                            0
                            • ? A Former User

                              @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.

                              bestnubB Offline
                              bestnubB Offline
                              bestnub
                              wrote on last edited by
                              #15

                              @mems me:
                              Bild Text

                              ? 1 Reply Last reply
                              0
                              • bestnubB bestnub

                                @mems me:
                                Bild Text

                                ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #16

                                @bestnub wish it was possible in any sort of way

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                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
                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups