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. Aimbot module but made by the ChatGPT AI

Aimbot module but made by the ChatGPT AI

Scheduled Pinned Locked Moved Kotlin/Java
8 Posts 4 Posters 818 Views
  • 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.
  • A Offline
    A Offline
    AIGeneratedStuff
    wrote on last edited by AIGeneratedStuff
    #1
    package me.yourusername.aimbot;
    
    import net.ccbluex.liquidbounce.event.EventTarget;
    import net.ccbluex.liquidbounce.event.UpdateEvent;
    import net.ccbluex.liquidbounce.features.module.Module;
    import net.ccbluex.liquidbounce.features.module.ModuleCategory;
    import net.ccbluex.liquidbounce.features.module.ModuleInfo;
    import net.ccbluex.liquidbounce.utils.RotationUtils;
    import net.ccbluex.liquidbounce.value.FloatValue;
    import net.ccbluex.liquidbounce.value.ListValue;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.monster.EntityMob;
    import net.minecraft.entity.player.EntityPlayer;
    
    import java.util.Random;
    
    @ModuleInfo(name = "Aimbot", description = "Automatically aims at the nearest target.", category = ModuleCategory.COMBAT)
    public class Aimbot extends Module {
        private final FloatValue fovValue = new FloatValue("FOV", 360f, 0f, 360f);
        private final FloatValue speedValue = new FloatValue("Speed", 5f, 0f, 10f);
        private final FloatValue distanceValue = new FloatValue("Distance", 100f, 0f, 500f);
        private final BoolValue jitterValue = new BoolValue("Jitter", false);
        private final FloatValue jitterSpeedValue = new FloatValue("Jitter Speed", 5f, 0f, 10f);
        private final Random random = new Random();
    
        @EventTarget
        public void onUpdate(UpdateEvent event) {
            if (!getState())
                return;
    
            for (Object object : mc.theWorld.loadedEntityList) {
                if (!(object instanceof EntityLivingBase))
                    continue;
    
                EntitiesLivingBase entity = (EntitiesLivingBase) object;
                if (entity == mc.thePlayer)
                    continue;
    
                if (!isValidTarget(entity))
                    continue;
    
                if (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get())
                    continue;
    
                if (mc.thePlayer.getDistanceToEntity(entity) > distanceValue.get())
                    continue;
    
                if (jitterValue.get()) {
                    RotationUtils.faceEntity(entity, speedValue.get() + random.nextFloat() * jitterSpeedValue.get());
                } else {
                    RotationUtils.faceEntity(entity, speedValue.get());
                }
                break;
            }
        }
        
        private boolean isValidTarget(EntityLivingBase entity) {
            if (entity instanceof EntitiesPlayer && !LiquidBounce.moduleManager.getModule(Target.class).getState())
                return false;
            if (entity instanceof EntitiesMob && !LiquidBounce.moduleManager.getModule(Target.class).getValue())
                return false;
            return true;
        }
    }
    
    1 Reply Last reply
    0
    • A Offline
      A Offline
      AIGeneratedStuff
      wrote on last edited by
      #2

      before using this, please understand that this might not work and you have to not directly ctrl + c and ctrl + v

      WaterFlexW 1 Reply Last reply
      0
      • A AIGeneratedStuff

        before using this, please understand that this might not work and you have to not directly ctrl + c and ctrl + v

        WaterFlexW Offline
        WaterFlexW Offline
        WaterFlex
        wrote on last edited by
        #3

        @AIGeneratedStuff Which question did you asked to ai to make this?

        A 2 Replies Last reply
        0
        • WaterFlexW WaterFlex

          @AIGeneratedStuff Which question did you asked to ai to make this?

          A Offline
          A Offline
          AIGeneratedStuff
          wrote on last edited by
          #4

          @WaterFlex OpenAI ChatGPT

          1 Reply Last reply
          0
          • LiquidOnTopL Offline
            LiquidOnTopL Offline
            LiquidOnTop
            wrote on last edited by
            #5

            My thoughts on this:

            • if (!getState()) return: not needed since a module's onUpdate() is only called when that module is enabled
            • for (Object object : mc.theWorld.loadedEntityList): the type of each element in mc.theWorld.loadedEntityList is Entity and the variable name should be entity
            • if (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated using RotationUtils.getRotationDifference(entity)
            • RotationUtils.faceEntity(): there is no such method and look at an entity isn't that simple, take a look at the actual aimbot in LB
            • isValidTarget(): not very easy to figure out since it depends on thing like Teams, Antibot, friend & NoFriend and Target
            • !LiquidBounce.moduleManager.getModule(Target.class).getValue(): only check if the Target module is enabled or not and is duplicated in 2 cases

            Overall thoughts: It know the value system, somewhat know the imports and utils but need more example on how to use the utils in a way that doesn't sucks

            A G 2 Replies Last reply
            0
            • WaterFlexW WaterFlex

              @AIGeneratedStuff Which question did you asked to ai to make this?

              A Offline
              A Offline
              AIGeneratedStuff
              wrote on last edited by AIGeneratedStuff
              #6

              @WaterFlex ah sorry g i misread your comment

              i dont remember but it was something like "can you make a liquidbounce b73 code that automatically rotates to the nearest target" then i asked it to add more stuff like depending on the targets category, turnspeed option, jitterclicking option and the distance option

              i asked the questions separately to the ai

              yea i think i asked a lot for the ai but its not an actual client dev that i asked these so not too much to worry about

              unrelated but also i asked the bot what ccbluex is and it said that ccbluex is a human lol

              1 Reply Last reply
              0
              • LiquidOnTopL LiquidOnTop

                My thoughts on this:

                • if (!getState()) return: not needed since a module's onUpdate() is only called when that module is enabled
                • for (Object object : mc.theWorld.loadedEntityList): the type of each element in mc.theWorld.loadedEntityList is Entity and the variable name should be entity
                • if (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated using RotationUtils.getRotationDifference(entity)
                • RotationUtils.faceEntity(): there is no such method and look at an entity isn't that simple, take a look at the actual aimbot in LB
                • isValidTarget(): not very easy to figure out since it depends on thing like Teams, Antibot, friend & NoFriend and Target
                • !LiquidBounce.moduleManager.getModule(Target.class).getValue(): only check if the Target module is enabled or not and is duplicated in 2 cases

                Overall thoughts: It know the value system, somewhat know the imports and utils but need more example on how to use the utils in a way that doesn't sucks

                A Offline
                A Offline
                AIGeneratedStuff
                wrote on last edited by
                #7

                @segv-segv so it doesnt work

                not deleting and im leaving it here (some people might edit this)

                1 Reply Last reply
                0
                • LiquidOnTopL LiquidOnTop

                  My thoughts on this:

                  • if (!getState()) return: not needed since a module's onUpdate() is only called when that module is enabled
                  • for (Object object : mc.theWorld.loadedEntityList): the type of each element in mc.theWorld.loadedEntityList is Entity and the variable name should be entity
                  • if (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated using RotationUtils.getRotationDifference(entity)
                  • RotationUtils.faceEntity(): there is no such method and look at an entity isn't that simple, take a look at the actual aimbot in LB
                  • isValidTarget(): not very easy to figure out since it depends on thing like Teams, Antibot, friend & NoFriend and Target
                  • !LiquidBounce.moduleManager.getModule(Target.class).getValue(): only check if the Target module is enabled or not and is duplicated in 2 cases

                  Overall thoughts: It know the value system, somewhat know the imports and utils but need more example on how to use the utils in a way that doesn't sucks

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

                  @segv-segv I agree with everything that you said, but I have something to add:

                  • if (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()) checks for the distance between the entity, it doesn't check the FOV (Proof is just above the said line, in @AIGeneratedStuff's post).
                  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