Aimbot module but made by the ChatGPT AI
-
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; } } -
before using this, please understand that this might not work and you have to not directly ctrl + c and ctrl + v
-
before using this, please understand that this might not work and you have to not directly ctrl + c and ctrl + v
@AIGeneratedStuff Which question did you asked to ai to make this?
-
@AIGeneratedStuff Which question did you asked to ai to make this?
@WaterFlex OpenAI ChatGPT
-
My thoughts on this:
if (!getState()) return: not needed since a module'sonUpdate()is only called when that module is enabledfor (Object object : mc.theWorld.loadedEntityList): the type of each element inmc.theWorld.loadedEntityListisEntityand the variable name should beentityif (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated usingRotationUtils.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 LBisValidTarget(): 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 theTargetmodule 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
-
@AIGeneratedStuff Which question did you asked to ai to make this?
@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
-
My thoughts on this:
if (!getState()) return: not needed since a module'sonUpdate()is only called when that module is enabledfor (Object object : mc.theWorld.loadedEntityList): the type of each element inmc.theWorld.loadedEntityListisEntityand the variable name should beentityif (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated usingRotationUtils.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 LBisValidTarget(): 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 theTargetmodule 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
@segv-segv so it doesnt work
not deleting and im leaving it here (some people might edit this)
-
My thoughts on this:
if (!getState()) return: not needed since a module'sonUpdate()is only called when that module is enabledfor (Object object : mc.theWorld.loadedEntityList): the type of each element inmc.theWorld.loadedEntityListisEntityand the variable name should beentityif (mc.thePlayer.getDistanceToEntity(entity) > fovValue.get()): FOV difference is actually calculated usingRotationUtils.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 LBisValidTarget(): 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 theTargetmodule 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
@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).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login