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 928 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gabriel
    wrote on last edited by
    #1

    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 CzechHekC 3 Replies Last reply
    0
    • M Offline
      M Offline
      mems Moderator
      replied to Gabriel on last edited by
      #2

      @gabriel do it in kotlin

      G 1 Reply Last reply
      0
      • G Offline
        G Offline
        Gabriel
        replied to mems on last edited by
        #3

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

        M 1 Reply Last reply
        0
        • M Offline
          M Offline
          mems Moderator
          replied to Gabriel 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
          • G Offline
            G Offline
            Gabriel
            replied to mems on last edited by
            #5

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

            M 1 Reply Last reply
            0
            • M Offline
              M Offline
              mems Moderator
              replied to Gabriel 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
                • G Offline
                  G Offline
                  Gabriel
                  replied to mems 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
                  • ? Offline
                    ? Offline
                    A Former User
                    replied to Gabriel on last edited by
                    #9

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

                    G 1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      Gabriel
                      replied to A Former User on last edited by
                      #10

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

                      M 1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mems Moderator
                        replied to Gabriel 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
                        • A Offline
                          A Offline
                          Aftery
                          replied to Gabriel on last edited by
                          #12

                          @gabriel translation: how do i write code?

                          1 Reply Last reply
                          0
                          • CzechHekC Offline
                            CzechHekC Offline
                            CzechHek
                            replied to Gabriel on last edited by
                            #13

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

                            M 1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mems Moderator
                              replied to CzechHek 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
                              • bestnubB Offline
                                bestnubB Offline
                                bestnub
                                replied to mems on last edited by
                                #15

                                @mems me:
                                Bild Text

                                M 1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mems Moderator
                                  replied to bestnub on last edited by
                                  #16

                                  @bestnub wish it was possible in any sort of way

                                  1 Reply Last reply
                                  0

                                  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