CCBlueX Forum

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

    Aimbot module but made by the ChatGPT AI

    Kotlin/Java
    4
    8
    99
    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.
    • A
      AIGeneratedStuff Banned last edited by AIGeneratedStuff

      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 Reply Quote 0
      • A
        AIGeneratedStuff Banned last edited by

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

        WaterFlex 1 Reply Last reply Reply Quote 0
        • WaterFlex
          WaterFlex @AIGeneratedStuff last edited by

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

          A 2 Replies Last reply Reply Quote 0
          • A
            AIGeneratedStuff Banned @WaterFlex last edited by

            @WaterFlex OpenAI ChatGPT

            1 Reply Last reply Reply Quote 0
            • segv segv
              segv segv last edited by

              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 Reply Quote 0
              • A
                AIGeneratedStuff Banned @WaterFlex last edited by AIGeneratedStuff

                @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 Reply Quote 0
                • A
                  AIGeneratedStuff Banned @segv segv last edited by

                  @segv-segv so it doesnt work

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

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

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