file_name
stringlengths
6
86
file_path
stringlengths
45
249
content
stringlengths
47
6.26M
file_size
int64
47
6.26M
language
stringclasses
1 value
extension
stringclasses
1 value
repo_name
stringclasses
767 values
repo_stars
int64
8
14.4k
repo_forks
int64
0
1.17k
repo_open_issues
int64
0
788
repo_created_at
stringclasses
767 values
repo_pushed_at
stringclasses
767 values
Crosshair.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/Crosshair.java
/* * LiquidBounce+ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/WYSI-Foundation/LiquidBouncePlus/ * * This code belongs to WYSI-Foundation. Please give credits when using this in your repository. */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render2DEvent; 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.features.module.modules.color.ColorMixer; import net.ccbluex.liquidbounce.features.module.modules.combat.KillAura; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.value.ListValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.BoolValue; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.entity.EntityLivingBase; import net.minecraft.client.renderer.GlStateManager; import java.awt.Color; import static org.lwjgl.opengl.GL11.*; @ModuleInfo(name = "Crosshair", description = "The CS:GO.", category = ModuleCategory.RENDER) public class Crosshair extends Module { //Color public ListValue colorModeValue = new ListValue("Color", new String[]{ "Custom", "Rainbow", "LiquidSlowly", "Sky", "Fade", "Mixer" }, "Custom"); public IntegerValue colorRedValue = new IntegerValue("Red", 0, 0, 255); public IntegerValue colorGreenValue = new IntegerValue("Green", 0, 0, 255); public IntegerValue colorBlueValue = new IntegerValue("Blue", 0, 0, 255); public IntegerValue colorAlphaValue = new IntegerValue("Alpha", 255, 0, 255); //Rainbow thingy private final FloatValue saturationValue = new FloatValue("Saturation", 1F, 0F, 1F); private final FloatValue brightnessValue = new FloatValue("Brightness", 1F, 0F, 1F); private final IntegerValue mixerSecondsValue = new IntegerValue("Seconds", 2, 1, 10); //Size, width, hitmarker public FloatValue widthVal = new FloatValue("Width", 2, 0.25F, 10); public FloatValue sizeVal = new FloatValue("Size/Length", 7, 0.25F, 15); public FloatValue gapVal = new FloatValue("Gap", 5, 0.25F, 15); public BoolValue dynamicVal = new BoolValue("Dynamic", true); public BoolValue hitMarkerVal = new BoolValue("HitMarker", true); public BoolValue noVanillaCH = new BoolValue("NoVanillaCrossHair", true); @EventTarget public void onRender2D(Render2DEvent event) { final ScaledResolution scaledRes = new ScaledResolution(mc); float width = widthVal.get(); float size = sizeVal.get(); float gap = gapVal.get(); glPushMatrix(); RenderUtils.drawBorderedRect(scaledRes.getScaledWidth() / 2F - width, scaledRes.getScaledHeight() / 2F - gap - size - (this.isMoving() ? 2 : 0), scaledRes.getScaledWidth() / 2F + 1.0f + width, scaledRes.getScaledHeight() / 2F - gap - (this.isMoving() ? 2 : 0), 0.5F, new Color(0, 0, 0, colorAlphaValue.get()).getRGB(), getCrosshairColor().getRGB()); RenderUtils.drawBorderedRect(scaledRes.getScaledWidth() / 2F - width, scaledRes.getScaledHeight() / 2F + gap + 1 + (this.isMoving() ? 2 : 0) - 0.15F, scaledRes.getScaledWidth() / 2F + 1.0f + width, scaledRes.getScaledHeight() / 2F + 1 + gap + size + (this.isMoving() ? 2 : 0) - 0.15F, 0.5F, new Color(0, 0, 0, colorAlphaValue.get()).getRGB(), getCrosshairColor().getRGB()); RenderUtils.drawBorderedRect(scaledRes.getScaledWidth() / 2F - gap - size - (this.isMoving() ? 2 : 0) + 0.15F, scaledRes.getScaledHeight() / 2F - width, scaledRes.getScaledWidth() / 2F - gap - (this.isMoving() ? 2 : 0) + 0.15F, scaledRes.getScaledHeight() / 2 + 1.0f + width, 0.5F, new Color(0, 0, 0, colorAlphaValue.get()).getRGB(), getCrosshairColor().getRGB()); RenderUtils.drawBorderedRect(scaledRes.getScaledWidth() / 2F + 1 + gap + (this.isMoving() ? 2 : 0), scaledRes.getScaledHeight() / 2F - width, scaledRes.getScaledWidth() / 2F + size + gap + 1.0F + (this.isMoving() ? 2 : 0), scaledRes.getScaledHeight() / 2 + 1.0f + width, 0.5F, new Color(0, 0, 0, colorAlphaValue.get()).getRGB(), getCrosshairColor().getRGB()); glPopMatrix(); GlStateManager.resetColor(); //glColor4f(0F, 0F, 0F, 0F) EntityLivingBase target = LiquidBounce.moduleManager.getModule(KillAura.class).getTarget(); if (hitMarkerVal.get() && target != null && target.hurtTime > 0) { glPushMatrix(); GlStateManager.enableBlend(); GlStateManager.disableTexture2D(); GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO); glColor4f(1, 1, 1, (float)target.hurtTime / (float)target.maxHurtTime); glEnable(GL_LINE_SMOOTH); glLineWidth(1F); glBegin(3); glVertex2f(scaledRes.getScaledWidth() / 2F + gap, scaledRes.getScaledHeight() / 2F + gap); glVertex2f(scaledRes.getScaledWidth() / 2F + gap + size, scaledRes.getScaledHeight() / 2F + gap + size); glEnd(); glBegin(3); glVertex2f(scaledRes.getScaledWidth() / 2F - gap, scaledRes.getScaledHeight() / 2F - gap); glVertex2f(scaledRes.getScaledWidth() / 2F - gap - size, scaledRes.getScaledHeight() / 2F - gap - size); glEnd(); glBegin(3); glVertex2f(scaledRes.getScaledWidth() / 2F - gap, scaledRes.getScaledHeight() / 2F + gap); glVertex2f(scaledRes.getScaledWidth() / 2F - gap - size, scaledRes.getScaledHeight() / 2F + gap + size); glEnd(); glBegin(3); glVertex2f(scaledRes.getScaledWidth() / 2F + gap, scaledRes.getScaledHeight() / 2F - gap); glVertex2f(scaledRes.getScaledWidth() / 2F + gap + size, scaledRes.getScaledHeight() / 2F - gap - size); glEnd(); GlStateManager.enableTexture2D(); GlStateManager.disableBlend(); glPopMatrix(); } } private boolean isMoving() { return dynamicVal.get() && MovementUtils.isMoving(); } private Color getCrosshairColor() { switch (colorModeValue.get()) { case "Custom": return new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), colorAlphaValue.get()); case "Rainbow": return new Color(RenderUtils.getRainbowOpaque(mixerSecondsValue.get(), saturationValue.get(), brightnessValue.get(), 0)); case "Sky": return ColorUtils.reAlpha(RenderUtils.skyRainbow(0, saturationValue.get(), brightnessValue.get()), colorAlphaValue.get()); case "LiquidSlowly": return ColorUtils.reAlpha(ColorUtils.LiquidSlowly(System.nanoTime(), 0, saturationValue.get(), brightnessValue.get()), colorAlphaValue.get()); case "Mixer": return ColorUtils.reAlpha(ColorMixer.getMixedColor(0, mixerSecondsValue.get()), colorAlphaValue.get()); default: return ColorUtils.reAlpha(ColorUtils.fade(new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()), 0, 100), colorAlphaValue.get()); } } }
7,471
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
ProphuntESP.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/ProphuntESP.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityFallingBlock; import net.minecraft.util.BlockPos; import java.awt.*; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @ModuleInfo(name = "ProphuntESP", spacedName = "Prophunt ESP", description = "Allows you to see disguised players in PropHunt.", category = ModuleCategory.RENDER) public class ProphuntESP extends Module { public final Map<BlockPos, Long> blocks = new HashMap<>(); private final IntegerValue colorRedValue = new IntegerValue("R", 0, 0, 255); private final IntegerValue colorGreenValue = new IntegerValue("G", 90, 0, 255); private final IntegerValue colorBlueValue = new IntegerValue("B", 255, 0, 255); private final BoolValue colorRainbow = new BoolValue("Rainbow", false); @Override public void onDisable() { synchronized(blocks) { blocks.clear(); } } @EventTarget public void onRender3D(final Render3DEvent event) { final Color color = colorRainbow.get() ? ColorUtils.rainbow() : new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); for(final Entity entity : mc.theWorld.loadedEntityList) { if(!(entity instanceof EntityFallingBlock)) continue; RenderUtils.drawEntityBox(entity, color, true); } synchronized(blocks) { final Iterator<Map.Entry<BlockPos, Long>> iterator = blocks.entrySet().iterator(); while(iterator.hasNext()) { final Map.Entry<BlockPos, Long> entry = iterator.next(); if(System.currentTimeMillis() - entry.getValue() > 2000L) { iterator.remove(); continue; } RenderUtils.drawBlockBox(entry.getKey(), color, true); } } } }
2,641
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Animations.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/Animations.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; 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.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; @ModuleInfo(name = "Animations", description = "Render items Animations", category = ModuleCategory.RENDER) public class Animations extends Module { // some ListValue public static final ListValue Sword = new ListValue("Style", new String[]{ "Normal", "Slidedown", "Slidedown2", "Slide", "Minecraft", "Remix", "Exhibition", "Exhibition2", "Avatar", "Swang", "Tap", "Tap2", "Poke", "Push", "Push2", "Up", "Shield", "Akrien", "VisionFX", "Swong", "Swank", "SigmaOld", "ETB", "Rotate360", "SmoothFloat", "Strange", "Reverse", "Zoom", "Move", "Stab", "Jello", "1.7", "Flux", "Stella", "Tifality", "OldExhibition" }, "Minecraft"); // item general scale public static final FloatValue Scale = new FloatValue("Scale", 0.4f, 0f, 4f); // normal item position public static final FloatValue itemPosX = new FloatValue("ItemX", 0f, -1f, 1f); public static final FloatValue itemPosY = new FloatValue("ItemY", 0f, -1f, 1f); public static final FloatValue itemPosZ = new FloatValue("ItemZ", 0f, -1f, 1f); // change Position Blocking Sword public static final FloatValue blockPosX = new FloatValue("BlockingX", 0f, -1f, 1f); public static final FloatValue blockPosY = new FloatValue("BlockingY", 0f, -1f, 1f); public static final FloatValue blockPosZ = new FloatValue("BlockingZ", 0f, -1f, 1f); // modify item swing and rotate public static final IntegerValue SpeedSwing = new IntegerValue("Swing-Speed", 4, 0, 20); public static final BoolValue RotateItems = new BoolValue("Rotate-Items", false); public static final FloatValue SpeedRotate = new FloatValue("Rotate-Speed", 1f, 0f, 10f, () -> RotateItems.get() || Sword.get().equalsIgnoreCase("smoothfloat") || Sword.get().equalsIgnoreCase("rotate360")); // transform rotation public static final ListValue transformFirstPersonRotate = new ListValue("RotateMode", new String[]{"RotateY", "RotateXY", "Custom" , "None"}, "RotateY"); // custom item rotate public static final FloatValue customRotate1 = new FloatValue("RotateXAxis", 0, -180, 180, () -> RotateItems.get() && transformFirstPersonRotate.get().equalsIgnoreCase("custom")); public static final FloatValue customRotate2 = new FloatValue("RotateYAxis", 0, -180, 180, () -> RotateItems.get() && transformFirstPersonRotate.get().equalsIgnoreCase("custom")); public static final FloatValue customRotate3 = new FloatValue("RotateZAxis", 0, -180, 180, () -> RotateItems.get() && transformFirstPersonRotate.get().equalsIgnoreCase("custom")); // custom animation sword public static final FloatValue mcSwordPos = new FloatValue("MCPosOffset", 0.45f, 0, 0.5f, () -> Sword.get().equalsIgnoreCase("minecraft")); // fake blocking public static final BoolValue fakeBlock = new BoolValue("Fake-Block", false); // block not everything public static final BoolValue blockEverything = new BoolValue("Block-Everything", false); // gui animations public static final ListValue guiAnimations = new ListValue("Container-Animation", new String[]{"None", "Zoom", "Slide", "Smooth"}, "None"); public static final ListValue vSlideValue = new ListValue("Slide-Vertical", new String[]{"None", "Upward", "Downward"}, "Downward", () -> guiAnimations.get().equalsIgnoreCase("slide")); public static final ListValue hSlideValue = new ListValue("Slide-Horizontal", new String[]{"None", "Right", "Left"}, "Right", () -> guiAnimations.get().equalsIgnoreCase("slide")); public static final IntegerValue animTimeValue = new IntegerValue("Container-AnimTime", 750, 0, 3000, () -> !guiAnimations.get().equalsIgnoreCase("none")); public static final ListValue tabAnimations = new ListValue("Tab-Animation", new String[]{"None", "Zoom", "Slide"}, "Zoom"); // block crack public static final BoolValue noBlockParticles = new BoolValue("NoBlockParticles", false); }
4,555
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AsianHat.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/AsianHat.java
/* * LiquidBounce+ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/WYSI-Foundation/LiquidBouncePlus/ * * This code belongs to WYSI-Foundation. Please give credits when using this in your repository. */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.MotionEvent; import net.ccbluex.liquidbounce.event.Render3DEvent; import net.ccbluex.liquidbounce.features.module.modules.color.ColorMixer; 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.ui.font.GameFontRenderer; import net.ccbluex.liquidbounce.utils.RotationUtils; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.value.*; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.WorldRenderer; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.AxisAlignedBB; import org.lwjgl.opengl.GL11; import java.awt.Color; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @ModuleInfo(name = "AsianHat", spacedName = "Asian Hat", description = "not your typical china hat", category = ModuleCategory.RENDER) public class AsianHat extends Module { private final ListValue colorModeValue = new ListValue("Color", new String[] {"Custom", "Rainbow", "Sky", "LiquidSlowly", "Fade", "Mixer"}, "Custom"); private final IntegerValue colorRedValue = new IntegerValue("Red", 255, 0, 255); private final IntegerValue colorGreenValue = new IntegerValue("Green", 255, 0, 255); private final IntegerValue colorBlueValue = new IntegerValue("Blue", 255, 0, 255); private final IntegerValue colorAlphaValue = new IntegerValue("Alpha", 255, 0, 255); private final IntegerValue colorEndAlphaValue = new IntegerValue("EndAlpha", 255, 0, 255); private final FloatValue saturationValue = new FloatValue("Saturation", 1F, 0F, 1F); private final FloatValue brightnessValue = new FloatValue("Brightness", 1F, 0F, 1F); private final IntegerValue mixerSecondsValue = new IntegerValue("Seconds", 2, 1, 10); private final IntegerValue spaceValue = new IntegerValue("Color-Space", 0, 0, 100); private final BoolValue noFirstPerson = new BoolValue("NoFirstPerson", true); private final BoolValue hatBorder = new BoolValue("HatBorder", true); private final BoolValue hatRotation = new BoolValue("HatRotation", true); private final IntegerValue borderAlphaValue = new IntegerValue("BorderAlpha", 255, 0, 255); private final FloatValue borderWidthValue = new FloatValue("BorderWidth", 1F, 0.1F, 4F); private final List<double[]> positions = new ArrayList<>(); private double lastRadius = 0; private void checkPosition(double radius) { if (radius != lastRadius) { // generate new positions positions.clear(); for (int i = 0; i <= 360; i += 1) positions.add(new double[] {-Math.sin(i * Math.PI / 180) * radius, Math.cos(i * Math.PI / 180) * radius}); } lastRadius = radius; } @EventTarget public void onRender3D(Render3DEvent event) { EntityLivingBase entity = mc.thePlayer; if (entity == null || (noFirstPerson.get() && mc.gameSettings.thirdPersonView == 0)) return; final AxisAlignedBB bb = entity.getEntityBoundingBox(); float partialTicks = event.getPartialTicks(); double radius = bb.maxX - bb.minX; double height = bb.maxY - bb.minY; double posX = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * partialTicks; double posY = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * partialTicks; double posZ = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * partialTicks; double viewX = -mc.getRenderManager().viewerPosX; double viewY = -mc.getRenderManager().viewerPosY; double viewZ = -mc.getRenderManager().viewerPosZ; Color colour = getColor(entity, 0); float r = colour.getRed() / 255.0F; float g = colour.getGreen() / 255.0F; float b = colour.getBlue() / 255.0F; float al = colorAlphaValue.get() / 255.0F; float Eal = colorEndAlphaValue.get() / 255.0F; Tessellator tessellator = Tessellator.getInstance(); WorldRenderer worldrenderer = tessellator.getWorldRenderer(); checkPosition(radius); GL11.glPushMatrix(); GlStateManager.translate(viewX + posX, viewY + posY + height - 0.4, viewZ + posZ); pre3D(); if (hatRotation.get()) { final Rotations rotMod = LiquidBounce.moduleManager.getModule(Rotations.class); float yaw = RenderUtils.interpolate(entity.rotationYaw, entity.prevRotationYaw, partialTicks); float pitch = RenderUtils.interpolate(entity.rotationPitch, entity.prevRotationPitch, partialTicks); if (rotMod != null && rotMod.shouldRotate()) { yaw = RotationUtils.targetRotation != null ? RotationUtils.targetRotation.getYaw() : (RotationUtils.serverRotation != null ? RotationUtils.serverRotation.getYaw() : yaw); pitch = RotationUtils.targetRotation != null ? RotationUtils.targetRotation.getPitch() : (RotationUtils.serverRotation != null ? RotationUtils.serverRotation.getPitch() : pitch); } GlStateManager.rotate(-yaw, 0, 1, 0); GlStateManager.rotate(pitch, 1, 0, 0); } worldrenderer.begin(GL11.GL_POLYGON, DefaultVertexFormats.POSITION_COLOR); // main section worldrenderer.pos(0, 0.7, 0).color(r, g, b, al).endVertex(); int i = 0; for (double[] smolPos : positions) { if (spaceValue.get() > 0 && !colorModeValue.get().equalsIgnoreCase("Custom")) { Color colour2 = getColor(entity, i * spaceValue.get()); float r2 = colour2.getRed() / 255.0F; float g2 = colour2.getGreen() / 255.0F; float b2 = colour2.getBlue() / 255.0F; worldrenderer.pos(smolPos[0], 0.4, smolPos[1]).color(r2, g2, b2, Eal).endVertex(); } else { worldrenderer.pos(smolPos[0], 0.4, smolPos[1]).color(r, g, b, Eal).endVertex(); } i++; } worldrenderer.pos(0, 0.7, 0).color(r, g, b, al).endVertex(); tessellator.draw(); // border section if (hatBorder.get()) { float lineAlp = borderAlphaValue.get() / 255.0F; GL11.glLineWidth(borderWidthValue.get()); worldrenderer.begin(GL11.GL_LINE_LOOP, DefaultVertexFormats.POSITION_COLOR); i = 0; for (double[] smolPos : positions) { if (spaceValue.get() > 0 && !colorModeValue.get().equalsIgnoreCase("Custom")) { Color colour2 = getColor(entity, i * spaceValue.get()); float r2 = colour2.getRed() / 255.0F; float g2 = colour2.getGreen() / 255.0F; float b2 = colour2.getBlue() / 255.0F; worldrenderer.pos(smolPos[0], 0.4, smolPos[1]).color(r2, g2, b2, lineAlp).endVertex(); } else { worldrenderer.pos(smolPos[0], 0.4, smolPos[1]).color(r, g, b, lineAlp).endVertex(); } i++; } tessellator.draw(); } post3D(); GL11.glPopMatrix(); } public final Color getColor(final Entity ent, final int index) { switch (colorModeValue.get()) { case "Custom": return new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); case "Rainbow": return new Color(RenderUtils.getRainbowOpaque(mixerSecondsValue.get(), saturationValue.get(), brightnessValue.get(), index)); case "Sky": return RenderUtils.skyRainbow(index, saturationValue.get(), brightnessValue.get()); case "LiquidSlowly": return ColorUtils.LiquidSlowly(System.nanoTime(), index, saturationValue.get(), brightnessValue.get()); case "Mixer": return ColorMixer.getMixedColor(index, mixerSecondsValue.get()); default: return ColorUtils.fade(new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()), index, 100); } } public static void pre3D() { GL11.glPushMatrix(); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glShadeModel(GL11.GL_SMOOTH); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glDepthMask(false); GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST); GL11.glDisable(2884); } public static void post3D() { GL11.glDepthMask(true); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LINE_SMOOTH); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); GL11.glColor4f(1, 1, 1, 1); } }
9,639
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Breadcrumbs.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/Breadcrumbs.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.FloatValue; import java.awt.*; import java.util.LinkedList; import java.util.List; import java.util.ArrayList; import static org.lwjgl.opengl.GL11.*; @ModuleInfo(name = "Breadcrumbs", description = "Leaves a trail behind you.", category = ModuleCategory.RENDER) public class Breadcrumbs extends Module { public final BoolValue unlimitedValue = new BoolValue("Unlimited", false); public final FloatValue lineWidth = new FloatValue("LineWidth", 0F, 1F, 10F); public final IntegerValue colorRedValue = new IntegerValue("R", 255, 0, 255); public final IntegerValue colorGreenValue = new IntegerValue("G", 179, 0, 255); public final IntegerValue colorBlueValue = new IntegerValue("B", 72, 0, 255); public final IntegerValue fadeSpeedValue = new IntegerValue("Fade-Speed", 25, 0, 255); public final BoolValue colorRainbow = new BoolValue("Rainbow", false); private final LinkedList<Dot> positions = new LinkedList<>(); private double lastX, lastY, lastZ = 0; @EventTarget public void onRender3D(Render3DEvent event) { final Color color = colorRainbow.get() ? ColorUtils.rainbow() : new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); synchronized (positions) { glPushMatrix(); glDisable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glDisable(GL_DEPTH_TEST); mc.entityRenderer.disableLightmap(); glLineWidth(lineWidth.get()); glBegin(GL_LINE_STRIP); final double renderPosX = mc.getRenderManager().viewerPosX; final double renderPosY = mc.getRenderManager().viewerPosY; final double renderPosZ = mc.getRenderManager().viewerPosZ; List<Dot> removeQueue = new ArrayList<>(); for (final Dot dot : positions) { if (dot.alpha > 0) dot.render(color, renderPosX, renderPosY, renderPosZ, unlimitedValue.get() ? 0 : fadeSpeedValue.get()); else removeQueue.add(dot); } for (Dot removeDot : removeQueue) positions.remove(removeDot); glColor4d(1, 1, 1, 1); glEnd(); glEnable(GL_DEPTH_TEST); glDisable(GL_LINE_SMOOTH); glDisable(GL_BLEND); glEnable(GL_TEXTURE_2D); glPopMatrix(); } } @EventTarget public void onUpdate(UpdateEvent event) { synchronized (positions) { if (mc.thePlayer.posX != lastX || mc.thePlayer.getEntityBoundingBox().minY != lastY || mc.thePlayer.posZ != lastZ) { positions.add(new Dot(new double[]{mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ})); lastX = mc.thePlayer.posX; lastY = mc.thePlayer.getEntityBoundingBox().minY; lastZ = mc.thePlayer.posZ; } } } @Override public void onEnable() { if (mc.thePlayer == null) return; synchronized (positions) { positions.add(new Dot(new double[]{mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY + (mc.thePlayer.getEyeHeight() * 0.5f), mc.thePlayer.posZ})); positions.add(new Dot(new double[]{mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ})); } super.onEnable(); } @Override public void onDisable() { synchronized (positions) { positions.clear(); } super.onDisable(); } class Dot { public int alpha = 255; private final double[] pos; public Dot(double[] position) { this.pos = position; } public void render(Color color, double renderPosX, double renderPosY, double renderPosZ, int decreaseBy) { Color reColor = ColorUtils.reAlpha(color, alpha); RenderUtils.glColor(reColor); glVertex3d(pos[0] - renderPosX, pos[1] - renderPosY, pos[2] - renderPosZ); alpha -= decreaseBy; if (alpha < 0) alpha = 0; } } }
5,100
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
ESP2D.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/ESP2D.java
/* * LiquidBounce+ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/WYSI-Foundation/LiquidBouncePlus/ * * This code belongs to WYSI-Foundation. Please give credits when using this in your repository. */ package net.ccbluex.liquidbounce.features.module.modules.render; import java.awt.Color; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import javax.vecmath.Vector3d; import javax.vecmath.Vector4d; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; 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.features.module.modules.color.ColorMixer; import net.ccbluex.liquidbounce.value.*; import net.ccbluex.liquidbounce.ui.font.Fonts; import net.ccbluex.liquidbounce.ui.font.GameFontRenderer; import net.ccbluex.liquidbounce.utils.EntityUtils; import net.ccbluex.liquidbounce.utils.item.ItemUtils; import net.ccbluex.liquidbounce.utils.render.BlendUtils; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.Stencil; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.GLAllocation; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.RenderHelper; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.boss.EntityDragon; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.monster.EntityGolem; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.monster.EntitySlime; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MathHelper; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.GL11; import org.lwjgl.util.glu.GLU; @ModuleInfo(name = "ESP2D", description = "autumn skid.", category = ModuleCategory.RENDER) public final class ESP2D extends Module { public final BoolValue outline = new BoolValue("Outline", true); public final ListValue boxMode = new ListValue("Mode", new String[]{"Box", "Corners"}, "Box"); public final BoolValue healthBar = new BoolValue("Health-bar", true); public final ListValue hpBarMode = new ListValue("HBar-Mode", new String[]{"Dot", "Line"}, "Dot", () -> healthBar.get()); public final BoolValue absorption = new BoolValue("Render-Absorption", true, () -> healthBar.get() && hpBarMode.get().equalsIgnoreCase("line")); public final BoolValue armorBar = new BoolValue("Armor-bar", true); public final ListValue armorBarMode = new ListValue("ABar-Mode", new String[] {"Total", "Items"}, "Total", () -> armorBar.get()); public final BoolValue healthNumber = new BoolValue("HealthNumber", true, () -> healthBar.get()); public final ListValue hpMode = new ListValue("HP-Mode", new String[]{"Health", "Percent"}, "Health", () -> healthBar.get() && healthNumber.get()); public final BoolValue armorNumber = new BoolValue("ItemArmorNumber", true, () -> armorBar.get()); public final BoolValue armorItems = new BoolValue("ArmorItems", true); public final BoolValue armorDur = new BoolValue("ArmorDurability", true, () -> armorItems.get()); public final BoolValue hoverValue = new BoolValue("Details-HoverOnly", false); public final BoolValue tagsValue = new BoolValue("Tags", true); public final BoolValue tagsBGValue = new BoolValue("Tags-Background", true, () -> tagsValue.get()); public final BoolValue itemTagsValue = new BoolValue("Item-Tags", true); public final BoolValue clearNameValue = new BoolValue("Use-Clear-Name", false); public final BoolValue localPlayer = new BoolValue("Local-Player", true); public final BoolValue droppedItems = new BoolValue("Dropped-Items", false); private final ListValue colorModeValue = new ListValue("Color", new String[] {"Custom", "Rainbow", "Sky", "LiquidSlowly", "Fade", "Mixer"}, "Custom"); private final IntegerValue colorRedValue = new IntegerValue("Red", 255, 0, 255); private final IntegerValue colorGreenValue = new IntegerValue("Green", 255, 0, 255); private final IntegerValue colorBlueValue = new IntegerValue("Blue", 255, 0, 255); private final FloatValue saturationValue = new FloatValue("Saturation", 1F, 0F, 1F); private final FloatValue brightnessValue = new FloatValue("Brightness", 1F, 0F, 1F); private final IntegerValue mixerSecondsValue = new IntegerValue("Seconds", 2, 1, 10); private final FloatValue fontScaleValue = new FloatValue("Font-Scale", 0.5F, 0F, 1F, "x"); private final BoolValue colorTeam = new BoolValue("Team", false); public static List collectedEntities = new ArrayList(); private final IntBuffer viewport; private final FloatBuffer modelview; private final FloatBuffer projection; private final FloatBuffer vector; private final int backgroundColor; private final int black; private final DecimalFormat dFormat = new DecimalFormat("0.0"); public ESP2D() { this.viewport = GLAllocation.createDirectIntBuffer(16); this.modelview = GLAllocation.createDirectFloatBuffer(16); this.projection = GLAllocation.createDirectFloatBuffer(16); this.vector = GLAllocation.createDirectFloatBuffer(4); this.backgroundColor = new Color(0, 0, 0, 120).getRGB(); this.black = Color.BLACK.getRGB(); } public final Color getColor(final Entity entity) { if (entity instanceof EntityLivingBase) { final EntityLivingBase entityLivingBase = (EntityLivingBase) entity; if (entityLivingBase.hurtTime > 0) return Color.RED; if (EntityUtils.isFriend(entityLivingBase)) return Color.BLUE; if (colorTeam.get()) { final char[] chars = entityLivingBase.getDisplayName().getFormattedText().toCharArray(); int color = Integer.MAX_VALUE; for (int i = 0; i < chars.length; i++) { if (chars[i] != '§' || i + 1 >= chars.length) continue; final int index = GameFontRenderer.getColorIndex(chars[i + 1]); if (index < 0 || index > 15) continue; color = ColorUtils.hexColors[index]; break; } return new Color(color); } } switch (colorModeValue.get()) { case "Custom": return new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); case "Rainbow": return new Color(RenderUtils.getRainbowOpaque(mixerSecondsValue.get(), saturationValue.get(), brightnessValue.get(), 0)); case "Sky": return RenderUtils.skyRainbow(0, saturationValue.get(), brightnessValue.get()); case "LiquidSlowly": return ColorUtils.LiquidSlowly(System.nanoTime(), 0, saturationValue.get(), brightnessValue.get()); case "Mixer": return ColorMixer.getMixedColor(0, mixerSecondsValue.get()); default: return ColorUtils.fade(new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()), 0, 100); } } public static boolean shouldCancelNameTag(EntityLivingBase entity) { return LiquidBounce.moduleManager.getModule(ESP2D.class) != null && LiquidBounce.moduleManager.getModule(ESP2D.class).getState() && LiquidBounce.moduleManager.getModule(ESP2D.class).tagsValue.get() && collectedEntities.contains(entity); } @Override public void onDisable() { collectedEntities.clear(); } @EventTarget public void onRender2D(Render2DEvent event) { GL11.glPushMatrix(); this.collectEntities(); float partialTicks = event.getPartialTicks(); ScaledResolution scaledResolution = new ScaledResolution(mc); int scaleFactor = scaledResolution.getScaleFactor(); double scaling = (double)scaleFactor / Math.pow((double)scaleFactor, 2.0D); GL11.glScaled(scaling, scaling, scaling); int black = this.black; int background = this.backgroundColor; float scale = 0.65F; float upscale = 1.0F / scale; FontRenderer fr = mc.fontRendererObj; RenderManager renderMng = mc.getRenderManager(); EntityRenderer entityRenderer = mc.entityRenderer; boolean outline = this.outline.get(); boolean health = this.healthBar.get(); boolean armor = this.armorBar.get(); int i = 0; for(int collectedEntitiesSize = collectedEntities.size(); i < collectedEntitiesSize; ++i) { Entity entity = (Entity)collectedEntities.get(i); int color = getColor(entity).getRGB(); if (RenderUtils.isInViewFrustrum(entity)) { double x = RenderUtils.interpolate(entity.posX, entity.lastTickPosX, (double)partialTicks); double y = RenderUtils.interpolate(entity.posY, entity.lastTickPosY, (double)partialTicks); double z = RenderUtils.interpolate(entity.posZ, entity.lastTickPosZ, (double)partialTicks); double width = (double)entity.width / 1.5D; double height = (double)entity.height + (entity.isSneaking() ? -0.3D : 0.2D); AxisAlignedBB aabb = new AxisAlignedBB(x - width, y, z - width, x + width, y + height, z + width); List vectors = Arrays.asList(new Vector3d(aabb.minX, aabb.minY, aabb.minZ), new Vector3d(aabb.minX, aabb.maxY, aabb.minZ), new Vector3d(aabb.maxX, aabb.minY, aabb.minZ), new Vector3d(aabb.maxX, aabb.maxY, aabb.minZ), new Vector3d(aabb.minX, aabb.minY, aabb.maxZ), new Vector3d(aabb.minX, aabb.maxY, aabb.maxZ), new Vector3d(aabb.maxX, aabb.minY, aabb.maxZ), new Vector3d(aabb.maxX, aabb.maxY, aabb.maxZ)); entityRenderer.setupCameraTransform(partialTicks, 0); Vector4d position = null; Iterator var38 = vectors.iterator(); while(var38.hasNext()) { Vector3d vector = (Vector3d)var38.next(); vector = this.project2D(scaleFactor, vector.x - renderMng.viewerPosX, vector.y - renderMng.viewerPosY, vector.z - renderMng.viewerPosZ); if (vector != null && vector.z >= 0.0D && vector.z < 1.0D) { if (position == null) { position = new Vector4d(vector.x, vector.y, vector.z, 0.0D); } position.x = Math.min(vector.x, position.x); position.y = Math.min(vector.y, position.y); position.z = Math.max(vector.x, position.z); position.w = Math.max(vector.y, position.w); } } if (position != null) { entityRenderer.setupOverlayRendering(); double posX = position.x; double posY = position.y; double endPosX = position.z; double endPosY = position.w; if (outline) { if (this.boxMode.get() == "Box") { RenderUtils.newDrawRect(posX - 1.0D, posY, posX + 0.5D, endPosY + 0.5D, black); RenderUtils.newDrawRect(posX - 1.0D, posY - 0.5D, endPosX + 0.5D, posY + 0.5D + 0.5D, black); RenderUtils.newDrawRect(endPosX - 0.5D - 0.5D, posY, endPosX + 0.5D, endPosY + 0.5D, black); RenderUtils.newDrawRect(posX - 1.0D, endPosY - 0.5D - 0.5D, endPosX + 0.5D, endPosY + 0.5D, black); RenderUtils.newDrawRect(posX - 0.5D, posY, posX + 0.5D - 0.5D, endPosY, color); RenderUtils.newDrawRect(posX, endPosY - 0.5D, endPosX, endPosY, color); RenderUtils.newDrawRect(posX - 0.5D, posY, endPosX, posY + 0.5D, color); RenderUtils.newDrawRect(endPosX - 0.5D, posY, endPosX, endPosY, color); } else { RenderUtils.newDrawRect(posX + 0.5D, posY, posX - 1.0D, posY + (endPosY - posY) / 4.0D + 0.5D, black); RenderUtils.newDrawRect(posX - 1.0D, endPosY, posX + 0.5D, endPosY - (endPosY - posY) / 4.0D - 0.5D, black); RenderUtils.newDrawRect(posX - 1.0D, posY - 0.5D, posX + (endPosX - posX) / 3.0D + 0.5D, posY + 1.0D, black); RenderUtils.newDrawRect(endPosX - (endPosX - posX) / 3.0D - 0.5D, posY - 0.5D, endPosX, posY + 1.0D, black); RenderUtils.newDrawRect(endPosX - 1.0D, posY, endPosX + 0.5D, posY + (endPosY - posY) / 4.0D + 0.5D, black); RenderUtils.newDrawRect(endPosX - 1.0D, endPosY, endPosX + 0.5D, endPosY - (endPosY - posY) / 4.0D - 0.5D, black); RenderUtils.newDrawRect(posX - 1.0D, endPosY - 1.0D, posX + (endPosX - posX) / 3.0D + 0.5D, endPosY + 0.5D, black); RenderUtils.newDrawRect(endPosX - (endPosX - posX) / 3.0D - 0.5D, endPosY - 1.0D, endPosX + 0.5D, endPosY + 0.5D, black); RenderUtils.newDrawRect(posX, posY, posX - 0.5D, posY + (endPosY - posY) / 4.0D, color); RenderUtils.newDrawRect(posX, endPosY, posX - 0.5D, endPosY - (endPosY - posY) / 4.0D, color); RenderUtils.newDrawRect(posX - 0.5D, posY, posX + (endPosX - posX) / 3.0D, posY + 0.5D, color); RenderUtils.newDrawRect(endPosX - (endPosX - posX) / 3.0D, posY, endPosX, posY + 0.5D, color); RenderUtils.newDrawRect(endPosX - 0.5D, posY, endPosX, posY + (endPosY - posY) / 4.0D, color); RenderUtils.newDrawRect(endPosX - 0.5D, endPosY, endPosX, endPosY - (endPosY - posY) / 4.0D, color); RenderUtils.newDrawRect(posX, endPosY - 0.5D, posX + (endPosX - posX) / 3.0D, endPosY, color); RenderUtils.newDrawRect(endPosX - (endPosX - posX) / 3.0D, endPosY - 0.5D, endPosX - 0.5D, endPosY, color); } } boolean living = entity instanceof EntityLivingBase; boolean isPlayer = entity instanceof EntityPlayer; EntityLivingBase entityLivingBase; float armorValue; float itemDurability; double durabilityWidth; double textWidth; float tagY; if (living) { entityLivingBase = (EntityLivingBase)entity; if (health) { armorValue = entityLivingBase.getHealth(); itemDurability = entityLivingBase.getMaxHealth(); if (armorValue > itemDurability) armorValue = itemDurability; durabilityWidth = (double)(armorValue / itemDurability); textWidth = (endPosY - posY) * durabilityWidth; String healthDisplay = dFormat.format(entityLivingBase.getHealth()) + " §c❤"; String healthPercent = ((int) ((entityLivingBase.getHealth() / itemDurability) * 100F)) + "%"; if (healthNumber.get() && (!hoverValue.get() || entity == mc.thePlayer || isHovering(posX, endPosX, posY, endPosY, scaledResolution))) drawScaledString(hpMode.get().equalsIgnoreCase("health") ? healthDisplay : healthPercent, posX - 4.0 - mc.fontRendererObj.getStringWidth(hpMode.get().equalsIgnoreCase("health") ? healthDisplay : healthPercent) * fontScaleValue.get(), (endPosY - textWidth) - mc.fontRendererObj.FONT_HEIGHT / 2F * fontScaleValue.get(), fontScaleValue.get(), -1); RenderUtils.newDrawRect(posX - 3.5D, posY - 0.5D, posX - 1.5D, endPosY + 0.5D, background); if (armorValue > 0.0F) { int healthColor = BlendUtils.getHealthColor(armorValue, itemDurability).getRGB(); double deltaY = endPosY - posY; if (hpBarMode.get().equalsIgnoreCase("dot") && deltaY >= 60) { // revert back to normal bar if the height is too low for (double k = 0; k < 10; k++) { double reratio = MathHelper.clamp_double(armorValue - k * (itemDurability / 10D), 0D, itemDurability / 10D) / (itemDurability / 10D); double hei = (deltaY / 10D - 0.5) * reratio; RenderUtils.newDrawRect(posX - 3.0D, endPosY - (deltaY + 0.5) / 10D * k, posX - 2.0D, endPosY - (deltaY + 0.5) / 10D * k - hei, healthColor); } } else { RenderUtils.newDrawRect(posX - 3.0D, endPosY, posX - 2.0D, endPosY - textWidth, healthColor); tagY = entityLivingBase.getAbsorptionAmount(); if (absorption.get() && tagY > 0.0F) RenderUtils.newDrawRect(posX - 3.0D, endPosY, posX - 2.0D, endPosY - (endPosY - posY) / 6.0D * (double)tagY / 2.0D, (new Color(Potion.absorption.getLiquidColor())).getRGB()); } } } } if (armor) { if (living) { entityLivingBase = (EntityLivingBase)entity; if (armorBarMode.get().equalsIgnoreCase("items")) { final double constHeight = (endPosY - posY) / 4.0; for (int m = 4; m > 0; m--) { ItemStack armorStack = entityLivingBase.getEquipmentInSlot(m); double theHeight = constHeight + 0.25D; if (armorStack != null && armorStack.getItem() != null) { RenderUtils.newDrawRect(endPosX + 1.5D, endPosY + 0.5D - theHeight * m, endPosX + 3.5D, endPosY + 0.5D - theHeight * (m - 1), background); RenderUtils.newDrawRect(endPosX + 2.0D, endPosY + 0.5D - theHeight * (m - 1) - 0.25D, endPosX + 3.0D, endPosY + 0.5D - theHeight * (m - 1) - 0.25D - (constHeight - 0.25D) * MathHelper.clamp_double((double)ItemUtils.getItemDurability(armorStack) / (double) armorStack.getMaxDamage(), 0D, 1D), new Color(0, 255, 255).getRGB()); } } } else { armorValue = (float)entityLivingBase.getTotalArmorValue(); double armorWidth = (endPosY - posY) * (double)armorValue / 20.0D; RenderUtils.newDrawRect(endPosX + 1.5D, posY - 0.5D, endPosX + 3.5D, endPosY + 0.5D, background); if (armorValue > 0.0F) RenderUtils.newDrawRect(endPosX + 2.0D, endPosY, endPosX + 3.0D, endPosY - armorWidth, new Color(0, 255, 255).getRGB()); } } else if (entity instanceof EntityItem) { ItemStack itemStack = ((EntityItem)entity).getEntityItem(); if (itemStack.isItemStackDamageable()) { int maxDamage = itemStack.getMaxDamage(); itemDurability = (float)(maxDamage - itemStack.getItemDamage()); durabilityWidth = (endPosY - posY) * (double)itemDurability / (double)maxDamage; if (armorNumber.get() && (!hoverValue.get() || entity == mc.thePlayer || isHovering(posX, endPosX, posY, endPosY, scaledResolution))) drawScaledString(((int) itemDurability) + "", endPosX + 4.0, (endPosY - durabilityWidth) - mc.fontRendererObj.FONT_HEIGHT / 2F * fontScaleValue.get(), fontScaleValue.get(), -1); RenderUtils.newDrawRect(endPosX + 1.5D, posY - 0.5D, endPosX + 3.5D, endPosY + 0.5D, background); RenderUtils.newDrawRect(endPosX + 2.0D, endPosY, endPosX + 3.0D, endPosY - durabilityWidth, new Color(0, 255, 255).getRGB()); } } } if (living && armorItems.get() && (!hoverValue.get() || entity == mc.thePlayer || isHovering(posX, endPosX, posY, endPosY, scaledResolution))) { entityLivingBase = (EntityLivingBase) entity; double yDist = (double)(endPosY - posY) / 4.0D; for (int j = 4; j > 0; j--) { ItemStack armorStack = entityLivingBase.getEquipmentInSlot(j); if (armorStack != null && armorStack.getItem() != null) { renderItemStack(armorStack, endPosX + (armor ? 4.0D : 2.0D), posY + (yDist * (4 - j)) + (yDist / 2.0D) - 5.0D); if (armorDur.get()) drawScaledCenteredString(ItemUtils.getItemDurability(armorStack) + "", endPosX + (armor ? 4.0D : 2.0D) + 4.5D, posY + (yDist * (4 - j)) + (yDist / 2.0D) + 4.0D, fontScaleValue.get(), -1); } } } if (living && tagsValue.get()) { entityLivingBase = (EntityLivingBase) entity; String entName = clearNameValue.get() ? entityLivingBase.getName() : entityLivingBase.getDisplayName().getFormattedText(); if (tagsBGValue.get()) RenderUtils.newDrawRect(posX + (endPosX - posX) / 2F - (mc.fontRendererObj.getStringWidth(entName) / 2F + 2F) * fontScaleValue.get(), posY - 1F - (mc.fontRendererObj.FONT_HEIGHT + 2F) * fontScaleValue.get(), posX + (endPosX - posX) / 2F + (mc.fontRendererObj.getStringWidth(entName) / 2F + 2F) * fontScaleValue.get(), posY - 1F + 2F * fontScaleValue.get(), 0xA0000000); drawScaledCenteredString(entName, posX + (endPosX - posX) / 2F, posY - 1F - mc.fontRendererObj.FONT_HEIGHT * fontScaleValue.get(), fontScaleValue.get(), -1); } if (itemTagsValue.get()) { if (living) { entityLivingBase = (EntityLivingBase) entity; if (entityLivingBase.getHeldItem() != null && entityLivingBase.getHeldItem().getItem() != null) { String itemName = entityLivingBase.getHeldItem().getDisplayName(); if (tagsBGValue.get()) RenderUtils.newDrawRect(posX + (endPosX - posX) / 2F - (mc.fontRendererObj.getStringWidth(itemName) / 2F + 2F) * fontScaleValue.get(), endPosY + 1F - 2F * fontScaleValue.get(), posX + (endPosX - posX) / 2F + (mc.fontRendererObj.getStringWidth(itemName) / 2F + 2F) * fontScaleValue.get(), endPosY + 1F + (mc.fontRendererObj.FONT_HEIGHT + 2F) * fontScaleValue.get(), 0xA0000000); drawScaledCenteredString(itemName, posX + (endPosX - posX) / 2F, endPosY + 1F, fontScaleValue.get(), -1); } } else if (entity instanceof EntityItem) { String entName = ((EntityItem) entity).getEntityItem().getDisplayName(); if (tagsBGValue.get()) RenderUtils.newDrawRect(posX + (endPosX - posX) / 2F - (mc.fontRendererObj.getStringWidth(entName) / 2F + 2F) * fontScaleValue.get(), endPosY + 1F - 2F * fontScaleValue.get(), posX + (endPosX - posX) / 2F + (mc.fontRendererObj.getStringWidth(entName) / 2F + 2F) * fontScaleValue.get(), endPosY + 1F + (mc.fontRendererObj.FONT_HEIGHT + 2F) * fontScaleValue.get(), 0xA0000000); drawScaledCenteredString(entName, posX + (endPosX - posX) / 2F, endPosY + 1F, fontScaleValue.get(), -1); } } } } } GL11.glPopMatrix(); GlStateManager.enableBlend(); GlStateManager.resetColor(); entityRenderer.setupOverlayRendering(); } private boolean isHovering(double minX, double maxX, double minY, double maxY, ScaledResolution sc) { return sc.getScaledWidth() / 2 >= minX && sc.getScaledWidth() / 2 < maxX && sc.getScaledHeight() / 2 >= minY && sc.getScaledHeight() / 2 < maxY; } private void drawScaledString(String text, double x, double y, double scale, int color) { GlStateManager.pushMatrix(); GlStateManager.translate(x, y, x); GlStateManager.scale(scale, scale, scale); mc.fontRendererObj.drawStringWithShadow(text, 0, 0, color); GlStateManager.popMatrix(); } private void drawScaledCenteredString(String text, double x, double y, double scale, int color) { drawScaledString(text, x - mc.fontRendererObj.getStringWidth(text) / 2F * scale, y, scale, color); } private void renderItemStack(ItemStack stack, double x, double y) { GlStateManager.pushMatrix(); GlStateManager.translate(x, y, x); GlStateManager.scale(0.5D, 0.5D, 0.5D); GlStateManager.enableRescaleNormal(); GlStateManager.enableBlend(); GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0); RenderHelper.enableGUIStandardItemLighting(); mc.getRenderItem().renderItemAndEffectIntoGUI(stack, 0, 0); mc.getRenderItem().renderItemOverlays(mc.fontRendererObj, stack, 0, 0); RenderHelper.disableStandardItemLighting(); GlStateManager.disableRescaleNormal(); GlStateManager.disableBlend(); GlStateManager.popMatrix(); } private void collectEntities() { collectedEntities.clear(); List playerEntities = mc.theWorld.loadedEntityList; int i = 0; for(int playerEntitiesSize = playerEntities.size(); i < playerEntitiesSize; ++i) { Entity entity = (Entity)playerEntities.get(i); if (EntityUtils.isSelected(entity, false) || (localPlayer.get() && entity instanceof EntityPlayerSP && mc.gameSettings.thirdPersonView != 0) || (droppedItems.get() && entity instanceof EntityItem)) { collectedEntities.add(entity); } } } private Vector3d project2D(int scaleFactor, double x, double y, double z) { GL11.glGetFloat(2982, this.modelview); GL11.glGetFloat(2983, this.projection); GL11.glGetInteger(2978, this.viewport); return GLU.gluProject((float)x, (float)y, (float)z, this.modelview, this.projection, this.viewport, this.vector) ? new Vector3d((double)(this.vector.get(0) / (float)scaleFactor), (double)(((float)Display.getHeight() - this.vector.get(1)) / (float)scaleFactor), (double)this.vector.get(2)) : null; } }
28,193
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
StorageESP.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/StorageESP.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; import co.uk.hexeption.utils.OutlineUtils; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render2DEvent; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.features.module.modules.world.ChestAura; import net.ccbluex.liquidbounce.utils.ClientUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.render.shader.FramebufferShader; import net.ccbluex.liquidbounce.utils.render.shader.shaders.GlowShader; import net.ccbluex.liquidbounce.utils.render.shader.shaders.OutlineShader; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityMinecartChest; import net.minecraft.tileentity.*; import java.awt.*; import static org.lwjgl.opengl.GL11.*; @ModuleInfo(name = "StorageESP", spacedName = "Storage ESP", description = "Allows you to see chests, dispensers, etc. through walls.", category = ModuleCategory.RENDER) public class StorageESP extends Module { private final ListValue modeValue = new ListValue("Mode", new String[]{"Box", "OtherBox", "Outline", "ShaderOutline", "ShaderGlow", "2D", "WireFrame"}, "Outline"); private final BoolValue chestValue = new BoolValue("Chest", true); private final BoolValue enderChestValue = new BoolValue("EnderChest", true); private final BoolValue furnaceValue = new BoolValue("Furnace", true); private final BoolValue dispenserValue = new BoolValue("Dispenser", true); private final BoolValue hopperValue = new BoolValue("Hopper", true); @EventTarget public void onRender3D(Render3DEvent event) { try { final String mode = modeValue.get(); if (mode.equalsIgnoreCase("outline")) { ClientUtils.disableFastRender(); OutlineUtils.checkSetupFBO(); } float gamma = mc.gameSettings.gammaSetting; mc.gameSettings.gammaSetting = 100000.0F; for (final TileEntity tileEntity : mc.theWorld.loadedTileEntityList) { Color color = null; if (chestValue.get() && tileEntity instanceof TileEntityChest && !ChestAura.INSTANCE.getClickedBlocks().contains(tileEntity.getPos())) color = new Color(0, 66, 255); if (enderChestValue.get() && tileEntity instanceof TileEntityEnderChest && !ChestAura.INSTANCE.getClickedBlocks().contains(tileEntity.getPos())) color = Color.MAGENTA; if (furnaceValue.get() && tileEntity instanceof TileEntityFurnace) color = Color.BLACK; if (dispenserValue.get() && tileEntity instanceof TileEntityDispenser) color = Color.BLACK; if (hopperValue.get() && tileEntity instanceof TileEntityHopper) color = Color.GRAY; if (color == null) continue; if (!(tileEntity instanceof TileEntityChest || tileEntity instanceof TileEntityEnderChest)) { RenderUtils.drawBlockBox(tileEntity.getPos(), color, !mode.equalsIgnoreCase("otherbox")); continue; } switch (mode.toLowerCase()) { case "otherbox": case "box": RenderUtils.drawBlockBox(tileEntity.getPos(), color, !mode.equalsIgnoreCase("otherbox")); break; case "2d": RenderUtils.draw2D(tileEntity.getPos(), color.getRGB(), Color.BLACK.getRGB()); break; case "outline": RenderUtils.glColor(color); OutlineUtils.renderOne(3F); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); OutlineUtils.renderTwo(); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); OutlineUtils.renderThree(); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); OutlineUtils.renderFour(color); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); OutlineUtils.renderFive(); OutlineUtils.setColor(Color.WHITE); break; case "wireframe": glPushMatrix(); glPushAttrib(GL_ALL_ATTRIB_BITS); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glDisable(GL_TEXTURE_2D); glDisable(GL_LIGHTING); glDisable(GL_DEPTH_TEST); glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); RenderUtils.glColor(color); glLineWidth(1.5F); TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.getPartialTicks(), -1); glPopAttrib(); glPopMatrix(); break; } } for (final Entity entity : mc.theWorld.loadedEntityList) if (entity instanceof EntityMinecartChest) { switch (mode.toLowerCase()) { case "otherbox": case "box": RenderUtils.drawEntityBox(entity, new Color(0, 66, 255), !mode.equalsIgnoreCase("otherbox")); break; case "2d": RenderUtils.draw2D(entity.getPosition(), new Color(0, 66, 255).getRGB(), Color.BLACK.getRGB()); break; case "outline": { final boolean entityShadow = mc.gameSettings.entityShadows; mc.gameSettings.entityShadows = false; RenderUtils.glColor(new Color(0, 66, 255)); OutlineUtils.renderOne(3F); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); OutlineUtils.renderTwo(); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); OutlineUtils.renderThree(); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); OutlineUtils.renderFour(new Color(0, 66, 255)); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); OutlineUtils.renderFive(); OutlineUtils.setColor(Color.WHITE); mc.gameSettings.entityShadows = entityShadow; break; } case "wireframe": { final boolean entityShadow = mc.gameSettings.entityShadows; mc.gameSettings.entityShadows = false; glPushMatrix(); glPushAttrib(GL_ALL_ATTRIB_BITS); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glDisable(GL_TEXTURE_2D); glDisable(GL_LIGHTING); glDisable(GL_DEPTH_TEST); glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); RenderUtils.glColor(new Color(0, 66, 255)); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); RenderUtils.glColor(new Color(0, 66, 255)); glLineWidth(1.5F); mc.getRenderManager().renderEntityStatic(entity, mc.timer.renderPartialTicks, true); glPopAttrib(); glPopMatrix(); mc.gameSettings.entityShadows = entityShadow; break; } } } RenderUtils.glColor(new Color(255, 255, 255, 255)); mc.gameSettings.gammaSetting = gamma; } catch (Exception ignored) { } } @EventTarget public void onRender2D(final Render2DEvent event) { final String mode = modeValue.get(); final FramebufferShader shader = mode.equalsIgnoreCase("shaderoutline") ? OutlineShader.OUTLINE_SHADER : mode.equalsIgnoreCase("shaderglow") ? GlowShader.GLOW_SHADER : null; if (shader == null) return; shader.startDraw(event.getPartialTicks()); try { final RenderManager renderManager = mc.getRenderManager(); for (final TileEntity entity : mc.theWorld.loadedTileEntityList) { if (!(entity instanceof TileEntityChest)) continue; if (ChestAura.INSTANCE.getClickedBlocks().contains(entity.getPos())) continue; TileEntityRendererDispatcher.instance.renderTileEntityAt( entity, entity.getPos().getX() - renderManager.renderPosX, entity.getPos().getY() - renderManager.renderPosY, entity.getPos().getZ() - renderManager.renderPosZ, event.getPartialTicks() ); } for (final Entity entity : mc.theWorld.loadedEntityList) { if (!(entity instanceof EntityMinecartChest)) continue; renderManager.renderEntityStatic(entity, event.getPartialTicks(), true); } } catch (final Exception ex) { ClientUtils.getLogger().error("An error occurred while rendering all storages for shader esp", ex); } shader.stopDraw(new Color(0, 66, 255), mode.equalsIgnoreCase("shaderglow") ? 2.5F : 1.5F, 1F); } }
11,349
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
BlockESP.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/BlockESP.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.block.BlockUtils; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.timer.MSTimer; import net.ccbluex.liquidbounce.value.BlockValue; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import java.awt.*; import java.util.ArrayList; import java.util.List; @ModuleInfo(name = "BlockESP", spacedName = "Block ESP", description = "Allows you to see a selected block through walls.", category = ModuleCategory.RENDER) public class BlockESP extends Module { private final ListValue modeValue = new ListValue("Mode", new String[] {"Box", "2D"}, "Box"); private final BlockValue blockValue = new BlockValue("Block", 168); private final IntegerValue radiusValue = new IntegerValue("Radius", 40, 5, 120); private final IntegerValue colorRedValue = new IntegerValue("R", 255, 0, 255); private final IntegerValue colorGreenValue = new IntegerValue("G", 179, 0, 255); private final IntegerValue colorBlueValue = new IntegerValue("B", 72, 0, 255); private final BoolValue colorRainbow = new BoolValue("Rainbow", false); private final MSTimer searchTimer = new MSTimer(); private final List<BlockPos> posList = new ArrayList<>(); private Thread thread; @EventTarget public void onUpdate(UpdateEvent event) { if(searchTimer.hasTimePassed(1000L) && (thread == null || !thread.isAlive())) { final int radius = radiusValue.get(); final Block selectedBlock = Block.getBlockById(blockValue.get()); if(selectedBlock == null || selectedBlock == Blocks.air) return; thread = new Thread(() -> { final List<BlockPos> blockList = new ArrayList<>(); for(int x = -radius; x < radius; x++) { for(int y = radius; y > -radius; y--) { for(int z = -radius; z < radius; z++) { final int xPos = ((int) mc.thePlayer.posX + x); final int yPos = ((int) mc.thePlayer.posY + y); final int zPos = ((int) mc.thePlayer.posZ + z); final BlockPos blockPos = new BlockPos(xPos, yPos, zPos); final Block block = BlockUtils.getBlock(blockPos); if(block == selectedBlock) blockList.add(blockPos); } } } searchTimer.reset(); synchronized(posList) { posList.clear(); posList.addAll(blockList); } }, "BlockESP-BlockFinder"); thread.start(); } } @EventTarget public void onRender3D(Render3DEvent event) { synchronized(posList) { final Color color = colorRainbow.get() ? ColorUtils.rainbow() : new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); for(final BlockPos blockPos : posList) { switch(modeValue.get().toLowerCase()) { case "box": RenderUtils.drawBlockBox(blockPos, color, true); break; case "2d": RenderUtils.draw2D(blockPos, color.getRGB(), Color.BLACK.getRGB()); break; } } } } @Override public String getTag() { return BlockUtils.getBlockName(blockValue.get()); } }
4,428
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
ItemESP.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/ItemESP.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render2DEvent; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.ClientUtils; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.render.shader.shaders.OutlineShader; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.projectile.EntityArrow; import java.awt.*; @ModuleInfo(name = "ItemESP", spacedName = "Item ESP", description = "Allows you to see items through walls.", category = ModuleCategory.RENDER) public class ItemESP extends Module { private final ListValue modeValue = new ListValue("Mode", new String[]{"Box", "ShaderOutline"}, "Box"); private final IntegerValue colorRedValue = new IntegerValue("R", 0, 0, 255); private final IntegerValue colorGreenValue = new IntegerValue("G", 255, 0, 255); private final IntegerValue colorBlueValue = new IntegerValue("B", 0, 0, 255); private final BoolValue colorRainbow = new BoolValue("Rainbow", true); @EventTarget public void onRender3D(final Render3DEvent event) { if (modeValue.get().equalsIgnoreCase("Box")) { final Color color = colorRainbow.get() ? ColorUtils.rainbow() : new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()); for (final Entity entity : mc.theWorld.loadedEntityList) { if (!(entity instanceof EntityItem || entity instanceof EntityArrow)) continue; RenderUtils.drawEntityBox(entity, color, true); } } } @EventTarget public void onRender2D(final Render2DEvent event) { if (modeValue.get().equalsIgnoreCase("ShaderOutline")) { OutlineShader.OUTLINE_SHADER.startDraw(event.getPartialTicks()); try { for (final Entity entity : mc.theWorld.loadedEntityList) { if (!(entity instanceof EntityItem || entity instanceof EntityArrow)) continue; mc.getRenderManager().renderEntityStatic(entity, event.getPartialTicks(), true); } } catch (final Exception ex) { ClientUtils.getLogger().error("An error occurred while rendering all item entities for shader esp", ex); } OutlineShader.OUTLINE_SHADER.stopDraw(colorRainbow.get() ? ColorUtils.rainbow() : new Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get()), 1F, 1F); } } }
3,247
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
EnchantEffect.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/EnchantEffect.java
/* * LiquidBounce+ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/WYSI-Foundation/LiquidBouncePlus/ * * This code belongs to WYSI-Foundation. Please give credits when using this in your repository. */ package net.ccbluex.liquidbounce.features.module.modules.render; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.Render2DEvent; 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.value.IntegerValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import java.awt.*; import java.util.Random; @ModuleInfo(name = "EnchantEffect", spacedName = "Enchant Effect", description = "qwq", category = ModuleCategory.RENDER) public class EnchantEffect extends Module { public IntegerValue redValue = new IntegerValue("Red", 255, 0, 255); public IntegerValue greenValue = new IntegerValue("Green", 0, 0, 255); public IntegerValue blueValue = new IntegerValue("Blue", 0, 0, 255); public ListValue modeValue = new ListValue("Mode", new String[]{"Custom","Rainbow","Sky","Mixer"}, "Custom"); public IntegerValue rainbowSpeedValue = new IntegerValue("Seconds", 1, 1, 6); public IntegerValue rainbowDelayValue = new IntegerValue("Delay", 5, 0, 10); public FloatValue rainbowSatValue = new FloatValue("Saturation", 1.0f, 0.0f, 1.0f); public FloatValue rainbowBrgValue = new FloatValue("Brightness", 1.0f, 0.0f, 1.0f); }
1,729
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
HighJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/HighJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.JumpEvent; import net.ccbluex.liquidbounce.event.MoveEvent; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.BlockPane; import net.minecraft.block.Block; import net.minecraft.util.BlockPos; @ModuleInfo(name = "HighJump", spacedName = "High Jump", description = "Allows you to jump higher.", category = ModuleCategory.MOVEMENT) public class HighJump extends Module { private final FloatValue heightValue = new FloatValue("Height", 2F, 1.1F, 10F, "m"); private final ListValue modeValue = new ListValue("Mode", new String[] {"Vanilla", "Damage", "AACv3", "DAC" ,"Mineplex", "MatrixWater", "Hycraft"}, "Vanilla"); private final BoolValue glassValue = new BoolValue("OnlyGlassPane", false); private final BoolValue setPos = new BoolValue("Hycraft-UseSetPosition", true); public int tick; public void onEnable() { if("hycraft".equals(modeValue.get().toLowerCase())) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 5, mc.thePlayer.posZ); } } @EventTarget public void onUpdate(final UpdateEvent event) { if(glassValue.get() && !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)) instanceof BlockPane)) return; switch(modeValue.get().toLowerCase()) { case "hycraft": // $$$ Me and the bois damage highjump $$$ if(mc.thePlayer.hurtTime > 1 && mc.thePlayer.hurtTime < 6) if(setPos.get()) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + heightValue.get(), mc.thePlayer.posZ); } else { mc.thePlayer.motionY = heightValue.get(); } break; case "damage": if (mc.thePlayer.hurtTime > 0 && mc.thePlayer.onGround) mc.thePlayer.motionY += 0.42F * heightValue.get(); break; case "aacv3": if (!mc.thePlayer.onGround) mc.thePlayer.motionY += 0.059D; break; case "dac": if (!mc.thePlayer.onGround) mc.thePlayer.motionY += 0.049999; break; case "mineplex": if (!mc.thePlayer.onGround) MovementUtils.strafe(0.35F); break; case "matrixwater": if (mc.thePlayer.isInWater()) { if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(9)) { mc.thePlayer.motionY = 0.18; } else if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(9)) { mc.thePlayer.motionY = heightValue.get(); mc.thePlayer.onGround = true; } } break; } } @EventTarget public void onMove(final MoveEvent event) { if(glassValue.get() && !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)) instanceof BlockPane)) return; if(!mc.thePlayer.onGround) { if ("mineplex".equals(modeValue.get().toLowerCase())) { mc.thePlayer.motionY += mc.thePlayer.fallDistance == 0 ? 0.0499D : 0.05D; } } } @EventTarget public void onJump(final JumpEvent event) { if(glassValue.get() && !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)) instanceof BlockPane)) return; switch(modeValue.get().toLowerCase()) { case "vanilla": event.setMotion(event.getMotion() * heightValue.get()); break; case "mineplex": event.setMotion(0.47F); break; } } @Override public String getTag() { return modeValue.get(); } }
4,861
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
WaterSpeed.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/WaterSpeed.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; 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.block.BlockUtils; import net.ccbluex.liquidbounce.value.FloatValue; import net.minecraft.block.BlockLiquid; @ModuleInfo(name = "WaterSpeed", spacedName = "Water Speed", description = "Allows you to swim faster.", category = ModuleCategory.MOVEMENT) public class WaterSpeed extends Module { private final FloatValue speedValue = new FloatValue("Speed", 1.2F, 1.1F, 1.5F); @EventTarget public void onUpdate(UpdateEvent event) { if(mc.thePlayer.isInWater() && BlockUtils.getBlock(mc.thePlayer.getPosition()) instanceof BlockLiquid) { final float speed = speedValue.get(); mc.thePlayer.motionX *= speed; mc.thePlayer.motionZ *= speed; } } }
1,286
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
LiquidWalk.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/LiquidWalk.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.*; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.Block; import net.minecraft.block.BlockLiquid; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.network.play.client.C03PacketPlayer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import org.lwjgl.input.Keyboard; @ModuleInfo(name = "LiquidWalk", spacedName = "Liquid Walk", description = "Allows you to walk on water.", category = ModuleCategory.MOVEMENT, keyBind = Keyboard.KEY_J) public class LiquidWalk extends Module { public final ListValue modeValue = new ListValue("Mode", new String[] {"Vanilla", "NCP", "AAC", "AAC3.3.11", "AACFly", "AAC4.2.1", "Horizon1.4.6", "Twillight", "Matrix", "Dolphin", "Swim"}, "NCP"); private final BoolValue noJumpValue = new BoolValue("NoJump", false); private final FloatValue aacFlyValue = new FloatValue("AACFlyMotion", 0.5F, 0.1F, 1F); private final FloatValue matrixSpeedValue = new FloatValue("MatrixSpeed", 1.15F, 0.1F, 1.15F, () -> modeValue.get().equalsIgnoreCase("matrix")); private boolean nextTick; @EventTarget public void onUpdate(final UpdateEvent event) { if(mc.thePlayer == null || mc.thePlayer.isSneaking()) return; switch(modeValue.get().toLowerCase()) { case "ncp": case "vanilla": if(BlockUtils.collideBlock(mc.thePlayer.getEntityBoundingBox(), block -> block instanceof BlockLiquid) && mc.thePlayer.isInsideOfMaterial(Material.air) && !mc.thePlayer.isSneaking()) mc.thePlayer.motionY = 0.08D; break; case "aac": BlockPos blockPos = mc.thePlayer.getPosition().down(); if(!mc.thePlayer.onGround && BlockUtils.getBlock(blockPos) == Blocks.water || mc.thePlayer.isInWater()) { if(!mc.thePlayer.isSprinting()) { mc.thePlayer.motionX *= 0.99999; mc.thePlayer.motionY *= 0.0; mc.thePlayer.motionZ *= 0.99999; if(mc.thePlayer.isCollidedHorizontally) mc.thePlayer.motionY = (int) (mc.thePlayer.posY - (int) (mc.thePlayer.posY - 1)) / 8F; }else{ mc.thePlayer.motionX *= 0.99999; mc.thePlayer.motionY *= 0.0; mc.thePlayer.motionZ *= 0.99999; if(mc.thePlayer.isCollidedHorizontally) mc.thePlayer.motionY = (int) (mc.thePlayer.posY - (int) (mc.thePlayer.posY - 1)) / 8F; } if(mc.thePlayer.fallDistance >= 4) mc.thePlayer.motionY = -0.004; else if(mc.thePlayer.isInWater()) mc.thePlayer.motionY = 0.09; } if(mc.thePlayer.hurtTime != 0) mc.thePlayer.onGround = false; break; //just rename. cuz this jesus patched in spartan case "matrix": if(mc.thePlayer.isInWater()) { mc.gameSettings.keyBindJump.pressed = false; if(mc.thePlayer.isCollidedHorizontally) { mc.thePlayer.motionY = 0.09; return; } final Block block = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1, mc.thePlayer.posZ)); final Block blockUp = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1.1D, mc.thePlayer.posZ)); if(blockUp instanceof BlockLiquid) { mc.thePlayer.motionY = 0.1; }else if(block instanceof BlockLiquid) { mc.thePlayer.motionY = 0; } mc.thePlayer.motionX *= matrixSpeedValue.get(); mc.thePlayer.motionZ *= matrixSpeedValue.get(); } break; case "aac3.3.11": if(mc.thePlayer.isInWater()) { mc.thePlayer.motionX *= 1.17D; mc.thePlayer.motionZ *= 1.17D; if(mc.thePlayer.isCollidedHorizontally) mc.thePlayer.motionY = 0.24; else if(mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1.0D, mc.thePlayer.posZ)).getBlock() != Blocks.air) mc.thePlayer.motionY += 0.04D; } break; case "dolphin": if(mc.thePlayer.isInWater()) mc.thePlayer.motionY += 0.03999999910593033; break; // jumpMovementFactor seem doesn't flag in old aac4 some modules. case "aac4.2.1": //i didn't fix if player collided wall(trigger aac flag) blockPos = mc.thePlayer.getPosition().down(); if(!mc.thePlayer.onGround && BlockUtils.getBlock(blockPos) == Blocks.water || mc.thePlayer.isInWater()) { mc.thePlayer.motionY *= 0.0; //decrease value due to compatible 4 direction. forward is 0.089F mc.thePlayer.jumpMovementFactor = 0.08F; if(mc.thePlayer.fallDistance > 0) return; else if(mc.thePlayer.isInWater()) mc.gameSettings.keyBindJump.pressed = true; } break; //actually old ver horizon has weak some checks case "horizon1.4.6": if(mc.thePlayer.isInWater()){ MovementUtils.strafe(); mc.gameSettings.keyBindJump.pressed = true; if(MovementUtils.isMoving()) if(!mc.thePlayer.onGround){ mc.thePlayer.motionY += 0.13D; } } break; //idk case "twillight": if(mc.thePlayer.isInWater()){ mc.thePlayer.motionX *= 1.04; mc.thePlayer.motionZ *= 1.04; MovementUtils.strafe(); } break; } } @EventTarget public void onMove(final MoveEvent event) { if ("aacfly".equals(modeValue.get().toLowerCase()) && mc.thePlayer.isInWater()) { event.setY(aacFlyValue.get()); mc.thePlayer.motionY = aacFlyValue.get(); } if ("twillight".equals(modeValue.get().toLowerCase()) && mc.thePlayer.isInWater()) { event.setY(0.01); mc.thePlayer.motionY = 0.01; } } @EventTarget public void onBlockBB(final BlockBBEvent event) { if(mc.thePlayer == null || mc.thePlayer.getEntityBoundingBox() == null) return; if(event.getBlock() instanceof BlockLiquid && !BlockUtils.collideBlock(mc.thePlayer.getEntityBoundingBox(), block -> block instanceof BlockLiquid) && !mc.thePlayer.isSneaking()) { switch(modeValue.get().toLowerCase()) { case "ncp": case "vanilla": event.setBoundingBox(AxisAlignedBB.fromBounds(event.getX(), event.getY(), event.getZ(), event.getX() + 1, event.getY() + 1, event.getZ() + 1)); break; } } } @EventTarget public void onPacket(final PacketEvent event) { if(mc.thePlayer == null || !modeValue.get().equalsIgnoreCase("NCP")) return; if(event.getPacket() instanceof C03PacketPlayer) { final C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket(); if(BlockUtils.collideBlock(new AxisAlignedBB(mc.thePlayer.getEntityBoundingBox().maxX, mc.thePlayer.getEntityBoundingBox().maxY, mc.thePlayer.getEntityBoundingBox().maxZ, mc.thePlayer.getEntityBoundingBox().minX, mc.thePlayer.getEntityBoundingBox().minY - 0.01D, mc.thePlayer.getEntityBoundingBox().minZ), block -> block instanceof BlockLiquid)) { nextTick = !nextTick; if(nextTick) packetPlayer.y -= 0.001D; } } } @EventTarget public void onJump(final JumpEvent event) { if (mc.thePlayer == null) return; final Block block = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 0.01, mc.thePlayer.posZ)); if (noJumpValue.get() && block instanceof BlockLiquid) event.cancelEvent(); } @Override public String getTag() { return modeValue.get(); } }
9,453
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Fly.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/Fly.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; 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.ui.client.hud.element.elements.Notification; import net.ccbluex.liquidbounce.utils.ClientUtils; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.Rotation; import net.ccbluex.liquidbounce.utils.RotationUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.misc.RandomUtils; import net.ccbluex.liquidbounce.utils.PacketUtils; import net.ccbluex.liquidbounce.utils.timer.MSTimer; import net.ccbluex.liquidbounce.utils.timer.TickTimer; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.ui.client.hud.element.elements.Notification; import net.minecraft.block.BlockAir; import net.minecraft.block.BlockSlime; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemEnderPearl; import net.minecraft.item.ItemStack; import net.minecraft.network.Packet; import net.minecraft.network.play.client.*; import net.minecraft.network.play.server.S08PacketPlayerPosLook; import net.minecraft.potion.Potion; import net.minecraft.util.*; import org.lwjgl.input.Keyboard; import java.awt.*; import java.util.ArrayList; import java.math.BigDecimal; import java.math.RoundingMode; @ModuleInfo(name = "Fly", description = "Allows you to fly in survival mode.", category = ModuleCategory.MOVEMENT, keyBind = Keyboard.KEY_F) public class Fly extends Module { public final ListValue modeValue = new ListValue("Mode", new String[] { // Motion-based fly modes, or vanilla one. "Motion", "Creative", "Damage", "Pearl", // Specified fly modes for NCP. "NCP", "OldNCP", // Old AAC fly modes. "AAC1.9.10", "AAC3.0.5", "AAC3.1.6-Gomme", "AAC3.3.12", "AAC3.3.12-Glide", "AAC3.3.13", // New AAC Fly using exploit. "AAC5-Vanilla", // For other servers, mostly outdated. "CubeCraft", "Rewinside", "TeleportRewinside", "FunCraft", "Mineplex", "NeruxVace", "Minesucht", // Specified fly modes for Verus. "Verus", "VerusLowHop", // Old Spartan fly modes. "Spartan", "Spartan2", "BugSpartan", // Old Hypixel modes. "Hypixel", "BoostHypixel", "FreeHypixel", // Other anticheats' fly modes. "MineSecure", "HawkEye", "HAC2", "WatchCat", "Watchdog", // Other exploit-based stuffs. "Jetpack", "KeepAlive", "Flag", "Clip", "Jump", "Derp", "Collide" }, "Motion"); private final FloatValue vanillaSpeedValue = new FloatValue("Speed", 2F, 0F, 5F, () -> { return (modeValue.get().equalsIgnoreCase("motion") || modeValue.get().equalsIgnoreCase("damage") || modeValue.get().equalsIgnoreCase("pearl") || modeValue.get().equalsIgnoreCase("aac5-vanilla") || modeValue.get().equalsIgnoreCase("bugspartan") || modeValue.get().equalsIgnoreCase("keepalive") || modeValue.get().equalsIgnoreCase("derp")); }); private final FloatValue vanillaVSpeedValue = new FloatValue("V-Speed", 2F, 0F, 5F, () -> modeValue.get().equalsIgnoreCase("motion")); private final FloatValue vanillaMotionYValue = new FloatValue("Y-Motion", 0F, -1F, 1F, () -> modeValue.get().equalsIgnoreCase("motion")); private final BoolValue vanillaKickBypassValue = new BoolValue("KickBypass", false, () -> modeValue.get().equalsIgnoreCase("motion") || modeValue.get().equalsIgnoreCase("creative")); private final BoolValue groundSpoofValue = new BoolValue("GroundSpoof", false, () -> modeValue.get().equalsIgnoreCase("motion") || modeValue.get().equalsIgnoreCase("creative")); private final FloatValue ncpMotionValue = new FloatValue("NCPMotion", 0F, 0F, 1F, () -> modeValue.get().equalsIgnoreCase("ncp")); // Verus private final ListValue verusDmgModeValue = new ListValue("Verus-DamageMode", new String[]{"None", "Instant", "InstantC06", "Jump"}, "None", () -> modeValue.get().equalsIgnoreCase("verus")); private final ListValue verusBoostModeValue = new ListValue("Verus-BoostMode", new String[]{"Static", "Gradual"}, "Gradual", () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none")); private final BoolValue verusReDamageValue = new BoolValue("Verus-ReDamage", true, () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none") && !verusDmgModeValue.get().equalsIgnoreCase("jump")); private final IntegerValue verusReDmgTickValue = new IntegerValue("Verus-ReDamage-Ticks", 20, 0, 300, () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none") && !verusDmgModeValue.get().equalsIgnoreCase("jump") && verusReDamageValue.get()); private final BoolValue verusVisualValue = new BoolValue("Verus-VisualPos", false, () -> modeValue.get().equalsIgnoreCase("verus")); private final FloatValue verusVisualHeightValue = new FloatValue("Verus-VisualHeight", 0.42F, 0F, 1F, () -> modeValue.get().equalsIgnoreCase("verus") && verusVisualValue.get()); private final FloatValue verusSpeedValue = new FloatValue("Verus-Speed", 5F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none")); private final FloatValue verusTimerValue = new FloatValue("Verus-Timer", 1F, 0.1F, 10F, () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none")); private final IntegerValue verusDmgTickValue = new IntegerValue("Verus-Ticks", 20, 0, 300, () -> modeValue.get().equalsIgnoreCase("verus") && !verusDmgModeValue.get().equalsIgnoreCase("none")); private final BoolValue verusSpoofGround = new BoolValue("Verus-SpoofGround", false, () -> modeValue.get().equalsIgnoreCase("verus")); // AAC private final BoolValue aac5NoClipValue = new BoolValue("AAC5-NoClip", true, () -> modeValue.get().equalsIgnoreCase("aac5-vanilla")); private final BoolValue aac5NofallValue = new BoolValue("AAC5-NoFall", true, () -> modeValue.get().equalsIgnoreCase("aac5-vanilla")); private final BoolValue aac5UseC04Packet = new BoolValue("AAC5-UseC04", true, () -> modeValue.get().equalsIgnoreCase("aac5-vanilla")); private final ListValue aac5Packet = new ListValue("AAC5-Packet", new String[]{"Original", "Rise", "Other"}, "Original", () -> modeValue.get().equalsIgnoreCase("aac5-vanilla")); // Original is from UnlegitMC/FDPClient. private final IntegerValue aac5PursePacketsValue = new IntegerValue("AAC5-Purse", 7, 3, 20, () -> modeValue.get().equalsIgnoreCase("aac5-vanilla")); private final IntegerValue clipDelay = new IntegerValue("Clip-DelayTick", 25, 1, 50, () -> modeValue.get().equalsIgnoreCase("clip")); private final FloatValue clipH = new FloatValue("Clip-Horizontal", 7.9F, 0, 10, () -> modeValue.get().equalsIgnoreCase("clip")); private final FloatValue clipV = new FloatValue("Clip-Vertical", 1.75F, -10, 10, () -> modeValue.get().equalsIgnoreCase("clip")); private final FloatValue clipMotionY = new FloatValue("Clip-MotionY", 0F, -2, 2, () -> modeValue.get().equalsIgnoreCase("clip")); private final FloatValue clipTimer = new FloatValue("Clip-Timer", 1F, 0.08F, 10F, () -> modeValue.get().equalsIgnoreCase("clip")); private final BoolValue clipGroundSpoof = new BoolValue("Clip-GroundSpoof", true, () -> modeValue.get().equalsIgnoreCase("clip")); private final BoolValue clipCollisionCheck = new BoolValue("Clip-CollisionCheck", true, () -> modeValue.get().equalsIgnoreCase("clip")); private final BoolValue clipNoMove = new BoolValue("Clip-NoMove", true, () -> modeValue.get().equalsIgnoreCase("clip")); // Pearl private final ListValue pearlActivateCheck = new ListValue("PearlActiveCheck", new String[] { "Teleport", "Damage" }, "Teleport" , () -> modeValue.get().equalsIgnoreCase("pearl")); // AAC private final FloatValue aacSpeedValue = new FloatValue("AAC1.9.10-Speed", 0.3F, 0F, 1F, () -> modeValue.get().equalsIgnoreCase("aac1.9.10")); private final BoolValue aacFast = new BoolValue("AAC3.0.5-Fast", true, () -> modeValue.get().equalsIgnoreCase("aac3.0.5")); private final FloatValue aacMotion = new FloatValue("AAC3.3.12-Motion", 10F, 0.1F, 10F, () -> modeValue.get().equalsIgnoreCase("aac3.3.12")); private final FloatValue aacMotion2 = new FloatValue("AAC3.3.13-Motion", 10F, 0.1F, 10F, () -> modeValue.get().equalsIgnoreCase("aac3.3.13")); private final ListValue hypixelBoostMode = new ListValue("BoostHypixel-Mode", new String[] { "Default", "MorePackets", "NCP" }, "Default", () -> modeValue.get().equalsIgnoreCase("boosthypixel")); private final BoolValue hypixelVisualY = new BoolValue("BoostHypixel-VisualY", true, () -> modeValue.get().equalsIgnoreCase("boosthypixel")); private final BoolValue hypixelC04 = new BoolValue("BoostHypixel-MoreC04s", false, () -> modeValue.get().equalsIgnoreCase("boosthypixel")); // Hypixel private final BoolValue hypixelBoost = new BoolValue("Hypixel-Boost", true, () -> modeValue.get().equalsIgnoreCase("hypixel")); private final IntegerValue hypixelBoostDelay = new IntegerValue("Hypixel-BoostDelay", 1200, 0, 2000, () -> modeValue.get().equalsIgnoreCase("hypixel")); private final FloatValue hypixelBoostTimer = new FloatValue("Hypixel-BoostTimer", 1F, 0F, 5F, () -> modeValue.get().equalsIgnoreCase("hypixel")); private final FloatValue mineplexSpeedValue = new FloatValue("MineplexSpeed", 1F, 0.5F, 10F, () -> modeValue.get().equalsIgnoreCase("mineplex")); private final IntegerValue neruxVaceTicks = new IntegerValue("NeruxVace-Ticks", 6, 0, 20, () -> modeValue.get().equalsIgnoreCase("neruxvace")); // General private final BoolValue resetMotionValue = new BoolValue("ResetMotion", true); // Visuals private final BoolValue fakeDmgValue = new BoolValue("FakeDamage", true); private final BoolValue bobbingValue = new BoolValue("Bobbing", true); private final FloatValue bobbingAmountValue = new FloatValue("BobbingAmount", 0.2F, 0F, 1F, () -> bobbingValue.get()); private final BoolValue markValue = new BoolValue("Mark", true); private BlockPos lastPosition; private double startY; private final MSTimer flyTimer = new MSTimer(); private final MSTimer groundTimer = new MSTimer(); private final MSTimer boostTimer = new MSTimer(); private final MSTimer wdTimer = new MSTimer(); private final MSTimer mineSecureVClipTimer = new MSTimer(); private final MSTimer mineplexTimer = new MSTimer(); private final TickTimer spartanTimer = new TickTimer(); private final TickTimer verusTimer = new TickTimer(); private final TickTimer hypixelTimer = new TickTimer(); private final TickTimer cubecraftTeleportTickTimer = new TickTimer(); private final TickTimer freeHypixelTimer = new TickTimer(); private boolean shouldFakeJump, shouldActive = false; private boolean noPacketModify; private boolean isBoostActive = false; private boolean noFlag; private int pearlState = 0; private boolean wasDead; private int boostTicks, dmgCooldown = 0; private int verusJumpTimes = 0; public int wdState, wdTick = 0; private boolean verusDmged, shouldActiveDmg = false; private float lastYaw, lastPitch; private double moveSpeed = 0.0; private int expectItemStack = -1; private double aacJump; private int aac3delay; private int aac3glideDelay; private long minesuchtTP; private int boostHypixelState = 1; private double lastDistance; private boolean failedStart = false; private float freeHypixelYaw; private float freeHypixelPitch; private void doMove(double h, double v) { if (mc.thePlayer == null) return; double x = mc.thePlayer.posX; double y = mc.thePlayer.posY; double z = mc.thePlayer.posZ; final double yaw = Math.toRadians(mc.thePlayer.rotationYaw); double expectedX = x + (-Math.sin(yaw) * h); double expectedY = y + v; double expectedZ = z + (Math.cos(yaw) * h); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(expectedX, expectedY, expectedZ, mc.thePlayer.onGround)); mc.thePlayer.setPosition(expectedX, expectedY, expectedZ); } private void hClip(double x, double y, double z) { if (mc.thePlayer == null) return; double expectedX = mc.thePlayer.posX + x; double expectedY = mc.thePlayer.posY + y; double expectedZ = mc.thePlayer.posZ + z; mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(expectedX, expectedY, expectedZ, mc.thePlayer.onGround)); mc.thePlayer.setPosition(expectedX, expectedY, expectedZ); } private double[] getMoves(double h, double v) { if (mc.thePlayer == null) return new double[]{ 0.0, 0.0, 0.0 }; final double yaw = Math.toRadians(mc.thePlayer.rotationYaw); double expectedX = (-Math.sin(yaw) * h); double expectedY = v; double expectedZ = (Math.cos(yaw) * h); return new double[] { expectedX, expectedY, expectedZ }; } @Override public void onEnable() { if(mc.thePlayer == null) return; noPacketModify = true; verusTimer.reset(); flyTimer.reset(); shouldFakeJump = false; shouldActive = true; isBoostActive = false; expectItemStack = -1; double x = mc.thePlayer.posX; double y = mc.thePlayer.posY; double z = mc.thePlayer.posZ; lastYaw = mc.thePlayer.rotationYaw; lastPitch = mc.thePlayer.rotationPitch; final String mode = modeValue.get(); boostTicks = 0; dmgCooldown = 0; pearlState = 0; verusJumpTimes = 0; verusDmged = false; moveSpeed = 0; wdState = 0; wdTick = 0; switch (mode.toLowerCase()) { case "ncp": mc.thePlayer.motionY = -ncpMotionValue.get(); if(mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY = -0.5D; MovementUtils.strafe(); break; case "oldncp": if(startY > mc.thePlayer.posY) mc.thePlayer.motionY = -0.000000000000000000000000000000001D; if(mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY = -0.2D; if(mc.gameSettings.keyBindJump.isKeyDown() && mc.thePlayer.posY < (startY - 0.1D)) mc.thePlayer.motionY = 0.2D; MovementUtils.strafe(); break; case "verus": if (verusDmgModeValue.get().equalsIgnoreCase("Instant")) { if (mc.thePlayer.onGround && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; if (verusReDamageValue.get()) dmgCooldown = verusReDmgTickValue.get(); } } else if (verusDmgModeValue.get().equalsIgnoreCase("InstantC06")) { if (mc.thePlayer.onGround && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; if (verusReDamageValue.get()) dmgCooldown = verusReDmgTickValue.get(); } } else if (verusDmgModeValue.get().equalsIgnoreCase("Jump")) { if (mc.thePlayer.onGround) { mc.thePlayer.jump(); verusJumpTimes = 1; } } else { // set dmged = true since there's no damage method verusDmged = true; } if (verusVisualValue.get()) mc.thePlayer.setPosition(mc.thePlayer.posX, y + verusVisualHeightValue.get(), mc.thePlayer.posZ); shouldActiveDmg = dmgCooldown > 0; break; case "bugspartan": for(int i = 0; i < 65; ++i) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.049D, z, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, false)); } mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.1D, z, true)); mc.thePlayer.motionX *= 0.1D; mc.thePlayer.motionZ *= 0.1D; mc.thePlayer.swingItem(); break; case "funcraft": if (mc.thePlayer.onGround) mc.thePlayer.jump(); moveSpeed = 1; break; case "watchdog": expectItemStack = getSlimeSlot(); if (expectItemStack == -1) { LiquidBounce.hud.addNotification(new Notification("The fly requires slime blocks to be activated properly.")); break; } if (mc.thePlayer.onGround) { mc.thePlayer.jump(); wdState = 1; } break; case "boosthypixel": if(!mc.thePlayer.onGround) break; if (hypixelC04.get()) for (int i = 0; i < 10; i++) //Imagine flagging to NCP. mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true)); if (hypixelBoostMode.get().equalsIgnoreCase("ncp")) { for (int i = 0; i < 65; i++) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.049, mc.thePlayer.posZ, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false)); } } else { double fallDistance = hypixelBoostMode.get().equalsIgnoreCase("morepackets") ? 3.4025 : 3.0125; //add 0.0125 to ensure we get the fall dmg while (fallDistance > 0) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.0624986421, mc.thePlayer.posZ, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.0625 , mc.thePlayer.posZ, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.0624986421, mc.thePlayer.posZ, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.0000013579, mc.thePlayer.posZ, false)); fallDistance -= 0.0624986421; } } mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true)); if (hypixelVisualY.get()) { mc.thePlayer.jump(); mc.thePlayer.posY += 0.42F; // Visual } boostHypixelState = 1; moveSpeed = 0.1D; lastDistance = 0D; failedStart = false; break; } startY = mc.thePlayer.posY; noPacketModify = false; aacJump = -3.8D; if (mode.equalsIgnoreCase("freehypixel")) { freeHypixelTimer.reset(); mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX, mc.thePlayer.posY + 0.42D, mc.thePlayer.posZ); freeHypixelYaw = mc.thePlayer.rotationYaw; freeHypixelPitch = mc.thePlayer.rotationPitch; } if (!mode.equalsIgnoreCase("watchdog") && !mode.equalsIgnoreCase("bugspartan") && !mode.equalsIgnoreCase("verus") && !mode.equalsIgnoreCase("damage") && !mode.toLowerCase().contains("hypixel") && fakeDmgValue.get()) { mc.thePlayer.handleStatusUpdate((byte) 2); } super.onEnable(); } @Override public void onDisable() { wasDead = false; if (mc.thePlayer == null) return; noFlag = false; final String mode = modeValue.get(); if (resetMotionValue.get() && (!mode.toUpperCase().startsWith("AAC") && !mode.equalsIgnoreCase("Hypixel") && !mode.equalsIgnoreCase("CubeCraft") && !mode.equalsIgnoreCase("Collide") && !mode.equalsIgnoreCase("Verus") && !mode.equalsIgnoreCase("Jump") && !mode.equalsIgnoreCase("creative")) || (mode.equalsIgnoreCase("pearl") && pearlState != -1)) { mc.thePlayer.motionX = 0; mc.thePlayer.motionY = 0; mc.thePlayer.motionZ = 0; } if (resetMotionValue.get() && boostTicks > 0 && mode.equalsIgnoreCase("Verus")) { mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; } if (mode.equalsIgnoreCase("AAC5-Vanilla") && !mc.isIntegratedServerRunning()) { sendAAC5Packets(); } mc.thePlayer.capabilities.isFlying = false; mc.timer.timerSpeed = 1F; mc.thePlayer.speedInAir = 0.02F; } @EventTarget public void onUpdate(final UpdateEvent event) { final float vanillaSpeed = vanillaSpeedValue.get(); final float vanillaVSpeed = vanillaVSpeedValue.get(); mc.thePlayer.noClip = false; if (modeValue.get().equalsIgnoreCase("aac5-vanilla") && aac5NoClipValue.get()) mc.thePlayer.noClip = true; switch (modeValue.get().toLowerCase()) { case "motion": mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionY = vanillaMotionYValue.get(); mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; if (mc.gameSettings.keyBindJump.isKeyDown()) mc.thePlayer.motionY += vanillaVSpeed; if (mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY -= vanillaVSpeed; MovementUtils.strafe(vanillaSpeed); handleVanillaKickBypass(); break; case "cubecraft": mc.timer.timerSpeed = 0.6F; cubecraftTeleportTickTimer.update(); break; case "ncp": mc.thePlayer.motionY = -ncpMotionValue.get(); if(mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY = -0.5D; MovementUtils.strafe(); break; case "oldncp": if(startY > mc.thePlayer.posY) mc.thePlayer.motionY = -0.000000000000000000000000000000001D; if(mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY = -0.2D; if(mc.gameSettings.keyBindJump.isKeyDown() && mc.thePlayer.posY < (startY - 0.1D)) mc.thePlayer.motionY = 0.2D; MovementUtils.strafe(); break; case "clip": mc.thePlayer.motionY = clipMotionY.get(); mc.timer.timerSpeed = clipTimer.get(); if (mc.thePlayer.ticksExisted % clipDelay.get() == 0) { double[] expectMoves = getMoves((double)clipH.get(), (double)clipV.get()); if (!clipCollisionCheck.get() || mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(expectMoves[0], expectMoves[1], expectMoves[2]).expand(0, 0, 0)).isEmpty()) hClip(expectMoves[0], expectMoves[1], expectMoves[2]); } break; case "damage": mc.thePlayer.capabilities.isFlying = false; if (mc.thePlayer.hurtTime <= 0) break; case "derp": case "aac5-vanilla": case "bugspartan": mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionY = 0; mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; if (mc.gameSettings.keyBindJump.isKeyDown()) mc.thePlayer.motionY += vanillaSpeed; if (mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY -= vanillaSpeed; MovementUtils.strafe(vanillaSpeed); break; case "verus": mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; if (!verusDmgModeValue.get().equalsIgnoreCase("Jump") || shouldActiveDmg || verusDmged) mc.thePlayer.motionY = 0; if (verusDmgModeValue.get().equalsIgnoreCase("Jump") && verusJumpTimes < 5) { if (mc.thePlayer.onGround) { mc.thePlayer.jump(); verusJumpTimes += 1; } return; } if (shouldActiveDmg) { if (dmgCooldown > 0) dmgCooldown--; else if (verusDmged) { verusDmged = false; double y = mc.thePlayer.posY; if (verusDmgModeValue.get().equalsIgnoreCase("Instant")) { if (mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; } } else if (verusDmgModeValue.get().equalsIgnoreCase("InstantC06")) { if (mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; } } dmgCooldown = verusReDmgTickValue.get(); } } if (!verusDmged && mc.thePlayer.hurtTime > 0) { verusDmged = true; boostTicks = verusDmgTickValue.get(); } if (boostTicks > 0) { mc.timer.timerSpeed = verusTimerValue.get(); float motion = 0F; if (verusBoostModeValue.get().equalsIgnoreCase("static")) motion = verusSpeedValue.get(); else motion = ((float)boostTicks / (float)verusDmgTickValue.get()) * verusSpeedValue.get(); boostTicks--; MovementUtils.strafe(motion); } else if (verusDmged) { mc.timer.timerSpeed = 1F; MovementUtils.strafe((float)MovementUtils.getBaseMoveSpeed() * 0.6F); } else { mc.thePlayer.movementInput.moveForward = 0F; mc.thePlayer.movementInput.moveStrafe = 0F; } break; case "creative": mc.thePlayer.capabilities.isFlying = true; handleVanillaKickBypass(); break; case "aac1.9.10": if(mc.gameSettings.keyBindJump.isKeyDown()) aacJump += 0.2D; if(mc.gameSettings.keyBindSneak.isKeyDown()) aacJump -= 0.2D; if((startY + aacJump) > mc.thePlayer.posY) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer(true)); mc.thePlayer.motionY = 0.8D; MovementUtils.strafe(aacSpeedValue.get()); } MovementUtils.strafe(); break; case "aac3.0.5": if (aac3delay == 2) mc.thePlayer.motionY = 0.1D; else if (aac3delay > 2) aac3delay = 0; if (aacFast.get()) { if (mc.thePlayer.movementInput.moveStrafe == 0D) mc.thePlayer.jumpMovementFactor = 0.08F; else mc.thePlayer.jumpMovementFactor = 0F; } aac3delay++; break; case "aac3.1.6-gomme": mc.thePlayer.capabilities.isFlying = true; if (aac3delay == 2) { mc.thePlayer.motionY += 0.05D; } else if (aac3delay > 2) { mc.thePlayer.motionY -= 0.05D; aac3delay = 0; } aac3delay++; if(!noFlag) mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, mc.thePlayer.onGround)); if(mc.thePlayer.posY <= 0D) noFlag = true; break; case "flag": mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX + mc.thePlayer.motionX * 999, mc.thePlayer.posY + (mc.gameSettings.keyBindJump.isKeyDown() ? 1.5624 : 0.00000001) - (mc.gameSettings.keyBindSneak.isKeyDown() ? 0.0624 : 0.00000002), mc.thePlayer.posZ + mc.thePlayer.motionZ * 999, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX + mc.thePlayer.motionX * 999, mc.thePlayer.posY - 6969, mc.thePlayer.posZ + mc.thePlayer.motionZ * 999, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)); mc.thePlayer.setPosition(mc.thePlayer.posX + mc.thePlayer.motionX * 11, mc.thePlayer.posY, mc.thePlayer.posZ + mc.thePlayer.motionZ * 11); mc.thePlayer.motionY = 0F; break; case "keepalive": mc.getNetHandler().addToSendQueue(new C00PacketKeepAlive()); mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionY = 0; mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; if(mc.gameSettings.keyBindJump.isKeyDown()) mc.thePlayer.motionY += vanillaSpeed; if(mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY -= vanillaSpeed; MovementUtils.strafe(vanillaSpeed); break; case "minesecure": mc.thePlayer.capabilities.isFlying = false; if(!mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY = -0.01F; mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; MovementUtils.strafe(vanillaSpeed); if(mineSecureVClipTimer.hasTimePassed(150) && mc.gameSettings.keyBindJump.isKeyDown()) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 5, mc.thePlayer.posZ, false)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(0.5D, -1000, 0.5D, false)); final double yaw = Math.toRadians(mc.thePlayer.rotationYaw); final double x = -Math.sin(yaw) * 0.4D; final double z = Math.cos(yaw) * 0.4D; mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z); mineSecureVClipTimer.reset(); } break; case "hac2": mc.thePlayer.motionX *= 0.8; mc.thePlayer.motionZ *= 0.8; case "hawkeye": mc.thePlayer.motionY = mc.thePlayer.motionY <= -0.42 ? 0.42 : -0.42; break; case "teleportrewinside": final Vec3 vectorStart = new Vec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ); final float yaw = -mc.thePlayer.rotationYaw; final float pitch = -mc.thePlayer.rotationPitch; final double length = 9.9; final Vec3 vectorEnd = new Vec3( Math.sin(Math.toRadians(yaw)) * Math.cos(Math.toRadians(pitch)) * length + vectorStart.xCoord, Math.sin(Math.toRadians(pitch)) * length + vectorStart.yCoord, Math.cos(Math.toRadians(yaw)) * Math.cos(Math.toRadians(pitch)) * length + vectorStart.zCoord ); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vectorEnd.xCoord, mc.thePlayer.posY + 2, vectorEnd.zCoord, true)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vectorStart.xCoord, mc.thePlayer.posY + 2, vectorStart.zCoord, true)); mc.thePlayer.motionY = 0; break; case "minesucht": final double posX = mc.thePlayer.posX; final double posY = mc.thePlayer.posY; final double posZ = mc.thePlayer.posZ; if(!mc.gameSettings.keyBindForward.isKeyDown()) break; if(System.currentTimeMillis() - minesuchtTP > 99) { final Vec3 vec3 = mc.thePlayer.getPositionEyes(0); final Vec3 vec31 = mc.thePlayer.getLook(0); final Vec3 vec32 = vec3.addVector(vec31.xCoord * 7, vec31.yCoord * 7, vec31.zCoord * 7); if(mc.thePlayer.fallDistance > 0.8) { mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY + 50, posZ, false)); mc.thePlayer.fall(100, 100); mc.thePlayer.fallDistance = 0; mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY + 20, posZ, true)); } mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec32.xCoord, mc.thePlayer.posY + 50, vec32.zCoord, true)); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY, posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec32.xCoord, posY, vec32.zCoord, true)); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY, posZ, false)); minesuchtTP = System.currentTimeMillis(); }else{ mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY, posZ, true)); } break; case "jetpack": if(mc.gameSettings.keyBindJump.isKeyDown()) { mc.effectRenderer.spawnEffectParticle(EnumParticleTypes.FLAME.getParticleID(), mc.thePlayer.posX, mc.thePlayer.posY + 0.2D, mc.thePlayer.posZ, -mc.thePlayer.motionX, -0.5D, -mc.thePlayer.motionZ); mc.thePlayer.motionY += 0.15D; mc.thePlayer.motionX *= 1.1D; mc.thePlayer.motionZ *= 1.1D; } break; case "mineplex": if(mc.thePlayer.inventory.getCurrentItem() == null) { if(mc.gameSettings.keyBindJump.isKeyDown() && mineplexTimer.hasTimePassed(100)) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.6, mc.thePlayer.posZ); mineplexTimer.reset(); } if(mc.thePlayer.isSneaking() && mineplexTimer.hasTimePassed(100)) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY - 0.6, mc.thePlayer.posZ); mineplexTimer.reset(); } final BlockPos blockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY - 1, mc.thePlayer.posZ); final Vec3 vec = new Vec3(blockPos).addVector(0.4F, 0.4F, 0.4F).add(new Vec3(EnumFacing.UP.getDirectionVec())); mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, mc.thePlayer.inventory.getCurrentItem(), blockPos, EnumFacing.UP, new Vec3(vec.xCoord * 0.4F, vec.yCoord * 0.4F, vec.zCoord * 0.4F)); MovementUtils.strafe(0.27F); mc.timer.timerSpeed = (1 + mineplexSpeedValue.get()); }else{ mc.timer.timerSpeed = 1; setState(false); ClientUtils.displayChatMessage("§8[§c§lMineplex-§a§lFly§8] §aSelect an empty slot to fly."); } break; case "aac3.3.12": if(mc.thePlayer.posY < -70) mc.thePlayer.motionY = aacMotion.get(); mc.timer.timerSpeed = 1F; if(Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) { mc.timer.timerSpeed = 0.2F; mc.rightClickDelayTimer = 0; } break; case "aac3.3.12-glide": if(!mc.thePlayer.onGround) aac3glideDelay++; if(aac3glideDelay == 2) mc.timer.timerSpeed = 1F; if(aac3glideDelay == 12) mc.timer.timerSpeed = 0.1F; if(aac3glideDelay >= 12 && !mc.thePlayer.onGround) { aac3glideDelay = 0; mc.thePlayer.motionY = .015; } break; case "aac3.3.13": if(mc.thePlayer.isDead) wasDead = true; if(wasDead || mc.thePlayer.onGround) { wasDead = false; mc.thePlayer.motionY = aacMotion2.get(); mc.thePlayer.onGround = false; } mc.timer.timerSpeed = 1F; if(Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) { mc.timer.timerSpeed = 0.2F; mc.rightClickDelayTimer = 0; } break; case "watchcat": MovementUtils.strafe(0.15F); mc.thePlayer.setSprinting(true); if(mc.thePlayer.posY < startY + 2) { mc.thePlayer.motionY = Math.random() * 0.5; break; } if(startY > mc.thePlayer.posY) MovementUtils.strafe(0F); break; case "spartan": mc.thePlayer.motionY = 0; spartanTimer.update(); if(spartanTimer.hasTimePassed(12)) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 8, mc.thePlayer.posZ, true)); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY - 8, mc.thePlayer.posZ, true)); spartanTimer.reset(); } break; case "spartan2": MovementUtils.strafe(0.264F); if(mc.thePlayer.ticksExisted % 8 == 0) mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 10, mc.thePlayer.posZ, true)); break; case "pearl": mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionX = mc.thePlayer.motionY = mc.thePlayer.motionZ = 0; int enderPearlSlot = getPearlSlot(); if (pearlState == 0) { if (enderPearlSlot == -1) { LiquidBounce.hud.addNotification(new Notification("You don't have any ender pearl!", Notification.Type.ERROR)); pearlState = -1; this.setState(false); return; } if (mc.thePlayer.inventory.currentItem != enderPearlSlot) { mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(enderPearlSlot)); } mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(mc.thePlayer.rotationYaw, 90, mc.thePlayer.onGround)); mc.thePlayer.sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(new BlockPos(-1, -1, -1), 255, mc.thePlayer.inventoryContainer.getSlot(enderPearlSlot + 36).getStack(), 0, 0, 0)); if (enderPearlSlot != mc.thePlayer.inventory.currentItem) { mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem)); } pearlState = 1; } if (pearlActivateCheck.get().equalsIgnoreCase("damage") && pearlState == 1 && mc.thePlayer.hurtTime > 0) pearlState = 2; if (pearlState == 2) { if (mc.gameSettings.keyBindJump.isKeyDown()) mc.thePlayer.motionY += vanillaSpeed; if (mc.gameSettings.keyBindSneak.isKeyDown()) mc.thePlayer.motionY -= vanillaSpeed; MovementUtils.strafe(vanillaSpeed); } break; case "jump": if (mc.thePlayer.onGround) mc.thePlayer.jump(); break; case "neruxvace": if (!mc.thePlayer.onGround) aac3glideDelay++; if (aac3glideDelay >= neruxVaceTicks.get() && !mc.thePlayer.onGround) { aac3glideDelay = 0; mc.thePlayer.motionY = .015; } break; case "hypixel": final int boostDelay = hypixelBoostDelay.get(); if (hypixelBoost.get() && !flyTimer.hasTimePassed(boostDelay)) { mc.timer.timerSpeed = 1F + (hypixelBoostTimer.get() * ((float) flyTimer.hasTimeLeft(boostDelay) / (float) boostDelay)); } hypixelTimer.update(); if (hypixelTimer.hasTimePassed(2)) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.0E-5, mc.thePlayer.posZ); hypixelTimer.reset(); } break; case "freehypixel": if (freeHypixelTimer.hasTimePassed(10)) { mc.thePlayer.capabilities.isFlying = true; break; } else { mc.thePlayer.rotationYaw = freeHypixelYaw; mc.thePlayer.rotationPitch = freeHypixelPitch; mc.thePlayer.motionX = mc.thePlayer.motionZ = mc.thePlayer.motionY = 0; } if (startY == new BigDecimal(mc.thePlayer.posY).setScale(3, RoundingMode.HALF_DOWN).doubleValue()) freeHypixelTimer.update(); break; } } @EventTarget // drew public void onMotion(final MotionEvent event) { if (mc.thePlayer == null) return; if (bobbingValue.get()) { mc.thePlayer.cameraYaw = bobbingAmountValue.get(); mc.thePlayer.prevCameraYaw = bobbingAmountValue.get(); } if (modeValue.get().equalsIgnoreCase("boosthypixel")) { switch (event.getEventState()) { case PRE: hypixelTimer.update(); if (hypixelTimer.hasTimePassed(2)) { mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.0E-5, mc.thePlayer.posZ); hypixelTimer.reset(); } if(!failedStart) mc.thePlayer.motionY = 0D; break; case POST: double xDist = mc.thePlayer.posX - mc.thePlayer.prevPosX; double zDist = mc.thePlayer.posZ - mc.thePlayer.prevPosZ; lastDistance = Math.sqrt(xDist * xDist + zDist * zDist); break; } } switch (modeValue.get().toLowerCase()) { case "funcraft": event.setOnGround(true); if (!MovementUtils.isMoving()) moveSpeed = 0.25; if (moveSpeed > 0.25) { moveSpeed -= moveSpeed / 159.0; } if (event.getEventState() == EventState.PRE) { mc.thePlayer.capabilities.isFlying = false; mc.thePlayer.motionY = 0; mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; MovementUtils.strafe((float)moveSpeed); mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY - 8e-6, mc.thePlayer.posZ); } break; case "watchdog": int current = mc.thePlayer.inventory.currentItem; if (event.getEventState() == EventState.PRE) { if (wdState == 1 && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, -1, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C09PacketHeldItemChange(expectItemStack)); wdState = 2; } mc.timer.timerSpeed = 1F; if (wdState == 3 && expectItemStack != -1) { PacketUtils.sendPacketNoEvent(new C09PacketHeldItemChange(current)); expectItemStack = -1; } if (wdState == 4) { if (MovementUtils.isMoving()) MovementUtils.strafe((float) MovementUtils.getBaseMoveSpeed() * 0.938F); else MovementUtils.strafe(0F); mc.thePlayer.motionY = -0.0015F; } else if (wdState < 3) { final Rotation rot = RotationUtils.getRotationFromPosition(mc.thePlayer.posX, mc.thePlayer.posZ, (int)mc.thePlayer.posY - 1); RotationUtils.setTargetRotation(rot); event.setYaw(rot.getYaw()); event.setPitch(rot.getPitch()); } else event.setY(event.getY() - 0.08); } else if (wdState == 2) { if (mc.playerController.onPlayerRightClick( mc.thePlayer, mc.theWorld, mc.thePlayer.inventoryContainer.getSlot(expectItemStack).getStack(), new BlockPos(mc.thePlayer.posX, (int)mc.thePlayer.posY - 2, mc.thePlayer.posZ), EnumFacing.UP, RotationUtils.getVectorForRotation(RotationUtils.getRotationFromPosition(mc.thePlayer.posX, mc.thePlayer.posZ, (int)mc.thePlayer.posY - 1)))) mc.getNetHandler().addToSendQueue(new C0APacketAnimation()); wdState = 3; } break; } } public float coerceAtMost(double value, double max) { return (float) Math.min(value, max); } @EventTarget public void onRender3D(final Render3DEvent event) { final String mode = modeValue.get(); if (!markValue.get() || mode.equalsIgnoreCase("Motion") || mode.equalsIgnoreCase("Creative") || mode.equalsIgnoreCase("Damage") || mode.equalsIgnoreCase("AAC5-Vanilla") || mode.equalsIgnoreCase("Derp") || mode.equalsIgnoreCase("KeepAlive")) return; double y = startY + 2D; RenderUtils.drawPlatform(y, mc.thePlayer.getEntityBoundingBox().maxY < y ? new Color(0, 255, 0, 90) : new Color(255, 0, 0, 90), 1); switch (mode.toLowerCase()) { case "aac1.9.10": RenderUtils.drawPlatform(startY + aacJump, new Color(0, 0, 255, 90), 1); break; case "aac3.3.12": RenderUtils.drawPlatform(-70, new Color(0, 0, 255, 90), 1); break; } } @EventTarget public void onRender2D(final Render2DEvent event) { final String mode = modeValue.get(); ScaledResolution scaledRes = new ScaledResolution(mc); if (mode.equalsIgnoreCase("Verus") && boostTicks > 0) { float width = (float)(verusDmgTickValue.get() - boostTicks) / (float)verusDmgTickValue.get() * 60F; RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 31F, scaledRes.getScaledHeight() / 2F + 14F, scaledRes.getScaledWidth() / 2F + 31F, scaledRes.getScaledHeight() / 2F + 18F, 0xA0000000); RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 30F, scaledRes.getScaledHeight() / 2F + 15F, scaledRes.getScaledWidth() / 2F - 30F + width, scaledRes.getScaledHeight() / 2F + 17F, 0xFFFFFFFF); } if (mode.equalsIgnoreCase("Verus") && shouldActiveDmg) { float width = (float)(verusReDmgTickValue.get() - dmgCooldown) / (float)verusReDmgTickValue.get() * 60F; RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 31F, scaledRes.getScaledHeight() / 2F + 14F + 10F, scaledRes.getScaledWidth() / 2F + 31F, scaledRes.getScaledHeight() / 2F + 18F + 10F, 0xA0000000); RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 30F, scaledRes.getScaledHeight() / 2F + 15F + 10F, scaledRes.getScaledWidth() / 2F - 30F + width, scaledRes.getScaledHeight() / 2F + 17F + 10F, 0xFFFF1F1F); } } @EventTarget public void onPacket(PacketEvent event) { final Packet<?> packet = event.getPacket(); final String mode = modeValue.get(); if(noPacketModify) return; if (packet instanceof C09PacketHeldItemChange && mode.equalsIgnoreCase("watchdog") && wdState < 4) event.cancelEvent(); if (packet instanceof S08PacketPlayerPosLook) { if (mode.equalsIgnoreCase("watchdog") && wdState == 3) { wdState = 4; if (fakeDmgValue.get() && mc.thePlayer != null) mc.thePlayer.handleStatusUpdate((byte) 2); } if (mode.equalsIgnoreCase("pearl") && pearlActivateCheck.get().equalsIgnoreCase("teleport") && pearlState == 1) pearlState = 2; if (mode.equalsIgnoreCase("BoostHypixel")) { failedStart = true; ClientUtils.displayChatMessage("§8[§c§lBoostHypixel-§a§lFly§8] §cSetback detected."); } } if (packet instanceof C03PacketPlayer) { final C03PacketPlayer packetPlayer = (C03PacketPlayer) packet; boolean lastOnGround = packetPlayer.onGround; if (mode.equalsIgnoreCase("NCP") || mode.equalsIgnoreCase("Rewinside") || (mode.equalsIgnoreCase("Mineplex") && mc.thePlayer.inventory.getCurrentItem() == null) || (mode.equalsIgnoreCase("Verus") && verusSpoofGround.get() && verusDmged)) packetPlayer.onGround = true; if (mode.equalsIgnoreCase("Hypixel") || mode.equalsIgnoreCase("BoostHypixel")) packetPlayer.onGround = false; if (mode.equalsIgnoreCase("Derp")) { packetPlayer.yaw = RandomUtils.nextFloat(0F, 360F); packetPlayer.pitch = RandomUtils.nextFloat(-90F, 90F); } if (mode.equalsIgnoreCase("AAC5-Vanilla") && !mc.isIntegratedServerRunning()) { if (aac5NofallValue.get()) packetPlayer.onGround = true; aac5C03List.add(packetPlayer); event.cancelEvent(); if(aac5C03List.size()>aac5PursePacketsValue.get()) sendAAC5Packets(); } if (mode.equalsIgnoreCase("clip") && clipGroundSpoof.get()) packetPlayer.onGround = true; if ((mode.equalsIgnoreCase("motion") || mode.equalsIgnoreCase("creative")) && groundSpoofValue.get()) packetPlayer.onGround = true; if (verusDmgModeValue.get().equalsIgnoreCase("Jump") && verusJumpTimes < 5 && mode.equalsIgnoreCase("verus")) { packetPlayer.onGround = false; } } } private final ArrayList<C03PacketPlayer> aac5C03List=new ArrayList<>(); private void sendAAC5Packets(){ float yaw = mc.thePlayer.rotationYaw; float pitch = mc.thePlayer.rotationPitch; for (C03PacketPlayer packet : aac5C03List) { PacketUtils.sendPacketNoEvent(packet); if (packet.isMoving()) { if (packet.getRotating()) { yaw = packet.yaw; pitch = packet.pitch; } switch (aac5Packet.get()) { case "Original": if (aac5UseC04Packet.get()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x, 1e+159, packet.z, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x,packet.y,packet.z, true)); } else { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x, 1e+159, packet.z, yaw, pitch, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x,packet.y,packet.z, yaw, pitch, true)); } break; case "Rise": if (aac5UseC04Packet.get()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x, -1e+159, packet.z+10, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x,packet.y,packet.z, true)); } else { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x, -1e+159, packet.z+10, yaw, pitch, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x,packet.y,packet.z, yaw, pitch, true)); } break; case "Other": if (aac5UseC04Packet.get()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x, 1.7976931348623157E+308, packet.z, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(packet.x,packet.y,packet.z, true)); } else { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x, 1.7976931348623157E+308, packet.z, yaw, pitch, true)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(packet.x,packet.y,packet.z, yaw, pitch, true)); } break; } } } aac5C03List.clear(); } @EventTarget public void onMove(final MoveEvent event) { switch(modeValue.get().toLowerCase()) { case "pearl": if (pearlState != 2 && pearlState != -1) { event.cancelEvent(); } break; case "verus": if (!verusDmged) if (verusDmgModeValue.get().equalsIgnoreCase("Jump")) event.zeroXZ(); else event.cancelEvent(); break; case "clip": if (clipNoMove.get()) event.zeroXZ(); break; case "veruslowhop": if (!mc.thePlayer.isInWeb && !mc.thePlayer.isInLava() && !mc.thePlayer.isInWater() && !mc.thePlayer.isOnLadder() && !mc.gameSettings.keyBindJump.isKeyDown() && mc.thePlayer.ridingEntity == null) { if (MovementUtils.isMoving()) { mc.gameSettings.keyBindJump.pressed = false; if (mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0; MovementUtils.strafe(0.61F); event.setY(0.41999998688698); } MovementUtils.strafe(); } } break; case "watchdog": if (wdState < 4) event.zeroXZ(); break; case "cubecraft": { final double yaw = Math.toRadians(mc.thePlayer.rotationYaw); if (cubecraftTeleportTickTimer.hasTimePassed(2)) { event.setX(-Math.sin(yaw) * 2.4D); event.setZ(Math.cos(yaw) * 2.4D); cubecraftTeleportTickTimer.reset(); } else { event.setX(-Math.sin(yaw) * 0.2D); event.setZ(Math.cos(yaw) * 0.2D); } break; } case "boosthypixel": if (!MovementUtils.isMoving()) { event.setX(0D); event.setZ(0D); break; } if (failedStart) break; final double amplifier = 1 + (mc.thePlayer.isPotionActive(Potion.moveSpeed) ? 0.2 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier() + 1) : 0); final double baseSpeed = 0.29D * amplifier; switch (boostHypixelState) { case 1: moveSpeed = (mc.thePlayer.isPotionActive(Potion.moveSpeed) ? 1.56 : 2.034) * baseSpeed; boostHypixelState = 2; break; case 2: moveSpeed *= 2.16D; boostHypixelState = 3; break; case 3: moveSpeed = lastDistance - (mc.thePlayer.ticksExisted % 2 == 0 ? 0.0103D : 0.0123D) * (lastDistance - baseSpeed); boostHypixelState = 4; break; default: moveSpeed = lastDistance - lastDistance / 159.8D; break; } moveSpeed = Math.max(moveSpeed, 0.3D); final double yaw = MovementUtils.getDirection(); event.setX(-Math.sin(yaw) * moveSpeed); event.setZ(Math.cos(yaw) * moveSpeed); mc.thePlayer.motionX = event.getX(); mc.thePlayer.motionZ = event.getZ(); break; case "freehypixel": if (!freeHypixelTimer.hasTimePassed(10)) event.zero(); break; } } @EventTarget public void onBB(final BlockBBEvent event) { if (mc.thePlayer == null) return; final String mode = modeValue.get(); if (event.getBlock() instanceof BlockAir && mode.equalsIgnoreCase("Jump") && event.getY() < startY) event.setBoundingBox(AxisAlignedBB.fromBounds(event.getX(), event.getY(), event.getZ(), event.getX() + 1, startY, event.getZ() + 1)); if (event.getBlock() instanceof BlockAir && ((mode.equalsIgnoreCase("collide") && !mc.thePlayer.isSneaking()) || mode.equalsIgnoreCase("veruslowhop"))) event.setBoundingBox(new AxisAlignedBB(-2, -1, -2, 2, 1, 2).offset(event.getX(), event.getY(), event.getZ())); if (event.getBlock() instanceof BlockAir && (mode.equalsIgnoreCase("Hypixel") || mode.equalsIgnoreCase("BoostHypixel") || mode.equalsIgnoreCase("Rewinside") || (mode.equalsIgnoreCase("Mineplex") && mc.thePlayer.inventory.getCurrentItem() == null) || (mode.equalsIgnoreCase("Verus") && (verusDmgModeValue.get().equalsIgnoreCase("none") || verusDmged))) && event.getY() < mc.thePlayer.posY) event.setBoundingBox(AxisAlignedBB.fromBounds(event.getX(), event.getY(), event.getZ(), event.getX() + 1, mc.thePlayer.posY, event.getZ() + 1)); } @EventTarget public void onJump(final JumpEvent e) { final String mode = modeValue.get(); if (mode.equalsIgnoreCase("Hypixel") || mode.equalsIgnoreCase("BoostHypixel") || mode.equalsIgnoreCase("Rewinside") || (mode.equalsIgnoreCase("Mineplex") && mc.thePlayer.inventory.getCurrentItem() == null) || (mode.equalsIgnoreCase("FunCraft") && moveSpeed > 0) || (mode.equalsIgnoreCase("watchdog") && wdState >= 1)) e.cancelEvent(); } @EventTarget public void onStep(final StepEvent e) { final String mode = modeValue.get(); if (mode.equalsIgnoreCase("Hypixel") || mode.equalsIgnoreCase("BoostHypixel") || mode.equalsIgnoreCase("Rewinside") || (mode.equalsIgnoreCase("Mineplex") && mc.thePlayer.inventory.getCurrentItem() == null) || mode.equalsIgnoreCase("FunCraft") || mode.equalsIgnoreCase("watchdog")) e.setStepHeight(0F); } private void handleVanillaKickBypass() { if(!vanillaKickBypassValue.get() || !groundTimer.hasTimePassed(1000)) return; final double ground = calculateGround(); for(double posY = mc.thePlayer.posY; posY > ground; posY -= 8D) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, posY, mc.thePlayer.posZ, true)); if(posY - 8D < ground) break; // Prevent next step } mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, ground, mc.thePlayer.posZ, true)); for(double posY = ground; posY < mc.thePlayer.posY; posY += 8D) { mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, posY, mc.thePlayer.posZ, true)); if(posY + 8D > mc.thePlayer.posY) break; // Prevent next step } mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true)); groundTimer.reset(); } // TODO: Make better and faster calculation lol private double calculateGround() { final AxisAlignedBB playerBoundingBox = mc.thePlayer.getEntityBoundingBox(); double blockHeight = 1D; for(double ground = mc.thePlayer.posY; ground > 0D; ground -= blockHeight) { final AxisAlignedBB customBox = new AxisAlignedBB(playerBoundingBox.maxX, ground + blockHeight, playerBoundingBox.maxZ, playerBoundingBox.minX, ground, playerBoundingBox.minZ); if(mc.theWorld.checkBlockCollision(customBox)) { if(blockHeight <= 0.05D) return ground + blockHeight; ground += blockHeight; blockHeight = 0.05D; } } return 0F; } private int getPearlSlot() { for(int i = 36; i < 45; ++i) { ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if (stack != null && stack.getItem() instanceof ItemEnderPearl) { return i - 36; } } return -1; } private int getSlimeSlot() { for(int i = 36; i < 45; ++i) { ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if (stack != null && stack.getItem() != null && stack.getItem() instanceof ItemBlock) { final ItemBlock itemBlock = (ItemBlock) stack.getItem(); if (itemBlock.getBlock() instanceof BlockSlime) return i - 36; } } return -1; } @Override public String getTag() { return modeValue.get(); } }
70,314
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
IceSpeed.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/IceSpeed.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.Block; import net.minecraft.block.BlockAir; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; @ModuleInfo(name = "IceSpeed", spacedName = "Ice Speed", description = "Allows you to walk faster on ice.", category = ModuleCategory.MOVEMENT) public class IceSpeed extends Module { private final ListValue modeValue = new ListValue("Mode", new String[] {"NCP", "AAC", "Spartan"}, "NCP"); @Override public void onEnable() { if(modeValue.get().equalsIgnoreCase("NCP")) { Blocks.ice.slipperiness = 0.39F; Blocks.packed_ice.slipperiness = 0.39F; } super.onEnable(); } @EventTarget public void onUpdate(UpdateEvent event) { final String mode = modeValue.get(); if(mode.equalsIgnoreCase("NCP")) { Blocks.ice.slipperiness = 0.39F; Blocks.packed_ice.slipperiness = 0.39F; }else{ Blocks.ice.slipperiness = 0.98F; Blocks.packed_ice.slipperiness = 0.98F; } if(mc.thePlayer.onGround && !mc.thePlayer.isOnLadder() && !mc.thePlayer.isSneaking() && mc.thePlayer.isSprinting() && mc.thePlayer.movementInput.moveForward > 0D) { if(mode.equalsIgnoreCase("AAC")) { final Material material = BlockUtils.getMaterial(mc.thePlayer.getPosition().down()); if(material == Material.ice || material == Material.packedIce) { mc.thePlayer.motionX *= 1.342D; mc.thePlayer.motionZ *= 1.342D; Blocks.ice.slipperiness = 0.6F; Blocks.packed_ice.slipperiness = 0.6F; } } if(mode.equalsIgnoreCase("Spartan")) { final Material material = BlockUtils.getMaterial(mc.thePlayer.getPosition().down()); if(material == Material.ice || material == Material.packedIce) { final Block upBlock = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 2D, mc.thePlayer.posZ)); if(!(upBlock instanceof BlockAir)) { mc.thePlayer.motionX *= 1.342D; mc.thePlayer.motionZ *= 1.342D; }else{ mc.thePlayer.motionX *= 1.18D; mc.thePlayer.motionZ *= 1.18D; } Blocks.ice.slipperiness = 0.6F; Blocks.packed_ice.slipperiness = 0.6F; } } } } @Override public void onDisable() { Blocks.ice.slipperiness = 0.98F; Blocks.packed_ice.slipperiness = 0.98F; super.onDisable(); } }
3,521
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
ReverseStep.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/ReverseStep.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.JumpEvent; 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.block.BlockUtils; import net.ccbluex.liquidbounce.value.FloatValue; import net.minecraft.block.BlockLiquid; import net.minecraft.util.AxisAlignedBB; @ModuleInfo(name = "ReverseStep", spacedName = "Reverse Step", description = "Allows you to step down blocks faster.", category = ModuleCategory.MOVEMENT) public class ReverseStep extends Module { private final FloatValue motionValue = new FloatValue("Motion", 1F, 0.21F, 1F); private boolean jumped; @EventTarget(ignoreCondition = true) public void onUpdate(UpdateEvent event) { if(mc.thePlayer.onGround) jumped = false; if(mc.thePlayer.motionY > 0) jumped = true; if(!getState()) return; if(BlockUtils.collideBlock(mc.thePlayer.getEntityBoundingBox(), block -> block instanceof BlockLiquid) || BlockUtils.collideBlock(new AxisAlignedBB(mc.thePlayer.getEntityBoundingBox().maxX, mc.thePlayer.getEntityBoundingBox().maxY, mc.thePlayer.getEntityBoundingBox().maxZ, mc.thePlayer.getEntityBoundingBox().minX, mc.thePlayer.getEntityBoundingBox().minY - 0.01D, mc.thePlayer.getEntityBoundingBox().minZ), block -> block instanceof BlockLiquid)) return; if(!mc.gameSettings.keyBindJump.isKeyDown() && !mc.thePlayer.onGround && !mc.thePlayer.movementInput.jump && mc.thePlayer.motionY <= 0D && mc.thePlayer.fallDistance <= 1F && !jumped) mc.thePlayer.motionY = -motionValue.get(); } @EventTarget(ignoreCondition = true) public void onJump(JumpEvent event) { jumped = true; } }
2,193
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
BufferSpeed.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/BufferSpeed.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.PacketEvent; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.BlockAir; import net.minecraft.block.BlockSlab; import net.minecraft.block.BlockSlime; import net.minecraft.block.BlockStairs; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.multiplayer.WorldClient; import net.minecraft.init.Blocks; import net.minecraft.network.Packet; import net.minecraft.network.play.server.S08PacketPlayerPosLook; import net.minecraft.util.BlockPos; import java.util.ArrayList; import java.util.List; @ModuleInfo(name = "BufferSpeed", spacedName = "Buffer Speed", description = "Allows you to walk faster on slabs and stairs.", category = ModuleCategory.MOVEMENT) public class BufferSpeed extends Module { private final BoolValue speedLimitValue = new BoolValue("SpeedLimit", true); private final FloatValue maxSpeedValue = new FloatValue("MaxSpeed", 2.0F, 1.0F, 5F); private final BoolValue bufferValue = new BoolValue("Buffer", true); private final BoolValue stairsValue = new BoolValue("Stairs", true); private final FloatValue stairsBoostValue = new FloatValue("StairsBoost", 1.87F, 1F, 2F); private final ListValue stairsModeValue = new ListValue("StairsMode", new String[] {"Old", "New"}, "New"); private final BoolValue slabsValue = new BoolValue("Slabs", true); private final FloatValue slabsBoostValue = new FloatValue("SlabsBoost", 1.87F, 1F, 2F); private final ListValue slabsModeValue = new ListValue("SlabsMode", new String[] {"Old", "New"}, "New"); private final BoolValue iceValue = new BoolValue("Ice", false); private final FloatValue iceBoostValue = new FloatValue("IceBoost", 1.342F, 1F, 2F); private final BoolValue snowValue = new BoolValue("Snow", true); private final FloatValue snowBoostValue = new FloatValue("SnowBoost", 1.87F, 1F, 2F); private final BoolValue snowPortValue = new BoolValue("SnowPort", true); private final BoolValue wallValue = new BoolValue("Wall", true); private final FloatValue wallBoostValue = new FloatValue("WallBoost", 1.87F, 1F, 2F); private final ListValue wallModeValue = new ListValue("WallMode", new String[] {"Old", "New"}, "New"); private final BoolValue headBlockValue = new BoolValue("HeadBlock", true); private final FloatValue headBlockBoostValue = new FloatValue("HeadBlockBoost", 1.87F, 1F, 2F); private final BoolValue slimeValue = new BoolValue("Slime", true); private final BoolValue airStrafeValue = new BoolValue("AirStrafe", false); private final BoolValue noHurtValue = new BoolValue("NoHurt", true); private double speed = 0; private boolean down; private boolean forceDown; private boolean fastHop; private boolean hadFastHop; private boolean legitHop; @EventTarget public void onUpdate(final UpdateEvent event) { if (LiquidBounce.moduleManager.getModule(Speed.class).getState() || (noHurtValue.get() && mc.thePlayer.hurtTime > 0)) { reset(); return; } final BlockPos blockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ); if(forceDown || (down && mc.thePlayer.motionY == 0)) { mc.thePlayer.motionY = -1; down = false; forceDown = false; } if(fastHop) { mc.thePlayer.speedInAir = 0.0211F; hadFastHop = true; }else if(hadFastHop) { mc.thePlayer.speedInAir = 0.02F; hadFastHop = false; } if(!MovementUtils.isMoving() || mc.thePlayer.isSneaking() || mc.thePlayer.isInWater() || mc.gameSettings.keyBindJump.isKeyDown()) { reset(); return; } if(mc.thePlayer.onGround) { fastHop = false; if(slimeValue.get() && (BlockUtils.getBlock(blockPos.down()) instanceof BlockSlime || BlockUtils.getBlock(blockPos) instanceof BlockSlime)) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0.08; mc.thePlayer.motionX *= 1.132; mc.thePlayer.motionZ *= 1.132; down = true; return; } if(slabsValue.get() && BlockUtils.getBlock(blockPos) instanceof BlockSlab) { switch(slabsModeValue.get().toLowerCase()) { case "old": boost(slabsBoostValue.get()); return; case "new": fastHop = true; if(legitHop) { mc.thePlayer.jump(); mc.thePlayer.onGround = false; legitHop = false; return; } mc.thePlayer.onGround = false; MovementUtils.strafe(0.375F); mc.thePlayer.jump(); mc.thePlayer.motionY = 0.41; return; } } if(stairsValue.get() && (BlockUtils.getBlock(blockPos.down()) instanceof BlockStairs || BlockUtils.getBlock(blockPos) instanceof BlockStairs)) { switch(stairsModeValue.get().toLowerCase()) { case "old": boost(stairsBoostValue.get()); return; case "new": fastHop = true; if(legitHop) { mc.thePlayer.jump(); mc.thePlayer.onGround = false; legitHop = false; return; } mc.thePlayer.onGround = false; MovementUtils.strafe(0.375F); mc.thePlayer.jump(); mc.thePlayer.motionY = 0.41; return; } } legitHop = true; if(headBlockValue.get() && BlockUtils.getBlock(blockPos.up(2)) != Blocks.air) { boost(headBlockBoostValue.get()); return; } if(iceValue.get() && (BlockUtils.getBlock(blockPos.down()) == Blocks.ice || BlockUtils.getBlock(blockPos.down()) == Blocks.packed_ice)) { boost(iceBoostValue.get()); return; } if((snowValue.get() && BlockUtils.getBlock(blockPos) == Blocks.snow_layer) && (snowPortValue.get() || mc.thePlayer.posY - (int) mc.thePlayer.posY >= 0.12500)) { if(mc.thePlayer.posY - (int) mc.thePlayer.posY >= 0.12500) boost(snowBoostValue.get()); else{ mc.thePlayer.jump(); forceDown = true; } return; } if(wallValue.get()) { switch(wallModeValue.get().toLowerCase()) { case "old": if((mc.thePlayer.isCollidedHorizontally && isNearBlock()) || !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 2D, mc.thePlayer.posZ)) instanceof BlockAir)) { boost(wallBoostValue.get()); return; } break; case "new": if(isNearBlock() && !mc.thePlayer.movementInput.jump) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0.08; mc.thePlayer.motionX *= 0.99; mc.thePlayer.motionZ *= 0.99; down = true; return; } break; } } final float currentSpeed = MovementUtils.getSpeed(); if(speed < currentSpeed) speed = currentSpeed; if(bufferValue.get() && speed > 0.2F) { speed /= 1.0199999809265137D; MovementUtils.strafe((float) speed); } }else{ speed = 0F; if(airStrafeValue.get()) MovementUtils.strafe(); } } @EventTarget public void onPacket(final PacketEvent event) { final Packet<?> packet = event.getPacket(); if(packet instanceof S08PacketPlayerPosLook) speed = 0F; } @Override public void onEnable() { reset(); } @Override public void onDisable() { reset(); } private void reset() { if(mc.thePlayer == null) return; legitHop = true; speed = 0; if(hadFastHop) { mc.thePlayer.speedInAir = 0.02F; hadFastHop = false; } } private void boost(final float boost) { mc.thePlayer.motionX *= boost; mc.thePlayer.motionZ *= boost; speed = MovementUtils.getSpeed(); if(speedLimitValue.get() && speed > maxSpeedValue.get()) speed = maxSpeedValue.get(); } private boolean isNearBlock() { final EntityPlayerSP thePlayer = mc.thePlayer; final WorldClient theWorld = mc.theWorld; final List<BlockPos> blocks = new ArrayList<>(); blocks.add(new BlockPos(thePlayer.posX, thePlayer.posY + 1, thePlayer.posZ - 0.7)); blocks.add(new BlockPos(thePlayer.posX + 0.7, thePlayer.posY + 1, thePlayer.posZ)); blocks.add(new BlockPos(thePlayer.posX, thePlayer.posY + 1, thePlayer.posZ + 0.7)); blocks.add(new BlockPos(thePlayer.posX - 0.7, thePlayer.posY + 1, thePlayer.posZ)); for(final BlockPos blockPos : blocks) if((theWorld.getBlockState(blockPos).getBlock().getBlockBoundsMaxY() == theWorld.getBlockState(blockPos).getBlock().getBlockBoundsMinY() + 1 && !theWorld.getBlockState(blockPos).getBlock().isTranslucent() && theWorld.getBlockState(blockPos).getBlock() != Blocks.water && !(theWorld.getBlockState(blockPos).getBlock() instanceof BlockSlab)) || theWorld.getBlockState(blockPos).getBlock() == Blocks.barrier) return true; return false; } }
11,341
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
WallClimb.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/WallClimb.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.*; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.BlockAir; import net.minecraft.network.Packet; import net.minecraft.network.play.client.C03PacketPlayer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MathHelper; @ModuleInfo(name = "WallClimb", spacedName = "Wall Climb", description = "Allows you to climb up walls like a spider.", category = ModuleCategory.MOVEMENT) public class WallClimb extends Module { private final ListValue modeValue = new ListValue("Mode", new String[] {"Simple", "CheckerClimb", "Clip", "AAC3.3.12", "AACGlide", "Verus"}, "Simple"); private final ListValue clipMode = new ListValue("ClipMode", new String[] {"Jump", "Fast"}, "Fast", () -> modeValue.get().equalsIgnoreCase("clip")); private final FloatValue checkerClimbMotionValue = new FloatValue("CheckerClimbMotion", 0F, 0F, 1F, () -> modeValue.get().equalsIgnoreCase("checkerclimb")); private final FloatValue verusClimbSpeed = new FloatValue("VerusClimbSpeed", 0F, 0F, 1F, () -> modeValue.get().equalsIgnoreCase("verus")); private boolean glitch, canClimb; private int waited; @Override public void onEnable() { glitch = false; canClimb = false; waited = 0; } @EventTarget public void onMove(MoveEvent event) { if(!mc.thePlayer.isCollidedHorizontally || mc.thePlayer.isOnLadder() || mc.thePlayer.isInWater() || mc.thePlayer.isInLava()) return; if("simple".equalsIgnoreCase(modeValue.get())) { event.setY(0.2D); mc.thePlayer.motionY = 0D; } } @EventTarget public void onJump(JumpEvent event) { if (modeValue.get().equalsIgnoreCase("verus") && canClimb) event.cancelEvent(); } @EventTarget public void onUpdate(MotionEvent event) { if(event.getEventState() != EventState.POST) return; switch(modeValue.get().toLowerCase()) { case "clip": if(mc.thePlayer.motionY < 0) glitch = true; if(mc.thePlayer.isCollidedHorizontally) { switch(clipMode.get().toLowerCase()) { case "jump": if(mc.thePlayer.onGround) mc.thePlayer.jump(); break; case "fast": if(mc.thePlayer.onGround) mc.thePlayer.motionY = .42; else if(mc.thePlayer.motionY < 0) mc.thePlayer.motionY = -0.3; break; } } break; case "checkerclimb": final boolean isInsideBlock = BlockUtils.collideBlockIntersects(mc.thePlayer.getEntityBoundingBox(), block -> !(block instanceof BlockAir)); final float motion = checkerClimbMotionValue.get(); if(isInsideBlock && motion != 0F) mc.thePlayer.motionY = motion; break; case "aac3.3.12": if(mc.thePlayer.isCollidedHorizontally && !mc.thePlayer.isOnLadder()) { waited++; if(waited == 1) mc.thePlayer.motionY = 0.43; if(waited == 12) mc.thePlayer.motionY = 0.43; if(waited == 23) mc.thePlayer.motionY = 0.43; if(waited == 29) mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.5, mc.thePlayer.posZ); if(waited >= 30) waited = 0; }else if(mc.thePlayer.onGround) waited = 0; break; case "aacglide": if(!mc.thePlayer.isCollidedHorizontally || mc.thePlayer.isOnLadder()) return; mc.thePlayer.motionY = -0.189; break; case "verus": if (!mc.thePlayer.isCollidedHorizontally || mc.thePlayer.isInWater() || mc.thePlayer.isInLava() || mc.thePlayer.isOnLadder() || mc.thePlayer.isInWeb || mc.thePlayer.isOnLadder()) { canClimb = false; } else { canClimb = true; mc.thePlayer.motionY = verusClimbSpeed.get(); mc.thePlayer.onGround = true; } break; } } @EventTarget public void onPacket(final PacketEvent event) { final Packet<?> packet = event.getPacket(); if(packet instanceof C03PacketPlayer) { final C03PacketPlayer packetPlayer = (C03PacketPlayer) packet; if(glitch) { final float yaw = (float) MovementUtils.getDirection(); packetPlayer.x = packetPlayer.x - MathHelper.sin(yaw) * 0.00000001D; packetPlayer.z = packetPlayer.z + MathHelper.cos(yaw) * 0.00000001D; glitch = false; } if (canClimb) packetPlayer.onGround = true; } } @EventTarget public void onBlockBB(final BlockBBEvent event) { if(mc.thePlayer == null) return; final String mode = modeValue.get(); switch(mode.toLowerCase()) { case "checkerclimb": if(event.getY() > mc.thePlayer.posY) event.setBoundingBox(null); break; case "clip": if(event.getBlock() != null && mc.thePlayer != null && event.getBlock() instanceof BlockAir && event.getY() < mc.thePlayer.posY && mc.thePlayer.isCollidedHorizontally && !mc.thePlayer.isOnLadder() && !mc.thePlayer.isInWater() && !mc.thePlayer.isInLava()) event.setBoundingBox(new AxisAlignedBB(0, 0, 0, 1, 1, 1).offset(mc.thePlayer.posX, (int) mc.thePlayer.posY - 1, mc.thePlayer.posZ)); break; } } }
6,723
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
LadderJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/LadderJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; 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; @ModuleInfo(name = "LadderJump", spacedName = "Ladder Jump", description = "Boosts you up when touching a ladder.", category = ModuleCategory.MOVEMENT) public class LadderJump extends Module { static boolean jumped; @EventTarget public void onUpdate(UpdateEvent event) { if(mc.thePlayer.onGround) { if(mc.thePlayer.isOnLadder()) { mc.thePlayer.motionY = 1.5D; jumped = true; }else jumped = false; }else if(!mc.thePlayer.isOnLadder() && jumped) mc.thePlayer.motionY += 0.059D; } }
1,138
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Speed.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/Speed.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; 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.features.module.modules.exploit.Disabler; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.matrix.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.hypixel.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.verus.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spectre.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spartan.SpartanYPort; import net.ccbluex.liquidbounce.ui.client.hud.element.elements.Notification; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.client.gui.GuiChat; import net.minecraft.client.gui.GuiIngameMenu; import net.minecraft.client.settings.GameSettings; import java.util.ArrayList; import java.util.List; @ModuleInfo(name = "Speed", description = "Allows you to move faster.", category = ModuleCategory.MOVEMENT) public class Speed extends Module { public final SpeedMode[] speedModes = new SpeedMode[] { // NCP new NCPBHop(), new NCPFHop(), new SNCPBHop(), new NCPHop(), new NCPYPort(), // AAC new AAC4FastHop(), new AAC4LongHop(), new AAC4Hop(), new AAC4SlowHop(), new AACv4BHop(), new AACBHop(), new AAC2BHop(), new AAC3BHop(), new AAC4BHop(), new AAC5BHop(), new AAC6BHop(), new AAC7BHop(), new OldAACBHop(), new AACPort(), new AACLowHop(), new AACLowHop2(), new AACLowHop3(), new AACGround(), new AACGround2(), new AACHop350(), new AACHop3313(), new AACHop438(), new AACYPort(), new AACYPort2(), // Hypixel new HypixelBoost(), new HypixelStable(), new HypixelCustom(), // Spartan new SpartanYPort(), // Spectre new SpectreBHop(), new SpectreLowHop(), new SpectreOnGround(), // Other new SlowHop(), new StrafeHop(), new CustomSpeed(), new Jump(), new Legit(), new AEMine(), new GWEN(), new Boost(), new Frame(), new MiJump(), new OnGround(), new YPort(), new YPort2(), new HiveHop(), new MineplexGround(), new TeleportCubeCraft(), // Verus new VerusHop(), new VerusLowHop(), new VerusHard(), // Matrix new MatrixSemiStrafe(), new MatrixTimerBalance(), new MatrixMultiply(), new MatrixDynamic() }; public final ListValue typeValue = new ListValue("Type", new String[]{"NCP", "AAC", "Spartan", "Spectre", "Hypixel", "Verus", "Matrix", "Custom", "Other"}, "NCP") { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue ncpModeValue = new ListValue("NCP-Mode", new String[]{"BHop", "FHop", "SBHop", "Hop", "YPort"}, "BHop", () -> typeValue.get().equalsIgnoreCase("ncp")) { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue aacModeValue = new ListValue("AAC-Mode", new String[]{ "4FastHop", "4LongHop", "4Hop", "4SlowHop", "v4BHop", "BHop", "2BHop", "3BHop", "4BHop", "5BHop", "6BHop", "7BHop", "OldBHop", "Port", "LowHop", "LowHop2", "LowHop3", "Ground", "Ground2", "Hop3.5.0", "Hop3.3.13", "Hop4.3.8", "YPort", "YPort2" }, "4Hop", () -> typeValue.get().equalsIgnoreCase("aac")) { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue hypixelModeValue = new ListValue("Hypixel-Mode", new String[]{"Boost", "Stable", "Custom"}, "Stable", () -> typeValue.get().equalsIgnoreCase("hypixel")) { // the worst hypixel bypass ever existed @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue spectreModeValue = new ListValue("Spectre-Mode", new String[]{"BHop", "LowHop", "OnGround"}, "BHop", () -> typeValue.get().equalsIgnoreCase("spectre")) { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue otherModeValue = new ListValue("Other-Mode", new String[]{"YPort", "YPort2", "Boost", "Frame", "MiJump", "OnGround", "SlowHop", "StrafeHop", "Jump", "Legit", "AEMine", "GWEN", "HiveHop", "MineplexGround", "TeleportCubeCraft"}, "Boost", () -> typeValue.get().equalsIgnoreCase("other")) { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue verusModeValue = new ListValue("Verus-Mode", new String[]{"Hop", "LowHop", "Hard"}, "Hop", () -> typeValue.get().equalsIgnoreCase("verus")) { @Override protected void onChange(final String oldValue, final String newValue) { if(getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if(getState()) onEnable(); } }; public final ListValue matrixModeValue = new ListValue("Matrix-Mode", new String[]{"MatrixSemiStrafe", "MatrixTimerBalance", "MatrixMultiply", "MatrixDynamic"}, "MatrixSemiStrafe", () -> typeValue.get().equalsIgnoreCase("matrix")) { @Override protected void onChange(final String oldValue, final String newValue) { if (getState()) onDisable(); } @Override protected void onChanged(final String oldValue, final String newValue) { if (getState()) onEnable(); } }; public final BoolValue modifySprint = new BoolValue("ModifySprinting", true); public final BoolValue timerValue = new BoolValue("UseTimer", true, () -> getModeName().equalsIgnoreCase("hypixelcustom")); public final BoolValue smoothStrafe = new BoolValue("SmoothStrafe", true, () -> getModeName().equalsIgnoreCase("hypixelcustom")); public final FloatValue customSpeedValue = new FloatValue("StrSpeed", 0.42f, 0.2f, 2f, () -> getModeName().equalsIgnoreCase("hypixelcustom")); public final FloatValue motionYValue = new FloatValue("MotionY", 0.42f, 0f, 2f, () -> getModeName().equalsIgnoreCase("hypixelcustom")); public final FloatValue verusTimer = new FloatValue("Verus-Timer", 1F, 0.1F, 10F, () -> getModeName().equalsIgnoreCase("verushard")); public final FloatValue speedValue = new FloatValue("CustomSpeed", 1.6f, 0.2f, 2f, () -> typeValue.get().equalsIgnoreCase("custom")); public final FloatValue launchSpeedValue = new FloatValue("CustomLaunchSpeed", 1.6f, 0.2f, 2f, () -> typeValue.get().equalsIgnoreCase("custom")); public final FloatValue addYMotionValue = new FloatValue("CustomAddYMotion", 0f, 0f, 2f, () -> typeValue.get().equalsIgnoreCase("custom")); public final FloatValue yValue = new FloatValue("CustomY", 0f, 0f, 4f, () -> typeValue.get().equalsIgnoreCase("custom")); public final FloatValue upTimerValue = new FloatValue("CustomUpTimer", 1f, 0.1f, 2f, () -> typeValue.get().equalsIgnoreCase("custom")); public final FloatValue downTimerValue = new FloatValue("CustomDownTimer", 1f, 0.1f, 2f, () -> typeValue.get().equalsIgnoreCase("custom")); public final ListValue strafeValue = new ListValue("CustomStrafe", new String[] {"Strafe", "Boost", "Plus", "PlusOnlyUp", "Non-Strafe"}, "Boost", () -> typeValue.get().equalsIgnoreCase("custom")); public final IntegerValue groundStay = new IntegerValue("CustomGroundStay", 0, 0, 10, () -> typeValue.get().equalsIgnoreCase("custom")); public final BoolValue groundResetXZValue = new BoolValue("CustomGroundResetXZ", false, () -> typeValue.get().equalsIgnoreCase("custom")); public final BoolValue resetXZValue = new BoolValue("CustomResetXZ", false, () -> typeValue.get().equalsIgnoreCase("custom")); public final BoolValue resetYValue = new BoolValue("CustomResetY", false, () -> typeValue.get().equalsIgnoreCase("custom")); public final BoolValue doLaunchSpeedValue = new BoolValue("CustomDoLaunchSpeed", true, () -> typeValue.get().equalsIgnoreCase("custom")); public final BoolValue jumpStrafe = new BoolValue("JumpStrafe", false, () -> typeValue.get().equalsIgnoreCase("other")); public final BoolValue sendJumpValue = new BoolValue("SendJump", true, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final BoolValue recalcValue = new BoolValue("ReCalculate", true, () -> (typeValue.get().equalsIgnoreCase("hypixel") && sendJumpValue.get() && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue glideStrengthValue = new FloatValue("GlideStrength", 0.03F, 0F, 0.05F, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue moveSpeedValue = new FloatValue("MoveSpeed", 1.47F, 1F, 1.7F, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue jumpYValue = new FloatValue("JumpY", 0.42F, 0F, 1F, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue baseStrengthValue = new FloatValue("BaseMultiplier", 1F, 0.5F, 1F, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue baseTimerValue = new FloatValue("BaseTimer", 1.5F, 1F, 3F, () -> getModeName().equalsIgnoreCase("hypixelboost")); public final FloatValue baseMTimerValue = new FloatValue("BaseMultiplierTimer", 1F, 0F, 3F, () -> getModeName().equalsIgnoreCase("hypixelboost")); public final BoolValue bypassWarning = new BoolValue("BypassWarning", true, () -> (typeValue.get().equalsIgnoreCase("hypixel") && !getModeName().equalsIgnoreCase("hypixelcustom"))); public final FloatValue portMax = new FloatValue("AAC-PortLength", 1, 1, 20, () -> typeValue.get().equalsIgnoreCase("aac")); public final FloatValue aacGroundTimerValue = new FloatValue("AACGround-Timer", 3F, 1.1F, 10F, () -> typeValue.get().equalsIgnoreCase("aac")); public final FloatValue cubecraftPortLengthValue = new FloatValue("CubeCraft-PortLength", 1F, 0.1F, 2F, () -> getModeName().equalsIgnoreCase("teleportcubecraft")); public final FloatValue mineplexGroundSpeedValue = new FloatValue("MineplexGround-Speed", 0.5F, 0.1F, 1F, () -> getModeName().equalsIgnoreCase("mineplexground")); public final ListValue tagDisplay = new ListValue("Tag", new String[] { "Type", "FullName", "All" }, "Type"); @EventTarget public void onUpdate(final UpdateEvent event) { if(mc.thePlayer.isSneaking()) return; if(MovementUtils.isMoving() && modifySprint.get()) mc.thePlayer.setSprinting(!getModeName().equalsIgnoreCase("verushard")); final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onUpdate(); } @EventTarget public void onMotion(final MotionEvent event) { if(mc.thePlayer.isSneaking() || event.getEventState() != EventState.PRE) return; if(MovementUtils.isMoving() && modifySprint.get()) mc.thePlayer.setSprinting(!getModeName().equalsIgnoreCase("verushard")); final SpeedMode speedMode = getMode(); if(speedMode != null) { speedMode.onMotion(event); speedMode.onMotion(); } } @EventTarget public void onMove(MoveEvent event) { if(mc.thePlayer.isSneaking()) return; final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onMove(event); } @EventTarget public void onTick(final TickEvent event) { if(mc.thePlayer.isSneaking()) return; final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onTick(); } @EventTarget public void onJump(JumpEvent event) { final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onJump(event); } @Override public void onEnable() { if(mc.thePlayer == null) return; if (bypassWarning.get() && typeValue.get().equalsIgnoreCase("hypixel") && !LiquidBounce.moduleManager.getModule(Disabler.class).getState()) { LiquidBounce.hud.addNotification(new Notification("Disabler is OFF! Disable this notification in settings.", Notification.Type.WARNING, 3000L)); } mc.timer.timerSpeed = 1F; final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onEnable(); } @Override public void onDisable() { if(mc.thePlayer == null) return; mc.timer.timerSpeed = 1F; mc.gameSettings.keyBindJump.pressed = (mc.thePlayer != null && (mc.inGameHasFocus || LiquidBounce.moduleManager.getModule(InvMove.class).getState()) && !(mc.currentScreen instanceof GuiIngameMenu || mc.currentScreen instanceof GuiChat) && GameSettings.isKeyDown(mc.gameSettings.keyBindJump)); final SpeedMode speedMode = getMode(); if(speedMode != null) speedMode.onDisable(); } @Override public String getTag() { if (tagDisplay.get().equalsIgnoreCase("type")) return typeValue.get(); if (tagDisplay.get().equalsIgnoreCase("fullname")) return getModeName(); return typeValue.get() == "Other" ? otherModeValue.get() : typeValue.get() == "Custom" ? "Custom" : typeValue.get() + ", " + getOnlySingleName(); } private String getOnlySingleName() { String mode = ""; switch (typeValue.get()) { case "NCP": mode = ncpModeValue.get(); break; case "AAC": mode = aacModeValue.get(); break; case "Spartan": mode = "Spartan"; break; case "Spectre": mode = spectreModeValue.get(); break; case "Hypixel": mode = hypixelModeValue.get(); break; case "Verus": mode = verusModeValue.get(); break; case "Matrix": mode = matrixModeValue.get(); break; } return mode; } public String getModeName() { String mode = ""; switch (typeValue.get()) { case "NCP": if (ncpModeValue.get().equalsIgnoreCase("SBHop")) mode = "SNCPBHop"; else mode = "NCP" + ncpModeValue.get(); break; case "AAC": if (aacModeValue.get().equalsIgnoreCase("oldbhop")) mode = "OldAACBHop"; else mode = "AAC" + aacModeValue.get(); break; case "Spartan": mode = "SpartanYPort"; break; case "Spectre": mode = "Spectre" + spectreModeValue.get(); break; case "Hypixel": mode = "Hypixel" + hypixelModeValue.get(); break; case "Verus": mode = "Verus" + verusModeValue.get(); break; case "Custom": mode = "Custom"; break; case "Other": mode = otherModeValue.get(); break; case "Matrix": mode = matrixModeValue.get(); break; } return mode; } public SpeedMode getMode() { for(final SpeedMode speedMode : speedModes) if(speedMode.modeName.equalsIgnoreCase(getModeName())) return speedMode; return null; } }
18,896
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SlimeJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/SlimeJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.JumpEvent; 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.block.BlockUtils; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.block.BlockSlime; @ModuleInfo(name = "SlimeJump", spacedName = "Slime Jump", description = "Allows you to to jump higher on slime blocks.", category = ModuleCategory.MOVEMENT) public class SlimeJump extends Module { private final FloatValue motionValue = new FloatValue("Motion", 0.42F, 0.2F, 1F); private final ListValue modeValue = new ListValue("Mode", new String[] {"Set", "Add"}, "Add"); @EventTarget public void onJump(JumpEvent event) { if(mc.thePlayer != null && mc.theWorld != null && BlockUtils.getBlock(mc.thePlayer.getPosition().down()) instanceof BlockSlime) { event.cancelEvent(); switch(modeValue.get().toLowerCase()) { case "set": mc.thePlayer.motionY = motionValue.get(); break; case "add": mc.thePlayer.motionY += motionValue.get(); break; } } } }
1,667
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
LongJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/LongJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.JumpEvent; import net.ccbluex.liquidbounce.event.MotionEvent; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.event.UpdateEvent; import net.ccbluex.liquidbounce.event.PacketEvent; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.ui.client.hud.element.elements.Notification; import net.ccbluex.liquidbounce.utils.ClientUtils; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.PacketUtils; import net.ccbluex.liquidbounce.utils.PosLookInstance; import net.ccbluex.liquidbounce.utils.timer.MSTimer; import net.ccbluex.liquidbounce.value.*; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.item.ItemEnderPearl; import net.minecraft.item.ItemStack; import net.minecraft.network.play.client.*; import net.minecraft.network.play.server.S08PacketPlayerPosLook; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; @ModuleInfo(name = "LongJump", spacedName = "Long Jump", description = "Allows you to jump further.", category = ModuleCategory.MOVEMENT) public class LongJump extends Module { private final ListValue modeValue = new ListValue("Mode", new String[] {"NCP", "Damage", "AACv1", "AACv2", "AACv3", "AACv4", "Mineplex", "Mineplex2", "Mineplex3", "RedeskyMaki", "Redesky", "InfiniteRedesky", "MatrixFlag", "VerusDmg", "Pearl"}, "NCP"); private final BoolValue autoJumpValue = new BoolValue("AutoJump", false); private final FloatValue ncpBoostValue = new FloatValue("NCPBoost", 4.25F, 1F, 10F, () -> modeValue.get().equalsIgnoreCase("ncp")); private final FloatValue matrixBoostValue = new FloatValue("MatrixFlag-Boost", 1.95F, 0F, 3F, () -> modeValue.get().equalsIgnoreCase("matrixflag")); private final FloatValue matrixHeightValue = new FloatValue("MatrixFlag-Height", 5F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("matrixflag")); private final BoolValue matrixSilentValue = new BoolValue("MatrixFlag-Silent", true, () -> modeValue.get().equalsIgnoreCase("matrixflag")); private final ListValue matrixBypassModeValue = new ListValue("MatrixFlag-BypassMode", new String[] {"Motion", "Clip", "None"}, "EqualMotion", () -> modeValue.get().equalsIgnoreCase("matrixflag")); private final BoolValue matrixDebugValue = new BoolValue("MatrixFlag-Debug", true, () -> modeValue.get().equalsIgnoreCase("matrixflag")); private final BoolValue redeskyTimerBoostValue = new BoolValue("Redesky-TimerBoost", false, () -> modeValue.get().equalsIgnoreCase("redesky")); private final BoolValue redeskyGlideAfterTicksValue = new BoolValue("Redesky-GlideAfterTicks", false, () -> modeValue.get().equalsIgnoreCase("redesky")); private final IntegerValue redeskyTickValue = new IntegerValue("Redesky-Ticks", 21, 1, 25, () -> modeValue.get().equalsIgnoreCase("redesky")); private final FloatValue redeskyYMultiplier = new FloatValue("Redesky-YMultiplier", 0.77F, 0.1F, 1F, () -> modeValue.get().equalsIgnoreCase("redesky")); private final FloatValue redeskyXZMultiplier = new FloatValue("Redesky-XZMultiplier", 0.9F, 0.1F, 1F, () -> modeValue.get().equalsIgnoreCase("redesky")); private final FloatValue redeskyTimerBoostStartValue = new FloatValue("Redesky-TimerBoostStart", 1.85F, 0.05F, 10F, () -> modeValue.get().equalsIgnoreCase("redesky") && redeskyTimerBoostValue.get()); private final FloatValue redeskyTimerBoostEndValue = new FloatValue("Redesky-TimerBoostEnd", 1.0F, 0.05F, 10F, () -> modeValue.get().equalsIgnoreCase("redesky") && redeskyTimerBoostValue.get()); private final IntegerValue redeskyTimerBoostSlowDownSpeedValue = new IntegerValue("Redesky-TimerBoost-SlowDownSpeed", 2, 1, 10, () -> modeValue.get().equalsIgnoreCase("redesky") && redeskyTimerBoostValue.get()); private final ListValue verusDmgModeValue = new ListValue("VerusDmg-DamageMode", new String[]{"Instant", "InstantC06", "Jump"}, "None", () -> modeValue.get().equalsIgnoreCase("verusdmg")); private final FloatValue verusBoostValue = new FloatValue("VerusDmg-Boost", 4.25F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("verusdmg")); private final FloatValue verusHeightValue = new FloatValue("VerusDmg-Height", 0.42F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("verusdmg")); private final FloatValue verusTimerValue = new FloatValue("VerusDmg-Timer", 1F, 0.05F, 10F, () -> modeValue.get().equalsIgnoreCase("verusdmg")); private final FloatValue pearlBoostValue = new FloatValue("Pearl-Boost", 4.25F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("pearl")); private final FloatValue pearlHeightValue = new FloatValue("Pearl-Height", 0.42F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("pearl")); private final FloatValue pearlTimerValue = new FloatValue("Pearl-Timer", 1F, 0.05F, 10F, () -> modeValue.get().equalsIgnoreCase("pearl")); private final FloatValue damageBoostValue = new FloatValue("Damage-Boost", 4.25F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("damage")); private final FloatValue damageHeightValue = new FloatValue("Damage-Height", 0.42F, 0F, 10F, () -> modeValue.get().equalsIgnoreCase("damage")); private final FloatValue damageTimerValue = new FloatValue("Damage-Timer", 1F, 0.05F, 10F, () -> modeValue.get().equalsIgnoreCase("damage")); private final BoolValue damageNoMoveValue = new BoolValue("Damage-NoMove", false, () -> modeValue.get().equalsIgnoreCase("damage")); private final BoolValue damageARValue = new BoolValue("Damage-AutoReset", false, () -> modeValue.get().equalsIgnoreCase("damage")); private boolean jumped; private boolean canBoost; private boolean teleported; private boolean canMineplexBoost; private int ticks = 0; private float currentTimer = 1F; private boolean verusDmged, hpxDamage, damaged = false; private int verusJumpTimes = 0; private int pearlState = 0; private double lastMotX, lastMotY, lastMotZ; private boolean flagged = false; private boolean hasFell = false; private MSTimer dmgTimer = new MSTimer(); private PosLookInstance posLookInstance = new PosLookInstance(); private void debug(String message) { if (matrixDebugValue.get()) ClientUtils.displayChatMessage(message); } public void onEnable() { if (mc.thePlayer == null) return; if (modeValue.get().equalsIgnoreCase("redesky") && redeskyTimerBoostValue.get()) currentTimer = redeskyTimerBoostStartValue.get(); ticks = 0; verusDmged = false; hpxDamage = false; damaged = false; flagged = false; hasFell = false; pearlState = 0; verusJumpTimes = 0; dmgTimer.reset(); posLookInstance.reset(); double x = mc.thePlayer.posX; double y = mc.thePlayer.posY; double z = mc.thePlayer.posZ; if (modeValue.get().equalsIgnoreCase("verusdmg")) { if (verusDmgModeValue.get().equalsIgnoreCase("Instant")) { if (mc.thePlayer.onGround && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; } } else if (verusDmgModeValue.get().equalsIgnoreCase("InstantC06")) { if (mc.thePlayer.onGround && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 4, 0).expand(0, 0, 0)).isEmpty()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, y, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; } } else if (verusDmgModeValue.get().equalsIgnoreCase("Jump")) { if (mc.thePlayer.onGround) { mc.thePlayer.jump(); verusJumpTimes = 1; } } } if (modeValue.get().equalsIgnoreCase("matrixflag")) { if (matrixBypassModeValue.get().equalsIgnoreCase("none")) { debug("no less flag enabled."); hasFell = true; return; } if (mc.thePlayer.onGround) { if (matrixBypassModeValue.get().equalsIgnoreCase("clip")) { mc.thePlayer.setPosition(x, y + 0.01, z); debug("clipped"); } if (matrixBypassModeValue.get().equalsIgnoreCase("motion")) mc.thePlayer.jump(); } else if (mc.thePlayer.fallDistance > 0F) { hasFell = true; debug("falling detected"); } } } @EventTarget public void onUpdate(final UpdateEvent event) { if (modeValue.get().equalsIgnoreCase("matrixflag")) { if (hasFell) { if (!flagged && !matrixSilentValue.get()) { MovementUtils.strafe(matrixBoostValue.get()); mc.thePlayer.motionY = matrixHeightValue.get(); debug("triggering"); } } else { if (matrixBypassModeValue.get().equalsIgnoreCase("motion")) { mc.thePlayer.motionX *= 0.2; mc.thePlayer.motionZ *= 0.2; if (mc.thePlayer.fallDistance > 0) { hasFell = true; debug("activated"); } } if (matrixBypassModeValue.get().equalsIgnoreCase("clip") && mc.thePlayer.motionY < 0F) { hasFell = true; debug("activated"); } } return; } if (modeValue.get().equalsIgnoreCase("verusdmg")) { if (mc.thePlayer.hurtTime > 0 && !verusDmged) { verusDmged = true; MovementUtils.strafe(verusBoostValue.get()); mc.thePlayer.motionY = verusHeightValue.get(); } if (verusDmgModeValue.get().equalsIgnoreCase("Jump") && verusJumpTimes < 5) { if (mc.thePlayer.onGround) { mc.thePlayer.jump(); verusJumpTimes += 1; } return; } if (verusDmged) mc.timer.timerSpeed = verusTimerValue.get(); else { mc.thePlayer.movementInput.moveForward = 0F; mc.thePlayer.movementInput.moveStrafe = 0F; if (!verusDmgModeValue.get().equalsIgnoreCase("Jump")) mc.thePlayer.motionY = 0; } return; } if (modeValue.get().equalsIgnoreCase("damage")) { if (mc.thePlayer.hurtTime > 0 && !damaged) { damaged = true; MovementUtils.strafe(damageBoostValue.get()); mc.thePlayer.motionY = damageHeightValue.get(); } if (damaged) { mc.timer.timerSpeed = damageTimerValue.get(); if (damageARValue.get() && mc.thePlayer.hurtTime <= 0) damaged = false; } return; } if (modeValue.get().equalsIgnoreCase("pearl")) { int enderPearlSlot = getPearlSlot(); if (pearlState == 0) { if (enderPearlSlot == -1) { LiquidBounce.hud.addNotification(new Notification("You don't have any ender pearl!", Notification.Type.ERROR)); pearlState = -1; this.setState(false); return; } if (mc.thePlayer.inventory.currentItem != enderPearlSlot) { mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(enderPearlSlot)); } mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(mc.thePlayer.rotationYaw, 90, mc.thePlayer.onGround)); mc.thePlayer.sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(new BlockPos(-1, -1, -1), 255, mc.thePlayer.inventoryContainer.getSlot(enderPearlSlot + 36).getStack(), 0, 0, 0)); if (enderPearlSlot != mc.thePlayer.inventory.currentItem) { mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem)); } pearlState = 1; } if (pearlState == 1 && mc.thePlayer.hurtTime > 0) { pearlState = 2; MovementUtils.strafe(pearlBoostValue.get()); mc.thePlayer.motionY = pearlHeightValue.get(); } if (pearlState == 2) mc.timer.timerSpeed = pearlTimerValue.get(); return; } if(jumped) { final String mode = modeValue.get(); if (mc.thePlayer.onGround || mc.thePlayer.capabilities.isFlying) { jumped = false; canMineplexBoost = false; if (mode.equalsIgnoreCase("NCP")) { mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; } return; } switch (mode.toLowerCase()) { case "ncp": MovementUtils.strafe(MovementUtils.getSpeed() * (canBoost ? ncpBoostValue.get() : 1F)); canBoost = false; break; case "aacv1": mc.thePlayer.motionY += 0.05999D; MovementUtils.strafe(MovementUtils.getSpeed() * 1.08F); break; case "aacv2": case "mineplex3": mc.thePlayer.jumpMovementFactor = 0.09F; mc.thePlayer.motionY += 0.0132099999999999999999999999999; mc.thePlayer.jumpMovementFactor = 0.08F; MovementUtils.strafe(); break; case "aacv3": final EntityPlayerSP player = mc.thePlayer; if (player.fallDistance > 0.5F && !teleported) { double value = 3; EnumFacing horizontalFacing = player.getHorizontalFacing(); double x = 0; double z = 0; switch (horizontalFacing) { case NORTH: z = -value; break; case EAST: x = +value; break; case SOUTH: z = +value; break; case WEST: x = -value; break; } player.setPosition(player.posX + x, player.posY, player.posZ + z); teleported = true; } break; case "mineplex": mc.thePlayer.motionY += 0.0132099999999999999999999999999; mc.thePlayer.jumpMovementFactor = 0.08F; MovementUtils.strafe(); break; case "mineplex2": if (!canMineplexBoost) break; mc.thePlayer.jumpMovementFactor = 0.1F; if (mc.thePlayer.fallDistance > 1.5F) { mc.thePlayer.jumpMovementFactor = 0F; mc.thePlayer.motionY = -10F; } MovementUtils.strafe(); break; // add timer to use longjump longer forward without boost case "aacv4": mc.thePlayer.jumpMovementFactor = 0.05837456f; mc.timer.timerSpeed = 0.5F; break; //simple lmfao case "redeskymaki": mc.thePlayer.jumpMovementFactor = 0.15f; mc.thePlayer.motionY += 0.05F; break; case "redesky": if (redeskyTimerBoostValue.get()) { mc.timer.timerSpeed = currentTimer; } if (ticks < redeskyTickValue.get()) { mc.thePlayer.jump(); mc.thePlayer.motionY *= redeskyYMultiplier.get(); mc.thePlayer.motionX *= redeskyXZMultiplier.get(); mc.thePlayer.motionZ *= redeskyXZMultiplier.get(); } else { if (redeskyGlideAfterTicksValue.get()) { mc.thePlayer.motionY += 0.03F; } if (redeskyTimerBoostValue.get() && currentTimer > redeskyTimerBoostEndValue.get()) { currentTimer = Math.max(0.08F, currentTimer - 0.05F * redeskyTimerBoostSlowDownSpeedValue.get()); // zero-timer protection } } ticks++; break; case "infiniteredesky": if(mc.thePlayer.fallDistance > 0.6F) mc.thePlayer.motionY += 0.02F; MovementUtils.strafe((float) Math.min(0.85, Math.max(0.25, MovementUtils.getSpeed() * 1.05878))); break; } } if (autoJumpValue.get() && mc.thePlayer.onGround && MovementUtils.isMoving()) { jumped = true; mc.thePlayer.jump(); } } @EventTarget public void onMove(final MoveEvent event) { final String mode = modeValue.get(); if (mode.equalsIgnoreCase("mineplex3")) { if(mc.thePlayer.fallDistance != 0) mc.thePlayer.motionY += 0.037; } else if (mode.equalsIgnoreCase("ncp") && !MovementUtils.isMoving() && jumped) { mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; event.zeroXZ(); } if ((mode.equalsIgnoreCase("damage") && damageNoMoveValue.get() && !damaged) || (mode.equalsIgnoreCase("verusdmg") && !verusDmged)) event.zeroXZ(); if (mode.equalsIgnoreCase("pearl") && pearlState != 2) event.cancelEvent(); if (matrixSilentValue.get() && hasFell && !flagged) event.cancelEvent(); } @EventTarget public void onPacket(PacketEvent event) { final String mode = modeValue.get(); if (event.getPacket() instanceof C03PacketPlayer) { C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket(); if (mode.equalsIgnoreCase("verusdmg") && verusDmgModeValue.get().equalsIgnoreCase("Jump") && verusJumpTimes < 5) { packetPlayer.onGround = false; } if (mode.equalsIgnoreCase("matrixflag")) { if (event.getPacket() instanceof C03PacketPlayer.C06PacketPlayerPosLook && posLookInstance.equalFlag((C03PacketPlayer.C06PacketPlayerPosLook) event.getPacket())) { posLookInstance.reset(); mc.thePlayer.motionX = lastMotX; mc.thePlayer.motionY = lastMotY; mc.thePlayer.motionZ = lastMotZ; debug("should be launched by now"); } else if (matrixSilentValue.get()) { if (hasFell && !flagged) { if (packetPlayer.isMoving()) { debug("modifying packet: rotate false, onGround false, moving enabled, x, y, z set to expected speed"); packetPlayer.onGround = false; double[] data = MovementUtils.getXZDist(matrixBoostValue.get(), packetPlayer.rotating ? packetPlayer.yaw : mc.thePlayer.rotationYaw); lastMotX = data[0]; lastMotZ = data[1]; lastMotY = matrixHeightValue.get(); packetPlayer.x += lastMotX; packetPlayer.y += lastMotY; packetPlayer.z += lastMotZ; } } } } } if (event.getPacket() instanceof S08PacketPlayerPosLook && mode.equalsIgnoreCase("matrixflag") && hasFell) { debug("flag check started"); flagged = true; posLookInstance.set((S08PacketPlayerPosLook) event.getPacket()); if (!matrixSilentValue.get()) { debug("data saved"); lastMotX = mc.thePlayer.motionX; lastMotY = mc.thePlayer.motionY; lastMotZ = mc.thePlayer.motionZ; } } } @EventTarget(ignoreCondition = true) public void onJump(final JumpEvent event) { jumped = true; canBoost = true; teleported = false; if(getState()) { switch(modeValue.get().toLowerCase()) { case "mineplex": event.setMotion(event.getMotion() * 4.08f); break; case "mineplex2": if(mc.thePlayer.isCollidedHorizontally) { event.setMotion(2.31f); canMineplexBoost = true; mc.thePlayer.onGround = false; } break; case "aacv4": event.setMotion(event.getMotion() * 1.0799F); break; } } } private int getPearlSlot() { for(int i = 36; i < 45; ++i) { ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if (stack != null && stack.getItem() instanceof ItemEnderPearl) { return i - 36; } } return -1; } public void onDisable(){ mc.timer.timerSpeed = 1.0F; mc.thePlayer.speedInAir = 0.02F; } @Override public String getTag() { return modeValue.get(); } }
23,942
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Sneak.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/Sneak.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.event.EventState; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.MotionEvent; 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.MovementUtils; import net.ccbluex.liquidbounce.utils.timer.MSTimer; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.client.settings.GameSettings; import net.minecraft.network.play.client.C0BPacketEntityAction; @ModuleInfo(name = "Sneak", description = "Automatically sneaks all the time.", category = ModuleCategory.MOVEMENT) public class Sneak extends Module { public final ListValue modeValue = new ListValue("Mode", new String[] {"Legit", "Packet", "Switch", "MineSecure", "AAC3.6.4"}, "MineSecure"); public final BoolValue stopMoveValue = new BoolValue("StopMove", false); private boolean sneaked; @Override public void onEnable() { if(mc.thePlayer == null) return; if("packet".equalsIgnoreCase(modeValue.get())) { mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.START_SNEAKING)); } } @EventTarget public void onMotion(final MotionEvent event) { if(stopMoveValue.get() && MovementUtils.isMoving()) { if(sneaked) { onDisable(); sneaked = false; } return; } sneaked = true; switch(modeValue.get().toLowerCase()) { case "legit": mc.gameSettings.keyBindSneak.pressed = true; break; case "switch": switch(event.getEventState()) { case PRE: if (!MovementUtils.isMoving()) return; mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.START_SNEAKING)); mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.STOP_SNEAKING)); break; case POST: mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.STOP_SNEAKING)); mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.START_SNEAKING)); break; } break; case "minesecure": if(event.getEventState() == EventState.PRE) break; mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.START_SNEAKING)); break; case "aac3.6.4": mc.gameSettings.keyBindSneak.pressed = true; if(mc.thePlayer.onGround){ MovementUtils.strafe(MovementUtils.getSpeed() * 1.251F); }else{ MovementUtils.strafe(MovementUtils.getSpeed() * 1.03F); } break; } } @Override public void onDisable() { if(mc.thePlayer == null) return; switch(modeValue.get().toLowerCase()) { case "legit": case "packet": case "switch": case "aac3.6.4": if(!GameSettings.isKeyDown(mc.gameSettings.keyBindSneak)) mc.gameSettings.keyBindSneak.pressed = false; break; case "minesecure": mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.STOP_SNEAKING)); break; } super.onDisable(); } }
4,276
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
BowJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/BowJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.event.UpdateEvent; import net.ccbluex.liquidbounce.event.PacketEvent; import net.ccbluex.liquidbounce.event.Render2DEvent; import net.ccbluex.liquidbounce.event.WorldEvent; 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.ui.client.hud.element.elements.Notification; import net.ccbluex.liquidbounce.ui.font.Fonts; import net.ccbluex.liquidbounce.utils.ClientUtils; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.PacketUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.value.*; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.network.play.client.*; import net.minecraft.init.Items; import net.minecraft.item.ItemBow; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.BlockPos; import java.awt.Color; @ModuleInfo(name = "BowJump", spacedName = "Bow Jump", description = "Allows you to jump further with auto bow shoot.", category = ModuleCategory.MOVEMENT) public class BowJump extends Module { private final FloatValue boostValue = new FloatValue("Boost", 4.25F, 0F, 10F, "x"); private final FloatValue heightValue = new FloatValue("Height", 0.42F, 0F, 10F, "m"); private final FloatValue timerValue = new FloatValue("Timer", 1F, 0.1F, 10F, "x"); private final IntegerValue delayBeforeLaunch = new IntegerValue("DelayBeforeArrowLaunch", 1, 1, 20, " tick"); private final BoolValue autoDisable = new BoolValue("AutoDisable", true); private final BoolValue renderValue = new BoolValue("RenderStatus", true); private int bowState = 0; private long lastPlayerTick = 0; private int lastSlot = -1; public void onEnable() { if (mc.thePlayer == null) return; bowState = 0; lastPlayerTick = -1; lastSlot = mc.thePlayer.inventory.currentItem; MovementUtils.strafe(0); } @EventTarget public void onMove(MoveEvent event) { if (mc.thePlayer.onGround && bowState < 3) event.cancelEvent(); } @EventTarget public void onPacket(PacketEvent event) { if (event.getPacket() instanceof C09PacketHeldItemChange) { C09PacketHeldItemChange c09 = (C09PacketHeldItemChange) event.getPacket(); lastSlot = c09.getSlotId(); event.cancelEvent(); } if (event.getPacket() instanceof C03PacketPlayer) { C03PacketPlayer c03 = (C03PacketPlayer) event.getPacket(); if (bowState < 3) c03.setMoving(false); } } @EventTarget public void onUpdate(UpdateEvent event) { mc.timer.timerSpeed = 1F; boolean forceDisable = false; switch (bowState) { case 0: int slot = getBowSlot(); if (slot < 0 || !mc.thePlayer.inventory.hasItem(Items.arrow)) { LiquidBounce.hud.addNotification(new Notification("No arrows or bow found in your inventory!", Notification.Type.ERROR)); forceDisable = true; bowState = 5; break; // nothing to shoot } else if (lastPlayerTick == -1) { ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(slot + 36).getStack(); if (lastSlot != slot) PacketUtils.sendPacketNoEvent(new C09PacketHeldItemChange(slot)); PacketUtils.sendPacketNoEvent(new C08PacketPlayerBlockPlacement(new BlockPos(-1, -1, -1), 255, mc.thePlayer.inventoryContainer.getSlot(slot + 36).getStack(), 0, 0, 0)); lastPlayerTick = mc.thePlayer.ticksExisted; bowState = 1; } break; case 1: int reSlot = getBowSlot(); if (mc.thePlayer.ticksExisted - lastPlayerTick > delayBeforeLaunch.get()) { PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C05PacketPlayerLook(mc.thePlayer.rotationYaw, -90, mc.thePlayer.onGround)); PacketUtils.sendPacketNoEvent(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN)); if (lastSlot != reSlot) PacketUtils.sendPacketNoEvent(new C09PacketHeldItemChange(lastSlot)); bowState = 2; } break; case 2: if (mc.thePlayer.hurtTime > 0) bowState = 3; break; case 3: MovementUtils.strafe(boostValue.get()); mc.thePlayer.motionY = heightValue.get(); bowState = 4; lastPlayerTick = mc.thePlayer.ticksExisted; break; case 4: mc.timer.timerSpeed = timerValue.get(); if (mc.thePlayer.onGround && mc.thePlayer.ticksExisted - lastPlayerTick >= 1) bowState = 5; break; } if (bowState < 3) { mc.thePlayer.movementInput.moveForward = 0F; mc.thePlayer.movementInput.moveStrafe = 0F; } if (bowState == 5 && (autoDisable.get() || forceDisable)) this.setState(false); } @EventTarget public void onWorld(WorldEvent event) { this.setState(false); //prevent weird things } public void onDisable(){ mc.timer.timerSpeed = 1.0F; mc.thePlayer.speedInAir = 0.02F; } private int getBowSlot() { for(int i = 36; i < 45; ++i) { ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if (stack != null && stack.getItem() instanceof ItemBow) { return i - 36; } } return -1; } @EventTarget public void onRender2D(final Render2DEvent event) { if (!renderValue.get()) return; ScaledResolution scaledRes = new ScaledResolution(mc); float width = (float) bowState / 5F * 60F; Fonts.font40.drawCenteredString(getBowStatus(), scaledRes.getScaledWidth() / 2F, scaledRes.getScaledHeight() / 2F + 14F, -1, true); RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 31F, scaledRes.getScaledHeight() / 2F + 25F, scaledRes.getScaledWidth() / 2F + 31F, scaledRes.getScaledHeight() / 2F + 29F, 0xA0000000); RenderUtils.drawRect(scaledRes.getScaledWidth() / 2F - 30F, scaledRes.getScaledHeight() / 2F + 26F, scaledRes.getScaledWidth() / 2F - 30F + width, scaledRes.getScaledHeight() / 2F + 28F, getStatusColor()); } public String getBowStatus() { switch (bowState) { case 0: return "Idle..."; case 1: return "Preparing..."; case 2: return "Waiting for damage..."; case 3: case 4: return "Boost!"; default: return "Task completed."; } } public Color getStatusColor() { switch (bowState) { case 0: return new Color(21, 21, 21); case 1: return new Color(48, 48, 48); case 2: return Color.yellow; case 3: case 4: return Color.green; default: return new Color(0, 111, 255); } } }
7,866
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SpeedMode.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/SpeedMode.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.utils.MinecraftInstance; public abstract class SpeedMode extends MinecraftInstance { public final String modeName; public SpeedMode(final String modeName) { this.modeName = modeName; } public boolean isActive() { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); return speed != null && !mc.thePlayer.isSneaking() && speed.getState() && speed.getModeName().equals(modeName); } public abstract void onMotion(); public void onMotion(MotionEvent eventMotion) { }; public abstract void onUpdate(); public abstract void onMove(final MoveEvent event); public void onJump(JumpEvent event) { }; public void onTick() { } public void onEnable() { } public void onDisable() { } }
1,246
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACYPort2.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACYPort2.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACYPort2 extends SpeedMode { public AACYPort2() { super("AACYPort2"); } @Override public void onMotion() { if(MovementUtils.isMoving()) { mc.thePlayer.cameraPitch = 0F; if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0.3851F; mc.thePlayer.motionX *= 1.01; mc.thePlayer.motionZ *= 1.01; }else mc.thePlayer.motionY = -0.21D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,097
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACLowHop3.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACLowHop3.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACLowHop3 extends SpeedMode { private boolean firstJump; private boolean waitForGround; public AACLowHop3() { super("AACLowHop3"); } @Override public void onEnable() { firstJump = true; } @Override public void onMotion() { if(MovementUtils.isMoving()) { if(mc.thePlayer.hurtTime <= 0) { if(mc.thePlayer.onGround) { waitForGround = false; if(!firstJump) firstJump = true; mc.thePlayer.jump(); mc.thePlayer.motionY = 0.41; }else{ if(waitForGround) return; if(mc.thePlayer.isCollidedHorizontally) return; firstJump = false; mc.thePlayer.motionY -= 0.0149; } if(!mc.thePlayer.isCollidedHorizontally) MovementUtils.forward(firstJump ? 0.0016 : 0.001799); }else{ firstJump = true; waitForGround = true; } }else{ mc.thePlayer.motionZ = 0; mc.thePlayer.motionX = 0; } final double speed = MovementUtils.getSpeed(); mc.thePlayer.motionX = -(Math.sin(MovementUtils.getDirection()) * speed); mc.thePlayer.motionZ = Math.cos(MovementUtils.getDirection()) * speed; } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
2,058
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACLowHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACLowHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACLowHop extends SpeedMode { private boolean legitJump; public AACLowHop() { super("AACLowHop"); } @Override public void onEnable() { legitJump = true; super.onEnable(); } @Override public void onMotion() { if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { if(legitJump) { mc.thePlayer.jump(); legitJump = false; return; } mc.thePlayer.motionY = 0.343F; MovementUtils.strafe(0.534F); } }else{ legitJump = true; mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,333
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
OldAACBHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/OldAACBHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class OldAACBHop extends SpeedMode { public OldAACBHop() { super("OldAACBHop"); } @Override public void onMotion() { if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { MovementUtils.strafe(0.56F); mc.thePlayer.motionY = 0.41999998688697815; }else MovementUtils.strafe(MovementUtils.getSpeed() * ((mc.thePlayer.fallDistance > 0.4F) ? 1.0F : 1.01F)); }else{ mc.thePlayer.motionX = 0.0; mc.thePlayer.motionZ = 0.0; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,150
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC2BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC2BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC2BHop extends SpeedMode { public AAC2BHop() { super("AAC2BHop"); } @Override public void onMotion() { if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionX *= 1.02D; mc.thePlayer.motionZ *= 1.02D; }else if(mc.thePlayer.motionY > -0.2D) { mc.thePlayer.jumpMovementFactor = 0.08F; mc.thePlayer.motionY += 0.0143099999999999999999999999999D; mc.thePlayer.jumpMovementFactor = 0.07F; } }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,347
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACHop350.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACHop350.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACHop350 extends SpeedMode implements Listenable { public AACHop350() { super("AACHop3.5.0"); LiquidBounce.eventManager.registerListener(this); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(final MoveEvent event) { } @EventTarget public void onMotion(final MotionEvent event) { if(event.getEventState() == EventState.POST && MovementUtils.isMoving() && !mc.thePlayer.isInWater() && !mc.thePlayer.isInLava()) { mc.thePlayer.jumpMovementFactor += 0.00208F; if(mc.thePlayer.fallDistance <= 1F) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionX *= 1.0118F; mc.thePlayer.motionZ *= 1.0118F; }else{ mc.thePlayer.motionY -= 0.0147F; mc.thePlayer.motionX *= 1.00138F; mc.thePlayer.motionZ *= 1.00138F; } } } } @Override public void onEnable() { if(mc.thePlayer.onGround) mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02F; } @Override public boolean handleEvents() { return isActive(); } }
1,919
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACLowHop2.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACLowHop2.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACLowHop2 extends SpeedMode { private boolean legitJump; public AACLowHop2() { super("AACLowHop2"); } @Override public void onEnable() { legitJump = true; mc.timer.timerSpeed = 1F; } @Override public void onDisable() { mc.timer.timerSpeed = 1F; } @Override public void onMotion() { mc.timer.timerSpeed = 1F; if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { mc.timer.timerSpeed = 1.09F; if(mc.thePlayer.onGround) { if(legitJump) { mc.thePlayer.jump(); legitJump = false; return; } mc.thePlayer.motionY = 0.343F; MovementUtils.strafe(0.534F); } }else{ legitJump = true; mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,564
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC5BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC5BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC5BHop extends SpeedMode { private boolean legitJump; public AAC5BHop() { super("AAC5BHop"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } @Override public void onTick() { mc.timer.timerSpeed = 1F; if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { if(legitJump) { mc.thePlayer.jump(); legitJump = false; return; } mc.thePlayer.motionY = 0.41; mc.thePlayer.onGround = false; MovementUtils.strafe(0.374F); }else if(mc.thePlayer.motionY < 0D) { mc.thePlayer.speedInAir = 0.0201F; mc.timer.timerSpeed = 1.02F; }else mc.timer.timerSpeed = 1.01F; }else{ legitJump = true; mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } }
1,612
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACYPort.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACYPort.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACYPort extends SpeedMode { public AACYPort() { super("AACYPort"); } @Override public void onMotion() { if(MovementUtils.isMoving() && !mc.thePlayer.isSneaking()) { mc.thePlayer.cameraPitch = 0F; if(mc.thePlayer.onGround) { mc.thePlayer.motionY = 0.3425F; mc.thePlayer.motionX *= 1.5893F; mc.thePlayer.motionZ *= 1.5893F; }else mc.thePlayer.motionY = -0.19D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,092
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACGround2.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACGround2.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AACGround2 extends SpeedMode { public AACGround2() { super("AACGround2"); } @Override public void onMotion() { } @Override public void onUpdate() { if(!MovementUtils.isMoving()) return; mc.timer.timerSpeed = LiquidBounce.moduleManager.getModule(Speed.class).aacGroundTimerValue.get(); MovementUtils.strafe(0.02F); } @Override public void onMove(MoveEvent event) { } @Override public void onDisable() { mc.timer.timerSpeed = 1F; } }
1,132
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC6BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC6BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC6BHop extends SpeedMode { private boolean legitJump; public AAC6BHop() { super("AAC6BHop"); } @Override public void onMotion() { } @Override public void onUpdate() { mc.timer.timerSpeed = 1F; if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { if(legitJump) { mc.thePlayer.motionY = 0.4; MovementUtils.strafe(0.15F); mc.thePlayer.onGround = false; legitJump = false; return; } mc.thePlayer.motionY = 0.41; MovementUtils.strafe(0.47458485F); } if(mc.thePlayer.motionY < 0 && mc.thePlayer.motionY > -0.2) mc.timer.timerSpeed = ((float) (1.2 + mc.thePlayer.motionY)); mc.thePlayer.speedInAir = 0.022151F; }else{ legitJump = true; mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onMove(MoveEvent event) { } @Override public void onEnable() { legitJump = true; } @Override public void onDisable() { mc.timer.timerSpeed = 1F; mc.thePlayer.speedInAir = 0.02F; } }
1,837
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC3BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC3BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC3BHop extends SpeedMode { private boolean legitJump; public AAC3BHop() { super("AAC3BHop"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } @Override public void onTick() { mc.timer.timerSpeed = 1F; if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { if(legitJump) { mc.thePlayer.jump(); legitJump = false; return; } mc.thePlayer.motionY = 0.3852; mc.thePlayer.onGround = false; MovementUtils.strafe(0.374F); }else if(mc.thePlayer.motionY < 0D) { mc.thePlayer.speedInAir = 0.0201F; mc.timer.timerSpeed = 1.02F; }else mc.timer.timerSpeed = 1.01F; }else{ legitJump = true; mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } }
1,614
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC4BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC4BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC4BHop extends SpeedMode { private boolean legitHop; public AAC4BHop() { super("AAC4BHop"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } @Override public void onEnable() { legitHop = true; } @Override public void onDisable() { mc.thePlayer.speedInAir = 0.02F; } @Override public void onTick() { if(MovementUtils.isMoving()) { if(legitHop) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.onGround = false; legitHop = false; } return; } if(mc.thePlayer.onGround) { mc.thePlayer.onGround = false; MovementUtils.strafe(0.375F); mc.thePlayer.jump(); mc.thePlayer.motionY = 0.41; }else mc.thePlayer.speedInAir = 0.0211F; }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; legitHop = true; } } }
1,680
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACHop3313.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACHop3313.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.JumpEvent; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.minecraft.block.BlockCarpet; import net.minecraft.util.MathHelper; public class AACHop3313 extends SpeedMode { public AACHop3313() { super("AACHop3.3.13"); } @Override public void onMotion() { } @Override public void onUpdate() { if (!MovementUtils.isMoving() || mc.thePlayer.isInWater() || mc.thePlayer.isInLava() || mc.thePlayer.isOnLadder() || mc.thePlayer.isRiding() || mc.thePlayer.hurtTime > 0) return; if (mc.thePlayer.onGround && mc.thePlayer.isCollidedVertically) { // MotionXYZ float yawRad = mc.thePlayer.rotationYaw * 0.017453292F; mc.thePlayer.motionX -= MathHelper.sin(yawRad) * 0.202F; mc.thePlayer.motionZ += MathHelper.cos(yawRad) * 0.202F; mc.thePlayer.motionY = 0.405F; LiquidBounce.eventManager.callEvent(new JumpEvent(0.405F)); MovementUtils.strafe(); } else if (mc.thePlayer.fallDistance < 0.31F) { if (BlockUtils.getBlock(mc.thePlayer.getPosition()) instanceof BlockCarpet) // why? return; // Motion XZ mc.thePlayer.jumpMovementFactor = mc.thePlayer.moveStrafing == 0F ? 0.027F : 0.021F; mc.thePlayer.motionX *= 1.001; mc.thePlayer.motionZ *= 1.001; // Motion Y if (!mc.thePlayer.isCollidedHorizontally) mc.thePlayer.motionY -= 0.014999993F; } else mc.thePlayer.jumpMovementFactor = 0.02F; } @Override public void onMove(final MoveEvent event) { } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02F; } }
2,321
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACGround.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACGround.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.network.play.client.C03PacketPlayer; public class AACGround extends SpeedMode { public AACGround() { super("AACGround"); } @Override public void onMotion() { } @Override public void onUpdate() { if(!MovementUtils.isMoving()) return; mc.timer.timerSpeed = LiquidBounce.moduleManager.getModule(Speed.class).aacGroundTimerValue.get(); mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true)); } @Override public void onMove(MoveEvent event) { } @Override public void onDisable() { mc.timer.timerSpeed = 1F; } }
1,301
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC4LongHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC4LongHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC4LongHop extends SpeedMode { public AAC4LongHop() { super("AAC4LongHop"); } @Override public void onMotion() { } @Override public void onUpdate() { if(mc.thePlayer.isInWater()) return; if(!MovementUtils.isMoving()) return; if (mc.thePlayer.onGround) { mc.gameSettings.keyBindJump.pressed = false; mc.thePlayer.jump(); } if (!mc.thePlayer.onGround && mc.thePlayer.fallDistance <= 0.1) { mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1.5F; } if (mc.thePlayer.fallDistance > 0.1 && mc.thePlayer.fallDistance < 1.3) { mc.timer.timerSpeed = 0.7F; } if (mc.thePlayer.fallDistance >= 1.3) { mc.timer.timerSpeed = 1.0F; mc.thePlayer.speedInAir = 0.02F; } } @Override public void onMove(MoveEvent event) { } }
1,498
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC4FastHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC4FastHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC4FastHop extends SpeedMode { public AAC4FastHop() { super("AAC4FastHop"); } @Override public void onMotion() { } @Override public void onUpdate() { if(mc.thePlayer.isInWater()) return; if(!MovementUtils.isMoving()) return; if (mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.speedInAir = 0.0201F; mc.timer.timerSpeed = 0.94F; } if (mc.thePlayer.fallDistance > 0.7 && mc.thePlayer.fallDistance < 1.3) { mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1.8F; } } @Override public void onMove(MoveEvent event) { } }
1,237
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACv4BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACv4BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; public class AACv4BHop extends SpeedMode { public AACv4BHop() { super("AACv4BHop"); } @Override public void onMotion() { if(mc.thePlayer.isInWater()) return; if (mc.thePlayer.moveForward > 0) { if (mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.timer.timerSpeed = 1.6105F; mc.thePlayer.motionX *= 1.0708D; mc.thePlayer.motionZ *= 1.0708D; } else if (mc.thePlayer.fallDistance > 0) { mc.timer.timerSpeed = 0.6F; } } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,138
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACBHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACBHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.util.MathHelper; public class AACBHop extends SpeedMode { public AACBHop() { super("AACBHop"); } @Override public void onMotion() { if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { mc.timer.timerSpeed = 1.08F; if(mc.thePlayer.onGround) { mc.thePlayer.motionY = 0.399D; float f = mc.thePlayer.rotationYaw * 0.017453292F; mc.thePlayer.motionX -= MathHelper.sin(f) * 0.2F; mc.thePlayer.motionZ += MathHelper.cos(f) * 0.2F; mc.timer.timerSpeed = 2F; }else{ mc.thePlayer.motionY *= 0.97D; mc.thePlayer.motionX *= 1.008D; mc.thePlayer.motionZ *= 1.008D; } }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; mc.timer.timerSpeed = 1F; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } @Override public void onDisable() { mc.timer.timerSpeed = 1F; } }
1,623
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AACPort.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AACPort.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.minecraft.block.BlockAir; import net.minecraft.network.play.client.C03PacketPlayer; import net.minecraft.util.BlockPos; import net.minecraft.util.MathHelper; public class AACPort extends SpeedMode { public AACPort() { super("AACPort"); } @Override public void onMotion() { } @Override public void onUpdate() { if(!MovementUtils.isMoving()) return; final float f = mc.thePlayer.rotationYaw * 0.017453292F; for (double d = 0.2; d <= LiquidBounce.moduleManager.getModule(Speed.class).portMax.get(); d += 0.2) { final double x = mc.thePlayer.posX - MathHelper.sin(f) * d; final double z = mc.thePlayer.posZ + MathHelper.cos(f) * d; if(mc.thePlayer.posY < (int) mc.thePlayer.posY + 0.5 && !(BlockUtils.getBlock(new BlockPos(x, mc.thePlayer.posY, z)) instanceof BlockAir)) break; mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, mc.thePlayer.posY, z, true)); } } @Override public void onMove(MoveEvent event) { } }
1,752
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AAC7BHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/aac/AAC7BHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.aac; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class AAC7BHop extends SpeedMode { public AAC7BHop() { super("AAC7BHop"); } @Override public void onMotion() { } @Override public void onUpdate() { if(!MovementUtils.isMoving() || mc.thePlayer.ridingEntity != null || mc.thePlayer.hurtTime > 0) return; if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0.405; mc.thePlayer.motionX *= 1.004; mc.thePlayer.motionZ *= 1.004; return; } final double speed = MovementUtils.getSpeed() * 1.0072D; final double yaw = Math.toRadians(mc.thePlayer.rotationYaw); mc.thePlayer.motionX = -Math.sin(yaw) * speed; mc.thePlayer.motionZ = Math.cos(yaw) * speed; } @Override public void onMove(MoveEvent event) { } }
1,314
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SNCPBHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/SNCPBHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.potion.Potion; import net.minecraft.util.MovementInput; import java.math.BigDecimal; import java.math.RoundingMode; public class SNCPBHop extends SpeedMode { private int level = 1; private double moveSpeed = 0.2873; private double lastDist; private int timerDelay; public SNCPBHop() { super("SNCPBHop"); } @Override public void onEnable() { mc.timer.timerSpeed = 1F; lastDist = 0; moveSpeed = 0; level = 4; } @Override public void onDisable() { mc.timer.timerSpeed = 1F; moveSpeed = getBaseMoveSpeed(); level = 0; } @Override public void onMotion() { final double xDist = mc.thePlayer.posX - mc.thePlayer.prevPosX; final double zDist = mc.thePlayer.posZ - mc.thePlayer.prevPosZ; lastDist = Math.sqrt(xDist * xDist + zDist * zDist); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { ++timerDelay; timerDelay %= 5; if(timerDelay != 0) { mc.timer.timerSpeed = 1F; }else{ if(MovementUtils.isMoving()) mc.timer.timerSpeed = 32767F; if(MovementUtils.isMoving()) { mc.timer.timerSpeed = 1.3F; mc.thePlayer.motionX *= 1.0199999809265137; mc.thePlayer.motionZ *= 1.0199999809265137; } } if(mc.thePlayer.onGround && MovementUtils.isMoving()) level = 2; if(round(mc.thePlayer.posY - (double) ((int) mc.thePlayer.posY)) == round(0.138)) { mc.thePlayer.motionY -= 0.08; event.setY(event.getY() - 0.09316090325960147); mc.thePlayer.posY -= 0.09316090325960147; } if(level == 1 && (mc.thePlayer.moveForward != 0.0f || mc.thePlayer.moveStrafing != 0.0f)) { level = 2; moveSpeed = 1.35 * getBaseMoveSpeed() - 0.01; }else if(level == 2) { level = 3; mc.thePlayer.motionY = 0.399399995803833; event.setY(0.399399995803833); moveSpeed *= 2.149; }else if(level == 3) { level = 4; double difference = 0.66 * (lastDist - getBaseMoveSpeed()); moveSpeed = lastDist - difference; }else if(level == 88) { moveSpeed = getBaseMoveSpeed(); lastDist = 0; level = 89; }else if(level == 89) { if(mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0.0, mc.thePlayer.motionY, 0.0)).size() > 0 || mc.thePlayer.isCollidedVertically) level = 1; lastDist = 0; moveSpeed = getBaseMoveSpeed(); return; }else{ if(mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0.0, mc.thePlayer.motionY, 0.0)).size() > 0 || mc.thePlayer.isCollidedVertically) { moveSpeed = getBaseMoveSpeed(); lastDist = 0; level = 88; return; } moveSpeed = lastDist - lastDist / 159.0; } moveSpeed = Math.max(moveSpeed, getBaseMoveSpeed()); final MovementInput movementInput = mc.thePlayer.movementInput; float forward = movementInput.moveForward; float strafe = movementInput.moveStrafe; float yaw = mc.thePlayer.rotationYaw; if(forward == 0.0f && strafe == 0.0f) { event.setX(0.0); event.setZ(0.0); }else if(forward != 0.0f) { if(strafe >= 1.0f) { yaw += (float) (forward > 0.0f ? -45 : 45); strafe = 0.0f; }else if(strafe <= -1.0f) { yaw += (float) (forward > 0.0f ? 45 : -45); strafe = 0.0f; } if(forward > 0.0f) { forward = 1.0f; }else if(forward < 0.0f) { forward = -1.0f; } } final double mx2 = Math.cos(Math.toRadians(yaw + 90.0f)); final double mz2 = Math.sin(Math.toRadians(yaw + 90.0f)); event.setX((double) forward * moveSpeed * mx2 + (double) strafe * moveSpeed * mz2); event.setZ((double) forward * moveSpeed * mz2 - (double) strafe * moveSpeed * mx2); mc.thePlayer.stepHeight = 0.6F; if(forward == 0.0F && strafe == 0.0F) { event.setX(0.0); event.setZ(0.0); } } private double getBaseMoveSpeed() { double baseSpeed = 0.2873; if(mc.thePlayer.isPotionActive(Potion.moveSpeed)) baseSpeed *= 1.0 + 0.2 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier() + 1); return baseSpeed; } private double round(double value) { BigDecimal bigDecimal = new BigDecimal(value); bigDecimal = bigDecimal.setScale(3, RoundingMode.HALF_UP); return bigDecimal.doubleValue(); } }
5,511
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
YPort2.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/YPort2.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class YPort2 extends SpeedMode { public YPort2() { super("YPort2"); } @Override public void onMotion() { if(mc.thePlayer.isOnLadder() || mc.thePlayer.isInWater() || mc.thePlayer.isInLava() || mc.thePlayer.isInWeb || !MovementUtils.isMoving()) return; if(mc.thePlayer.onGround) mc.thePlayer.jump(); else mc.thePlayer.motionY = -1D; MovementUtils.strafe(); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,034
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Boost.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/Boost.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.util.AxisAlignedBB; public class Boost extends SpeedMode { public Boost() { super("Boost"); } private int motionDelay; private float ground; @Override public void onMotion() { double speed = 3.1981D; double offset = 4.69D; boolean shouldOffset = true; for(final Object o : mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(mc.thePlayer.motionX / offset, 0.0D, mc.thePlayer.motionZ / offset))) { if(o instanceof AxisAlignedBB) { shouldOffset = false; break; } } if(mc.thePlayer.onGround && ground < 1.0F) ground += 0.2F; if(!mc.thePlayer.onGround) ground = 0.0F; if(ground == 1.0F && shouldSpeedUp()) { if(!mc.thePlayer.isSprinting()) offset += 0.8D; if(mc.thePlayer.moveStrafing != 0F) { speed -= 0.1D; offset += 0.5D; } if(mc.thePlayer.isInWater()) speed -= 0.1D; motionDelay += 1; switch(motionDelay) { case 1: mc.thePlayer.motionX *= speed; mc.thePlayer.motionZ *= speed; break; case 2: mc.thePlayer.motionX /= 1.458D; mc.thePlayer.motionZ /= 1.458D; break; case 4: if(shouldOffset) mc.thePlayer.setPosition(mc.thePlayer.posX + mc.thePlayer.motionX / offset, mc.thePlayer.posY, mc.thePlayer.posZ + mc.thePlayer.motionZ / offset); motionDelay = 0; break; } } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } private boolean shouldSpeedUp() { return !mc.thePlayer.isInWater() && (!mc.thePlayer.isOnLadder()) && !mc.thePlayer.isSneaking() && MovementUtils.isMoving(); } }
2,575
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
NCPBHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/NCPBHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.potion.Potion; import net.minecraft.util.MovementInput; import java.math.BigDecimal; import java.math.RoundingMode; public class NCPBHop extends SpeedMode { private int level = 1; private double moveSpeed = 0.2873; private double lastDist; private int timerDelay; public NCPBHop() { super("NCPBHop"); } @Override public void onEnable() { mc.timer.timerSpeed = 1F; level = mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0.0, mc.thePlayer.motionY, 0.0)).size() > 0 || mc.thePlayer.isCollidedVertically ? 1 : 4; } @Override public void onDisable() { mc.timer.timerSpeed = 1F; moveSpeed = getBaseMoveSpeed(); level = 0; } @Override public void onMotion() { double xDist = mc.thePlayer.posX - mc.thePlayer.prevPosX; double zDist = mc.thePlayer.posZ - mc.thePlayer.prevPosZ; lastDist = Math.sqrt(xDist * xDist + zDist * zDist); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { ++timerDelay; timerDelay %= 5; if(timerDelay != 0) { mc.timer.timerSpeed = 1F; }else{ if(MovementUtils.isMoving()) mc.timer.timerSpeed = 32767F; if(MovementUtils.isMoving()) { mc.timer.timerSpeed = 1.3F; mc.thePlayer.motionX *= 1.0199999809265137; mc.thePlayer.motionZ *= 1.0199999809265137; } } if(mc.thePlayer.onGround && MovementUtils.isMoving()) level = 2; if(round(mc.thePlayer.posY - (double) ((int) mc.thePlayer.posY)) == round(0.138)) { EntityPlayerSP thePlayer = mc.thePlayer; thePlayer.motionY -= 0.08; event.setY(event.getY() - 0.09316090325960147); thePlayer.posY -= 0.09316090325960147; } if(level == 1 && (mc.thePlayer.moveForward != 0.0f || mc.thePlayer.moveStrafing != 0.0f)) { level = 2; moveSpeed = 1.35 * getBaseMoveSpeed() - 0.01; }else if(level == 2) { level = 3; mc.thePlayer.motionY = 0.399399995803833; event.setY(0.399399995803833); moveSpeed *= 2.149; }else if(level == 3) { level = 4; double difference = 0.66 * (lastDist - getBaseMoveSpeed()); moveSpeed = lastDist - difference; }else{ if(mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0.0, mc.thePlayer.motionY, 0.0)).size() > 0 || mc.thePlayer.isCollidedVertically) level = 1; moveSpeed = lastDist - lastDist / 159.0; } moveSpeed = Math.max(moveSpeed, getBaseMoveSpeed()); final MovementInput movementInput = mc.thePlayer.movementInput; float forward = movementInput.moveForward; float strafe = movementInput.moveStrafe; float yaw = mc.thePlayer.rotationYaw; if(forward == 0.0f && strafe == 0.0f) { event.setX(0.0); event.setZ(0.0); }else if(forward != 0.0f) { if(strafe >= 1.0f) { yaw += (float) (forward > 0.0f ? -45 : 45); strafe = 0.0f; }else if(strafe <= -1.0f) { yaw += (float) (forward > 0.0f ? 45 : -45); strafe = 0.0f; } if(forward > 0.0f) { forward = 1.0f; }else if(forward < 0.0f) { forward = -1.0f; } } final double mx2 = Math.cos(Math.toRadians(yaw + 90.0f)); final double mz2 = Math.sin(Math.toRadians(yaw + 90.0f)); event.setX((double) forward * moveSpeed * mx2 + (double) strafe * moveSpeed * mz2); event.setZ((double) forward * moveSpeed * mz2 - (double) strafe * moveSpeed * mx2); mc.thePlayer.stepHeight = 0.6F; if(forward == 0.0F && strafe == 0.0F) { event.setX(0.0); event.setZ(0.0); } } private double getBaseMoveSpeed() { double baseSpeed = 0.2873; if(mc.thePlayer.isPotionActive(Potion.moveSpeed)) baseSpeed *= 1.0 + 0.2 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier() + 1); return baseSpeed; } private double round(double value) { BigDecimal bigDecimal = new BigDecimal(value); bigDecimal = bigDecimal.setScale(3, RoundingMode.HALF_UP); return bigDecimal.doubleValue(); } }
5,143
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
YPort.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/YPort.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.block.Block; import net.minecraft.block.BlockAir; import net.minecraft.block.material.Material; import net.minecraft.potion.Potion; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.MathHelper; import java.math.BigDecimal; import java.math.RoundingMode; public class YPort extends SpeedMode { private double moveSpeed = 0.2873D; private int level = 1; private double lastDist; private int timerDelay; private boolean safeJump; public YPort() { super("YPort"); } @Override public void onMotion() { if(!safeJump && !mc.gameSettings.keyBindJump.isKeyDown() && !mc.thePlayer.isOnLadder() && !mc.thePlayer.isInsideOfMaterial(Material.water) && !mc.thePlayer.isInsideOfMaterial(Material.lava) && !mc.thePlayer.isInWater() && ((!(this.getBlock(-1.1) instanceof BlockAir) && !(this.getBlock(-1.1) instanceof BlockAir)) || (!(this.getBlock(-0.1) instanceof BlockAir) && mc.thePlayer.motionX != 0.0 && mc.thePlayer.motionZ != 0.0 && !mc.thePlayer.onGround && mc.thePlayer.fallDistance < 3.0f && mc.thePlayer.fallDistance > 0.05)) && this.level == 3) mc.thePlayer.motionY = -0.3994; double xDist = mc.thePlayer.posX - mc.thePlayer.prevPosX; double zDist = mc.thePlayer.posZ - mc.thePlayer.prevPosZ; this.lastDist = Math.sqrt(xDist * xDist + zDist * zDist); if(!MovementUtils.isMoving()) safeJump = true; else if(mc.thePlayer.onGround) safeJump = false; } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { this.timerDelay += 1; this.timerDelay %= 5; if(this.timerDelay != 0) { mc.timer.timerSpeed = 1F; }else{ if(MovementUtils.hasMotion()) mc.timer.timerSpeed = 32767F; if(MovementUtils.hasMotion()) { mc.timer.timerSpeed = 1.3F; mc.thePlayer.motionX *= 1.0199999809265137D; mc.thePlayer.motionZ *= 1.0199999809265137D; } } if(mc.thePlayer.onGround && MovementUtils.hasMotion()) this.level = 2; if(round(mc.thePlayer.posY - (int) mc.thePlayer.posY) == round(0.138D)) { mc.thePlayer.motionY -= 0.08D; event.setY(event.getY() - 0.09316090325960147D); mc.thePlayer.posY -= 0.09316090325960147D; } if(this.level == 1 && (mc.thePlayer.moveForward != 0.0F || mc.thePlayer.moveStrafing != 0.0F)) { this.level = 2; this.moveSpeed = (1.38D * getBaseMoveSpeed() - 0.01D); }else if(this.level == 2) { this.level = 3; mc.thePlayer.motionY = 0.399399995803833D; event.setY(0.399399995803833D); this.moveSpeed *= 2.149D; }else if(this.level == 3) { this.level = 4; double difference = 0.66D * (this.lastDist - getBaseMoveSpeed()); this.moveSpeed = (this.lastDist - difference); }else{ if((mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0.0D, mc.thePlayer.motionY, 0.0D)).size() > 0) || (mc.thePlayer.isCollidedVertically)) this.level = 1; this.moveSpeed = (this.lastDist - this.lastDist / 159.0D); } this.moveSpeed = Math.max(this.moveSpeed, getBaseMoveSpeed()); float forward = mc.thePlayer.movementInput.moveForward; float strafe = mc.thePlayer.movementInput.moveStrafe; float yaw = mc.thePlayer.rotationYaw; if(forward == 0F && strafe == 0F) { event.setX(0D); event.setZ(0D); }else if(forward != 0F) { if(strafe >= 1F) { yaw += (forward > 0F ? -45 : 45); strafe = 0F; }else if(strafe <= -1.0F) { yaw += (forward > 0F ? 45 : -45); strafe = 0F; } if(forward > 0F) forward = 1F; else if(forward < 0F) forward = -1F; } final double mx = Math.cos(Math.toRadians(yaw + 90.0F)); final double mz = Math.sin(Math.toRadians(yaw + 90.0F)); event.setX((forward * this.moveSpeed * mx + strafe * this.moveSpeed * mz)); event.setZ((forward * this.moveSpeed * mz - strafe * this.moveSpeed * mx)); mc.thePlayer.stepHeight = 0.6F; if(forward == 0F && strafe == 0F) { event.setX(0D); event.setZ(0D); } } private double getBaseMoveSpeed() { double baseSpeed = 0.2873; if(mc.thePlayer.isPotionActive(Potion.moveSpeed)) { int amplifier = mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier(); baseSpeed *= 1.0 + 0.2 * (amplifier + 1); } return baseSpeed; } private Block getBlock(AxisAlignedBB axisAlignedBB) { for(int x = MathHelper.floor_double(axisAlignedBB.minX); x < MathHelper.floor_double(axisAlignedBB.maxX) + 1; ++x) { for(int z = MathHelper.floor_double(axisAlignedBB.minZ); z < MathHelper.floor_double(axisAlignedBB.maxZ) + 1; ++z) { final Block block = mc.theWorld.getBlockState(new BlockPos(x, (int) axisAlignedBB.minY, z)).getBlock(); if(block != null) return block; } } return null; } private Block getBlock(double offset) { return this.getBlock(mc.thePlayer.getEntityBoundingBox().offset(0.0, offset, 0.0)); } private double round(double value) { BigDecimal bd = new BigDecimal(value); bd = bd.setScale(3, RoundingMode.HALF_UP); return bd.doubleValue(); } }
6,284
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
NCPFHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/NCPFHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class NCPFHop extends SpeedMode { public NCPFHop() { super("NCPFHop"); } @Override public void onEnable() { mc.timer.timerSpeed = 1.0866F; super.onEnable(); } @Override public void onDisable() { mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1F; super.onDisable(); } @Override public void onMotion() { } @Override public void onUpdate() { if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionX *= 1.01D; mc.thePlayer.motionZ *= 1.01D; mc.thePlayer.speedInAir = 0.0223F; } mc.thePlayer.motionY -= 0.00099999D; MovementUtils.strafe(); }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onMove(MoveEvent event) { } }
1,453
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
OnGround.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/OnGround.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class OnGround extends SpeedMode { public OnGround() { super("OnGround"); } @Override public void onMotion() { if(!MovementUtils.isMoving()) return; if(mc.thePlayer.fallDistance > 3.994) return; if(mc.thePlayer.isInWater() || mc.thePlayer.isOnLadder() || mc.thePlayer.isCollidedHorizontally) return; mc.thePlayer.posY -= 0.3993000090122223; mc.thePlayer.motionY = -1000.0; mc.thePlayer.cameraPitch = 0.3F; mc.thePlayer.distanceWalkedModified = 44.0F; mc.timer.timerSpeed = 1F; if(mc.thePlayer.onGround) { mc.thePlayer.posY += 0.3993000090122223; mc.thePlayer.motionY = 0.3993000090122223; mc.thePlayer.distanceWalkedOnStepModified = 44.0f; mc.thePlayer.motionX *= 1.590000033378601; mc.thePlayer.motionZ *= 1.590000033378601; mc.thePlayer.cameraPitch = 0.0f; mc.timer.timerSpeed = 1.199F; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,603
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Frame.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/Frame.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.timer.TickTimer; public class Frame extends SpeedMode { public Frame() { super("Frame"); } private int motionTicks; private boolean move; private final TickTimer tickTimer = new TickTimer(); @Override public void onMotion() { if(mc.thePlayer.movementInput.moveForward > 0.0f || mc.thePlayer.movementInput.moveStrafe > 0.0f) { final double speed = 4.25; if(mc.thePlayer.onGround) { mc.thePlayer.jump(); if(motionTicks == 1) { tickTimer.reset(); if(move) { mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; move = false; } motionTicks = 0; }else motionTicks = 1; }else if(!move && motionTicks == 1 && tickTimer.hasTimePassed(5)) { mc.thePlayer.motionX *= speed; mc.thePlayer.motionZ *= speed; move = true; } if(!mc.thePlayer.onGround) MovementUtils.strafe(); tickTimer.update(); } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,808
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MiJump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/MiJump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class MiJump extends SpeedMode { public MiJump() { super("MiJump"); } @Override public void onMotion() { if(!MovementUtils.isMoving()) return; if(mc.thePlayer.onGround && !mc.thePlayer.movementInput.jump) { mc.thePlayer.motionY += 0.1; final double multiplier = 1.8; mc.thePlayer.motionX *= multiplier; mc.thePlayer.motionZ *= multiplier; final double currentSpeed = Math.sqrt(Math.pow(mc.thePlayer.motionX, 2) + Math.pow(mc.thePlayer.motionZ, 2)); final double maxSpeed = 0.66; if(currentSpeed > maxSpeed) { mc.thePlayer.motionX = mc.thePlayer.motionX / currentSpeed * maxSpeed; mc.thePlayer.motionZ = mc.thePlayer.motionZ / currentSpeed * maxSpeed; } } MovementUtils.strafe(); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,464
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
NCPYPort.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/NCPYPort.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.util.MathHelper; public class NCPYPort extends SpeedMode { private int jumps; public NCPYPort() { super("NCPYPort"); } @Override public void onMotion() { if(mc.thePlayer.isOnLadder() || mc.thePlayer.isInWater() || mc.thePlayer.isInLava() || mc.thePlayer.isInWeb || !MovementUtils.isMoving() || mc.thePlayer.isInWater()) return; if(jumps >= 4 && mc.thePlayer.onGround) jumps = 0; if(mc.thePlayer.onGround) { mc.thePlayer.motionY = jumps <= 1 ? 0.42F : 0.4F; float f = mc.thePlayer.rotationYaw * 0.017453292F; mc.thePlayer.motionX -= MathHelper.sin(f) * 0.2F; mc.thePlayer.motionZ += MathHelper.cos(f) * 0.2F; jumps++; }else if(jumps <= 1) mc.thePlayer.motionY = -5D; MovementUtils.strafe(); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,458
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
NCPHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/ncp/NCPHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.ncp; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class NCPHop extends SpeedMode { public NCPHop() { super("NCPHop"); } @Override public void onEnable() { mc.timer.timerSpeed = 1.0865F; super.onEnable(); } @Override public void onDisable() { mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1F; super.onDisable(); } @Override public void onMotion() { } @Override public void onUpdate() { if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.speedInAir = 0.0223F; } MovementUtils.strafe(); }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onMove(MoveEvent event) { } }
1,303
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SpectreLowHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/spectre/SpectreLowHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spectre; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class SpectreLowHop extends SpeedMode { public SpectreLowHop() { super("SpectreLowHop"); } @Override public void onMotion() { if(!MovementUtils.isMoving() || mc.thePlayer.movementInput.jump) return; if(mc.thePlayer.onGround) { MovementUtils.strafe(1.1F); mc.thePlayer.motionY = 0.15D; return; } MovementUtils.strafe(); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,013
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SpectreBHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/spectre/SpectreBHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spectre; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class SpectreBHop extends SpeedMode { public SpectreBHop() { super("SpectreBHop"); } @Override public void onMotion() { if(!MovementUtils.isMoving() || mc.thePlayer.movementInput.jump) return; if(mc.thePlayer.onGround) { MovementUtils.strafe(1.1F); mc.thePlayer.motionY = 0.44D; return; } MovementUtils.strafe(); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,007
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SpectreOnGround.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/spectre/SpectreOnGround.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spectre; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.util.MathHelper; public class SpectreOnGround extends SpeedMode { private int speedUp; public SpectreOnGround() { super("SpectreOnGround"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { if(!MovementUtils.isMoving() || mc.thePlayer.movementInput.jump) return; if(speedUp >= 10) { if(mc.thePlayer.onGround) { mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; speedUp = 0; } return; } if(mc.thePlayer.onGround && mc.gameSettings.keyBindForward.isKeyDown()) { final float f = mc.thePlayer.rotationYaw * 0.017453292F; mc.thePlayer.motionX -= MathHelper.sin(f) * 0.145F; mc.thePlayer.motionZ += MathHelper.cos(f) * 0.145F; event.setX(mc.thePlayer.motionX); event.setY(0.005); event.setZ(mc.thePlayer.motionZ); speedUp++; } } }
1,566
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
HypixelStable.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/hypixel/HypixelStable.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.hypixel; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.TargetStrafe; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class HypixelStable extends SpeedMode { public HypixelStable() { super("HypixelStable"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { mc.timer.timerSpeed = 1F; final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null) return; final TargetStrafe targetStrafe = LiquidBounce.moduleManager.getModule(TargetStrafe.class); if (targetStrafe == null) return; if(MovementUtils.isMoving() && !(mc.thePlayer.isInWater() || mc.thePlayer.isInLava()) && !mc.gameSettings.keyBindJump.isKeyDown()) { double moveSpeed = Math.max(MovementUtils.getBaseMoveSpeed() * speed.baseStrengthValue.get(), MovementUtils.getSpeed()); if (mc.thePlayer.onGround) { if (speed.sendJumpValue.get()) mc.thePlayer.jump(); if (speed.recalcValue.get()) moveSpeed = Math.max(MovementUtils.getBaseMoveSpeed() * speed.baseStrengthValue.get(), MovementUtils.getSpeed()); event.setY(mc.thePlayer.motionY = MovementUtils.getJumpBoostModifier((mc.thePlayer.isCollidedHorizontally ? 0.42 : speed.jumpYValue.get()))); moveSpeed *= speed.moveSpeedValue.get(); } else if (speed.glideStrengthValue.get() > 0 && event.getY() < 0) { event.setY(mc.thePlayer.motionY += speed.glideStrengthValue.get()); } if (targetStrafe.getCanStrafe()) targetStrafe.strafe(event, moveSpeed); else MovementUtils.setSpeed(event, moveSpeed); } } }
2,328
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
HypixelBoost.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/hypixel/HypixelBoost.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.hypixel; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.TargetStrafe; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class HypixelBoost extends SpeedMode { public HypixelBoost() { super("HypixelBoost"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null) return; final TargetStrafe targetStrafe = LiquidBounce.moduleManager.getModule(TargetStrafe.class); if (targetStrafe == null) return; mc.timer.timerSpeed = 1F; if(MovementUtils.isMoving() && !(mc.thePlayer.isInWater() || mc.thePlayer.isInLava()) && !mc.gameSettings.keyBindJump.isKeyDown()) { double moveSpeed = Math.max(MovementUtils.getBaseMoveSpeed() * speed.baseStrengthValue.get(), MovementUtils.getSpeed()); if (mc.thePlayer.onGround) { if (speed.sendJumpValue.get()) mc.thePlayer.jump(); if (speed.recalcValue.get()) moveSpeed = Math.max(MovementUtils.getBaseMoveSpeed() * speed.baseStrengthValue.get(), MovementUtils.getSpeed()); event.setY(mc.thePlayer.motionY = MovementUtils.getJumpBoostModifier((mc.thePlayer.isCollidedHorizontally ? 0.42 : speed.jumpYValue.get()))); moveSpeed *= speed.moveSpeedValue.get(); } else if (speed.glideStrengthValue.get() > 0 && event.getY() < 0) { event.setY(mc.thePlayer.motionY += speed.glideStrengthValue.get()); } mc.timer.timerSpeed = Math.max(speed.baseTimerValue.get() + Math.abs((float)mc.thePlayer.motionY) * speed.baseMTimerValue.get(), 1F); if (targetStrafe.getCanStrafe()) targetStrafe.strafe(event, moveSpeed); else MovementUtils.setSpeed(event, moveSpeed); } } }
2,484
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SpartanYPort.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/spartan/SpartanYPort.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.spartan; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; public class SpartanYPort extends SpeedMode { private int airMoves; public SpartanYPort() { super("SpartanYPort"); } @Override public void onMotion() { if(mc.gameSettings.keyBindForward.isKeyDown() && !mc.gameSettings.keyBindJump.isKeyDown()) { if(mc.thePlayer.onGround) { mc.thePlayer.jump(); airMoves = 0; }else{ mc.timer.timerSpeed = 1.08F; if(airMoves >= 3) mc.thePlayer.jumpMovementFactor = 0.0275F; if(airMoves >= 4 && airMoves % 2 == 0.0) { mc.thePlayer.motionY = -0.32F - 0.009 * Math.random(); mc.thePlayer.jumpMovementFactor = 0.0238F; } airMoves++; } } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,348
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
SlowHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/SlowHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ 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 SlowHop extends SpeedMode { public SlowHop() { super("SlowHop"); } @Override public void onMotion() { if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround && mc.thePlayer.jumpTicks == 0) { mc.thePlayer.jump(); mc.thePlayer.jumpTicks = 10; } else MovementUtils.strafe(MovementUtils.getSpeed() * 1.011F); }else{ mc.thePlayer.motionX = 0D; mc.thePlayer.motionZ = 0D; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,164
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
TeleportCubeCraft.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/TeleportCubeCraft.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.timer.MSTimer; public class TeleportCubeCraft extends SpeedMode { private final MSTimer timer = new MSTimer(); public TeleportCubeCraft() { super("TeleportCubeCraft"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(final MoveEvent event) { if(MovementUtils.isMoving() && mc.thePlayer.onGround && timer.hasTimePassed(300L)) { final double yaw = MovementUtils.getDirection(); final float length = LiquidBounce.moduleManager.getModule(Speed.class).cubecraftPortLengthValue.get(); event.setX(-Math.sin(yaw) * length); event.setZ(Math.cos(yaw) * length); timer.reset(); } } }
1,381
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
CustomSpeed.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/CustomSpeed.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventState; import net.ccbluex.liquidbounce.event.MotionEvent; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class CustomSpeed extends SpeedMode { public CustomSpeed() { super("Custom"); } private int groundTick = 0; @Override public void onMotion(MotionEvent eventMotion) { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null || eventMotion.getEventState() != EventState.PRE) return; if (MovementUtils.isMoving()) { mc.timer.timerSpeed = (mc.thePlayer.motionY > 0) ? speed.upTimerValue.get() : speed.downTimerValue.get(); if (mc.thePlayer.onGround) { if (groundTick >= speed.groundStay.get()) { if (speed.doLaunchSpeedValue.get()) { MovementUtils.strafe(speed.launchSpeedValue.get()); } if (speed.yValue.get() != 0) { mc.thePlayer.motionY = speed.yValue.get(); } } else if (speed.groundResetXZValue.get()) { mc.thePlayer.motionX = 0.0; mc.thePlayer.motionZ = 0.0; } groundTick++; } else { groundTick = 0; switch (speed.strafeValue.get().toLowerCase()) { case "strafe": MovementUtils.strafe(speed.speedValue.get()); break; case "boost": MovementUtils.strafe(); break; case "plus": MovementUtils.accelerate(speed.speedValue.get() * 0.1f); break; case "plusonlyup": if (mc.thePlayer.motionY > 0) { MovementUtils.accelerate(speed.speedValue.get() * 0.1f); } else { MovementUtils.strafe(); } break; } mc.thePlayer.motionY += speed.addYMotionValue.get() * 0.03; } } else if (speed.resetXZValue.get()) { mc.thePlayer.motionX = 0.0; mc.thePlayer.motionZ = 0.0; } } @Override public void onEnable() { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null) return; if(speed.resetXZValue.get()) mc.thePlayer.motionX = mc.thePlayer.motionZ = 0D; if(speed.resetYValue.get()) mc.thePlayer.motionY = 0D; super.onEnable(); } @Override public void onDisable() { mc.timer.timerSpeed = 1F; super.onDisable(); } @Override public void onUpdate() { } @Override public void onMotion() { } @Override public void onMove(MoveEvent event) { } }
3,552
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
HiveHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/HiveHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ 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 HiveHop extends SpeedMode { public HiveHop() { super("HiveHop"); } @Override public void onEnable() { mc.thePlayer.speedInAir = 0.0425F; mc.timer.timerSpeed = 1.04F; } @Override public void onDisable() { mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1F; } @Override public void onMotion() { } @Override public void onUpdate() { if(MovementUtils.isMoving()) { if(mc.thePlayer.onGround) mc.thePlayer.motionY = 0.3; mc.thePlayer.speedInAir = 0.0425F; mc.timer.timerSpeed = 1.04F; MovementUtils.strafe(); }else{ mc.thePlayer.motionX = mc.thePlayer.motionZ = 0D; mc.thePlayer.speedInAir = 0.02F; mc.timer.timerSpeed = 1F; } } @Override public void onMove(MoveEvent event) { } }
1,390
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Legit.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/Legit.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.features.module.modules.movement.InvMove; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.client.gui.GuiChat; import net.minecraft.client.gui.GuiIngameMenu; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.settings.GameSettings; public class Legit extends SpeedMode { public Legit() { super("Legit"); } @Override public void onMotion() { final InvMove invMove = LiquidBounce.moduleManager.getModule(InvMove.class); mc.gameSettings.keyBindJump.pressed = ((MovementUtils.isMoving() || GameSettings.isKeyDown(mc.gameSettings.keyBindJump)) && (mc.inGameHasFocus || (invMove.getState() && !(mc.currentScreen instanceof GuiChat || mc.currentScreen instanceof GuiIngameMenu) && (!invMove.getNoDetectableValue().get() || !(mc.currentScreen instanceof GuiContainer))))); } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,476
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AEMine.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/AEMine.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ 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 AEMine extends SpeedMode { public AEMine() { super("AEMine"); } @Override public void onDisable() { mc.timer.timerSpeed = 1F; } @Override public void onMotion() { if (mc.thePlayer.onGround && MovementUtils.isMoving()) { mc.thePlayer.jump(); mc.timer.timerSpeed = 1F; } else { mc.timer.timerSpeed = 1.30919551F; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,014
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Jump.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/Jump.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class Jump extends SpeedMode { public Jump() { super("Jump"); } @Override public void onMotion() { } @Override public void onUpdate() { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null) return; if(MovementUtils.isMoving() && mc.thePlayer.onGround && !mc.gameSettings.keyBindJump.isKeyDown() && !(mc.thePlayer.isInWater() || mc.thePlayer.isInLava()) && mc.thePlayer.jumpTicks == 0) { mc.thePlayer.jump(); mc.thePlayer.jumpTicks = 10; } if (speed.jumpStrafe.get() && MovementUtils.isMoving() && !mc.thePlayer.onGround && !(mc.thePlayer.isInWater() || mc.thePlayer.isInLava())) MovementUtils.strafe(); } @Override public void onMove(MoveEvent event) { } }
1,429
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
StrafeHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/StrafeHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ 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 StrafeHop extends SpeedMode { public StrafeHop() { super("StrafeHop"); } @Override public void onMotion() { if(mc.thePlayer.isInWater()) return; if(MovementUtils.isMoving()) { MovementUtils.strafe(); 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) { } }
1,054
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MineplexGround.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/other/MineplexGround.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.ClientUtils; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.item.ItemStack; import net.minecraft.network.play.client.C09PacketHeldItemChange; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.Vec3; public class MineplexGround extends SpeedMode { private boolean spoofSlot; private float speed = 0F; public MineplexGround() { super("MineplexGround"); } @Override public void onMotion() { if(!MovementUtils.isMoving() || !mc.thePlayer.onGround || mc.thePlayer.inventory.getCurrentItem() == null || mc.thePlayer.isUsingItem()) return; spoofSlot = false; for(int i = 36; i < 45; i++) { final ItemStack itemStack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if(itemStack != null) continue; mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(i - 36)); spoofSlot = true; break; } } @Override public void onUpdate() { if(!MovementUtils.isMoving() || !mc.thePlayer.onGround || mc.thePlayer.isUsingItem()) { speed = 0F; return; } if(!spoofSlot && mc.thePlayer.inventory.getCurrentItem() != null) { ClientUtils.displayChatMessage("§8[§c§lMineplex§aSpeed§8] §cYou need one empty slot."); return; } final BlockPos blockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY - 1, mc.thePlayer.posZ); final Vec3 vec = new Vec3(blockPos).addVector(0.4F, 0.4F, 0.4F).add(new Vec3(EnumFacing.UP.getDirectionVec())); mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, null, blockPos, EnumFacing.UP, new Vec3(vec.xCoord * 0.4F, vec.yCoord * 0.4F, vec.zCoord * 0.4F)); final float targetSpeed = LiquidBounce.moduleManager.getModule(Speed.class).mineplexGroundSpeedValue.get(); if(targetSpeed > speed) speed += targetSpeed / 8; if(speed >= targetSpeed) speed = targetSpeed; MovementUtils.strafe(speed); if(!spoofSlot) mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem)); } @Override public void onMove(final MoveEvent event) { } @Override public void onDisable() { speed = 0F; mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem)); } }
3,074
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
VerusHard.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/verus/VerusHard.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.verus; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Strafe; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.util.MathHelper; public class VerusHard extends SpeedMode { public VerusHard() { super("VerusHard"); } @Override public void onDisable() { mc.timer.timerSpeed = 1F; super.onDisable(); } @Override public void onMotion() { final Speed speed = LiquidBounce.moduleManager.getModule(Speed.class); if(speed == null) return; if (!mc.gameSettings.keyBindForward.isKeyDown() && !mc.gameSettings.keyBindLeft.isKeyDown() && !mc.gameSettings.keyBindRight.isKeyDown() && !mc.gameSettings.keyBindBack.isKeyDown()) return; mc.timer.timerSpeed = speed.verusTimer.get(); if (mc.thePlayer.onGround) { mc.thePlayer.jump(); if(mc.thePlayer.isSprinting()) { MovementUtils.strafe((float)MovementUtils.getSpeed() + 0.2F); } } MovementUtils.strafe(Math.max((float)MovementUtils.getBaseMoveSpeed(), MovementUtils.getSpeed())); // no sprint = faster - verus, since 2018 } @Override public void onUpdate() {} @Override public void onMove(MoveEvent event) {} }
1,822
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
VerusHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/verus/VerusHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.verus; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class VerusHop extends SpeedMode { public VerusHop() { super("VerusHop"); } @Override public void onMotion() { } @Override public void onUpdate() { if (!mc.thePlayer.isInWeb && !mc.thePlayer.isInLava() && !mc.thePlayer.isInWater() && !mc.thePlayer.isOnLadder() && mc.thePlayer.ridingEntity == null) { if (MovementUtils.isMoving()) { mc.gameSettings.keyBindJump.pressed = false; if (mc.thePlayer.onGround) { mc.thePlayer.jump(); MovementUtils.strafe(0.48F); } MovementUtils.strafe(); } } } @Override public void onMove(MoveEvent event) { } }
1,201
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
VerusLowHop.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/verus/VerusLowHop.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.verus; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Strafe; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class VerusLowHop extends SpeedMode { public VerusLowHop() { super("VerusLowHop"); } @Override public void onMotion() { } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { if (!mc.thePlayer.isInWeb && !mc.thePlayer.isInLava() && !mc.thePlayer.isInWater() && !mc.thePlayer.isOnLadder() && mc.thePlayer.ridingEntity == null) { if (MovementUtils.isMoving()) { mc.gameSettings.keyBindJump.pressed = false; if (mc.thePlayer.onGround) { mc.thePlayer.jump(); mc.thePlayer.motionY = 0; MovementUtils.strafe(0.61F); event.setY(0.41999998688698); } MovementUtils.strafe(); } } } }
1,379
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MatrixDynamic.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/matrix/MatrixDynamic.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.matrix; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.combat.KillAura; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class MatrixDynamic extends SpeedMode { KillAura ka = LiquidBounce.moduleManager.getModule(KillAura.class); public MatrixDynamic() { super("MatrixDynamic"); } @Override public void onEnable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onMotion() { if (!ka.getHitable()) { if (!MovementUtils.isMoving()) { return; } if (mc.thePlayer.onGround) { mc.timer.timerSpeed = 1.0f; mc.thePlayer.jump(); } if (mc.thePlayer.motionY > 0.003) { mc.thePlayer.motionX *= 1.0012; mc.thePlayer.motionZ *= 1.0012; mc.timer.timerSpeed = 1.05f; } } else { if (MovementUtils.isMoving() && mc.thePlayer.onGround) { mc.thePlayer.jump(); MovementUtils.strafe(0.3f); } if (mc.thePlayer.fallDistance > 0.1) { MovementUtils.strafe(0.22f); } } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,956
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MatrixSemiStrafe.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/matrix/MatrixSemiStrafe.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.matrix; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class MatrixSemiStrafe extends SpeedMode { public MatrixSemiStrafe() { super("MatrixSemiStrafe"); } @Override public void onEnable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onMotion() { if (MovementUtils.isMoving() && mc.thePlayer.onGround) { mc.thePlayer.jump(); MovementUtils.strafe(0.3f); } if (mc.thePlayer.fallDistance > 0.1) { MovementUtils.strafe(0.22f); } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,263
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MatrixTimerBalance.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/matrix/MatrixTimerBalance.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.matrix; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class MatrixTimerBalance extends SpeedMode { public MatrixTimerBalance() { super("MatrixTimerBalance"); } @Override public void onEnable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onMotion() { if (!MovementUtils.isMoving()) { mc.timer.timerSpeed = 1.0f; return; } if (mc.thePlayer.onGround) { mc.thePlayer.jump(); return; } if (mc.thePlayer.fallDistance <= 0.1) { mc.timer.timerSpeed = 1.9f; return; } if (mc.thePlayer.fallDistance < 1.3) { mc.timer.timerSpeed = 0.6f; return; } mc.timer.timerSpeed = 1.0f; } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,505
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MatrixMultiply.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/speeds/matrix/MatrixMultiply.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.matrix; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode; import net.ccbluex.liquidbounce.utils.MovementUtils; public class MatrixMultiply extends SpeedMode { public MatrixMultiply() { super("MatrixMultiply"); } @Override public void onEnable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onDisable() { mc.thePlayer.jumpMovementFactor = 0.02f; mc.timer.timerSpeed = 1.0f; } @Override public void onMotion() { if (!MovementUtils.isMoving()) { return; } if (mc.thePlayer.onGround) { mc.timer.timerSpeed = 1.0f; mc.thePlayer.jump(); } if (mc.thePlayer.motionY > 0.003) { mc.thePlayer.motionX *= 1.0012; mc.thePlayer.motionZ *= 1.0012; mc.timer.timerSpeed = 1.05f; } } @Override public void onUpdate() { } @Override public void onMove(MoveEvent event) { } }
1,385
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
AntiVoid.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/player/AntiVoid.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.player; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.*; 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.features.module.modules.movement.Fly; import net.ccbluex.liquidbounce.features.module.modules.world.Scaffold; //import net.ccbluex.liquidbounce.features.module.modules.world.Tower; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.ccbluex.liquidbounce.utils.PacketUtils; import net.ccbluex.liquidbounce.utils.block.BlockUtils; import net.ccbluex.liquidbounce.utils.misc.NewFallingPlayer; import net.ccbluex.liquidbounce.utils.misc.RandomUtils; import net.ccbluex.liquidbounce.value.*; import net.minecraft.block.BlockAir; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.network.play.client.*; import net.minecraft.network.play.server.S08PacketPlayerPosLook; import net.minecraft.network.Packet; import java.util.ArrayList; import java.util.LinkedList; import static org.lwjgl.opengl.GL11.*; @ModuleInfo(name = "AntiVoid", spacedName = "Anti Void", description = "Prevents you from falling into the void.", category = ModuleCategory.PLAYER) public class AntiVoid extends Module { public final ListValue voidDetectionAlgorithm = new ListValue("Detect-Method", new String[]{"Collision", "Predict"}, "Collision"); public final ListValue setBackModeValue = new ListValue("SetBack-Mode", new String[]{"Teleport", "FlyFlag", "IllegalPacket", "IllegalTeleport", "StopMotion", "Position", "Edit", "SpoofBack"}, "Teleport"); public final IntegerValue maxFallDistSimulateValue = new IntegerValue("Predict-CheckFallDistance", 255, 0, 255, "m", () -> voidDetectionAlgorithm.get().equalsIgnoreCase("predict")); public final IntegerValue maxFindRangeValue = new IntegerValue("Predict-MaxFindRange", 60, 0, 255, "m", () -> voidDetectionAlgorithm.get().equalsIgnoreCase("predict")); public final IntegerValue illegalDupeValue = new IntegerValue("Illegal-Dupe", 1, 1, 5, "x", () -> setBackModeValue.get().toLowerCase().contains("illegal")); public final FloatValue setBackFallDistValue = new FloatValue("Max-FallDistance", 5F, 0F, 255F, "m"); public final BoolValue resetFallDistanceValue = new BoolValue("Reset-FallDistance", true); public final BoolValue renderTraceValue = new BoolValue("Render-Trace", true); public final BoolValue scaffoldValue = new BoolValue("AutoScaffold", true); public final BoolValue noFlyValue = new BoolValue("NoFly", true); private BlockPos detectedLocation = BlockPos.ORIGIN; private double lastX = 0; private double lastY = 0; private double lastZ = 0; private double lastFound = 0; private boolean shouldRender, shouldStopMotion, shouldEdit = false; private final LinkedList<double[]> positions = new LinkedList<>(); @EventTarget public void onUpdate(UpdateEvent event) { if (noFlyValue.get() && LiquidBounce.moduleManager.getModule(Fly.class).getState()) return; detectedLocation = null; if (voidDetectionAlgorithm.get().equalsIgnoreCase("collision")) { if (mc.thePlayer.onGround && !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1.0, mc.thePlayer.posZ)) instanceof BlockAir)) { lastX = mc.thePlayer.prevPosX; lastY = mc.thePlayer.prevPosY; lastZ = mc.thePlayer.prevPosZ; } shouldRender = renderTraceValue.get() && !MovementUtils.isBlockUnder(); shouldStopMotion = false; shouldEdit = false; if (!MovementUtils.isBlockUnder()) { if (mc.thePlayer.fallDistance >= setBackFallDistValue.get()) { shouldStopMotion = true; switch (setBackModeValue.get()) { case "IllegalTeleport": mc.thePlayer.setPositionAndUpdate(lastX, lastY, lastZ); case "IllegalPacket": for (int i = 0; i < illegalDupeValue.get(); i++) PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY - 1E+159, mc.thePlayer.posZ, false)); break; case "Teleport": mc.thePlayer.setPositionAndUpdate(lastX, lastY, lastZ); break; case "FlyFlag": mc.thePlayer.motionY = 0F; break; case "StopMotion": float oldFallDist = mc.thePlayer.fallDistance; mc.thePlayer.motionY = 0F; mc.thePlayer.fallDistance = oldFallDist; break; case "Position": PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, mc.thePlayer.posY + RandomUtils.nextDouble(6D, 10D), mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); break; case "Edit": case "SpoofBack": shouldEdit = true; break; } if (resetFallDistanceValue.get() && !setBackModeValue.get().equalsIgnoreCase("StopMotion")) mc.thePlayer.fallDistance = 0; if (scaffoldValue.get() && !LiquidBounce.moduleManager.getModule(Scaffold.class).getState()) LiquidBounce.moduleManager.getModule(Scaffold.class).setState(true); /*if (towerValue.get() && !LiquidBounce.moduleManager.getModule(Tower.class).getState()) LiquidBounce.moduleManager.getModule(Tower.class).setState(true);*/ } } } else { if (mc.thePlayer.onGround && !(BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1.0, mc.thePlayer.posZ)) instanceof BlockAir)) { lastX = mc.thePlayer.prevPosX; lastY = mc.thePlayer.prevPosY; lastZ = mc.thePlayer.prevPosZ; } shouldStopMotion = false; shouldEdit = false; shouldRender = false; if (!mc.thePlayer.onGround && !mc.thePlayer.isOnLadder() && !mc.thePlayer.isInWater()) { NewFallingPlayer NewFallingPlayer = new NewFallingPlayer(mc.thePlayer); try { detectedLocation = NewFallingPlayer.findCollision(maxFindRangeValue.get()); } catch (Exception e) { // do nothing. i hate errors } if (detectedLocation != null && Math.abs(mc.thePlayer.posY - detectedLocation.getY()) + mc.thePlayer.fallDistance <= maxFallDistSimulateValue.get()) { lastFound = mc.thePlayer.fallDistance; } shouldRender = renderTraceValue.get() && detectedLocation == null; if (mc.thePlayer.fallDistance - lastFound > setBackFallDistValue.get()) { shouldStopMotion = true; switch (setBackModeValue.get()) { case "IllegalTeleport": mc.thePlayer.setPositionAndUpdate(lastX, lastY, lastZ); case "IllegalPacket": for (int i = 0; i < illegalDupeValue.get(); i++) PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY - 1E+159, mc.thePlayer.posZ, false)); break; case "Teleport": mc.thePlayer.setPositionAndUpdate(lastX, lastY, lastZ); break; case "FlyFlag": mc.thePlayer.motionY = 0F; break; case "StopMotion": float oldFallDist = mc.thePlayer.fallDistance; mc.thePlayer.motionY = 0F; mc.thePlayer.fallDistance = oldFallDist; break; case "Position": PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX, mc.thePlayer.posY + RandomUtils.nextDouble(6D, 10D), mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)); break; case "Edit": case "SpoofBack": shouldEdit = true; break; } if (resetFallDistanceValue.get() && !setBackModeValue.get().equalsIgnoreCase("StopMotion")) mc.thePlayer.fallDistance = 0; if (scaffoldValue.get() && !LiquidBounce.moduleManager.getModule(Scaffold.class).getState()) LiquidBounce.moduleManager.getModule(Scaffold.class).setState(true); /*if (towerValue.get() && !LiquidBounce.moduleManager.getModule(Tower.class).getState()) LiquidBounce.moduleManager.getModule(Tower.class).setState(true);*/ } } } if (shouldRender) synchronized (positions) { positions.add(new double[]{mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ}); } else synchronized (positions) { positions.clear(); } } @EventTarget public void onPacket(PacketEvent event) { if (noFlyValue.get() && LiquidBounce.moduleManager.getModule(Fly.class).getState()) return; if (setBackModeValue.get().equalsIgnoreCase("StopMotion") && event.getPacket() instanceof S08PacketPlayerPosLook) mc.thePlayer.fallDistance = 0; if (setBackModeValue.get().equalsIgnoreCase("Edit") && shouldEdit && event.getPacket() instanceof C03PacketPlayer) { final C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket(); packetPlayer.y += 100D; shouldEdit = false; } if (setBackModeValue.get().equalsIgnoreCase("SpoofBack") && shouldEdit && event.getPacket() instanceof C03PacketPlayer) { final C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket(); packetPlayer.x = lastX; packetPlayer.y = lastY; packetPlayer.z = lastZ; packetPlayer.setMoving(false); shouldEdit = false; } } @EventTarget public void onMove(MoveEvent event) { if (noFlyValue.get() && LiquidBounce.moduleManager.getModule(Fly.class).getState()) return; if (setBackModeValue.get().equalsIgnoreCase("StopMotion") && shouldStopMotion) { event.zero(); } } @EventTarget public void onRender3D(Render3DEvent event) { if (noFlyValue.get() && LiquidBounce.moduleManager.getModule(Fly.class).getState()) return; if (shouldRender) synchronized (positions) { glPushMatrix(); glDisable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glDisable(GL_DEPTH_TEST); mc.entityRenderer.disableLightmap(); glLineWidth(1F); glBegin(GL_LINE_STRIP); glColor4f(1F, 1F, 0.1F, 1F); final double renderPosX = mc.getRenderManager().viewerPosX; final double renderPosY = mc.getRenderManager().viewerPosY; final double renderPosZ = mc.getRenderManager().viewerPosZ; for (final double[] pos : positions) glVertex3d(pos[0] - renderPosX, pos[1] - renderPosY, pos[2] - renderPosZ); glColor4d(1, 1, 1, 1); glEnd(); glEnable(GL_DEPTH_TEST); glDisable(GL_LINE_SMOOTH); glDisable(GL_BLEND); glEnable(GL_TEXTURE_2D); glPopMatrix(); } } @Override public void onDisable() { reset(); super.onDisable(); } @Override public void onEnable() { reset(); super.onEnable(); } @Override public String getTag() { return setBackModeValue.get(); } private void reset() { detectedLocation = null; lastX = lastY = lastZ = lastFound = 0; shouldStopMotion = shouldRender = false; synchronized (positions) { positions.clear(); } } }
13,042
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
Blink.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/features/module/modules/player/Blink.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.features.module.modules.player; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.EventTarget; import net.ccbluex.liquidbounce.event.PacketEvent; import net.ccbluex.liquidbounce.event.Render3DEvent; 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.features.module.modules.render.Breadcrumbs; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.timer.MSTimer; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.minecraft.client.entity.EntityOtherPlayerMP; import net.minecraft.network.Packet; import net.minecraft.network.play.client.*; import java.awt.*; import java.util.LinkedList; import java.util.concurrent.LinkedBlockingQueue; import static org.lwjgl.opengl.GL11.*; @ModuleInfo(name = "Blink", description = "Suspends all movement packets.", category = ModuleCategory.PLAYER) public class Blink extends Module { private final LinkedBlockingQueue<Packet> packets = new LinkedBlockingQueue<>(); private EntityOtherPlayerMP fakePlayer = null; private boolean disableLogger; private final LinkedList<double[]> positions = new LinkedList<>(); public final BoolValue pulseValue = new BoolValue("Pulse", false); private final BoolValue c0FValue = new BoolValue("C0FCancel", false); private final IntegerValue pulseDelayValue = new IntegerValue("PulseDelay", 1000, 500, 5000, "ms"); private final MSTimer pulseTimer = new MSTimer(); @Override public void onEnable() { if(mc.thePlayer == null) return; if (!pulseValue.get()) { fakePlayer = new EntityOtherPlayerMP(mc.theWorld, mc.thePlayer.getGameProfile()); fakePlayer.clonePlayer(mc.thePlayer, true); fakePlayer.copyLocationAndAnglesFrom(mc.thePlayer); fakePlayer.rotationYawHead = mc.thePlayer.rotationYawHead; mc.theWorld.addEntityToWorld(-1337, fakePlayer); } synchronized(positions) { positions.add(new double[] {mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY + (mc.thePlayer.getEyeHeight() / 2), mc.thePlayer.posZ}); positions.add(new double[] {mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ}); } pulseTimer.reset(); } @Override public void onDisable() { if(mc.thePlayer == null) return; blink(); if (fakePlayer != null) { mc.theWorld.removeEntityFromWorld(fakePlayer.getEntityId()); fakePlayer = null; } } @EventTarget public void onPacket(PacketEvent event) { final Packet<?> packet = event.getPacket(); if (mc.thePlayer == null || disableLogger) return; if (packet instanceof C03PacketPlayer) // Cancel all movement stuff event.cancelEvent(); if (packet instanceof C03PacketPlayer.C04PacketPlayerPosition || packet instanceof C03PacketPlayer.C06PacketPlayerPosLook || packet instanceof C08PacketPlayerBlockPlacement || packet instanceof C0APacketAnimation || packet instanceof C0BPacketEntityAction || packet instanceof C02PacketUseEntity || (c0FValue.get() && packet instanceof C0FPacketConfirmTransaction)) { event.cancelEvent(); packets.add(packet); } } @EventTarget public void onUpdate(UpdateEvent event) { synchronized(positions) { positions.add(new double[] {mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY, mc.thePlayer.posZ}); } if(pulseValue.get() && pulseTimer.hasTimePassed(pulseDelayValue.get())) { blink(); pulseTimer.reset(); } } @EventTarget public void onRender3D(Render3DEvent event) { final Breadcrumbs breadcrumbs = LiquidBounce.moduleManager.getModule(Breadcrumbs.class); final Color color = breadcrumbs.colorRainbow.get() ? ColorUtils.rainbow() : new Color(breadcrumbs.colorRedValue.get(), breadcrumbs.colorGreenValue.get(), breadcrumbs.colorBlueValue.get()); synchronized(positions) { glPushMatrix(); glDisable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glDisable(GL_DEPTH_TEST); mc.entityRenderer.disableLightmap(); glBegin(GL_LINE_STRIP); RenderUtils.glColor(color); final double renderPosX = mc.getRenderManager().viewerPosX; final double renderPosY = mc.getRenderManager().viewerPosY; final double renderPosZ = mc.getRenderManager().viewerPosZ; for(final double[] pos : positions) glVertex3d(pos[0] - renderPosX, pos[1] - renderPosY, pos[2] - renderPosZ); glColor4d(1D, 1D, 1D, 1D); glEnd(); glEnable(GL_DEPTH_TEST); glDisable(GL_LINE_SMOOTH); glDisable(GL_BLEND); glEnable(GL_TEXTURE_2D); glPopMatrix(); } } @Override public String getTag() { return String.valueOf(packets.size()); } private void blink() { try { disableLogger = true; while (!packets.isEmpty()) { mc.getNetHandler().getNetworkManager().sendPacket(packets.take()); } disableLogger = false; }catch(final Exception e) { e.printStackTrace(); disableLogger = false; } synchronized(positions) { positions.clear(); } } }
6,235
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
IItemStack.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/implementations/IItemStack.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.implementations; public interface IItemStack { long getItemDelay(); }
307
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
IMixinGuiSlot.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/implementations/IMixinGuiSlot.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.implementations; public interface IMixinGuiSlot { void setListWidth(int listWidth); void setEnableScissor(boolean b); }
364
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
TransformerLoader.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/TransformerLoader.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge; import net.ccbluex.liquidbounce.injection.transformers.*; import net.ccbluex.liquidbounce.script.remapper.injection.transformers.AbstractJavaLinkerTransformer; import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; import org.spongepowered.asm.launch.MixinBootstrap; import org.spongepowered.asm.mixin.MixinEnvironment; import org.spongepowered.asm.mixin.Mixins; import java.util.Map; @IFMLLoadingPlugin.MCVersion("1.8.9") public class TransformerLoader implements IFMLLoadingPlugin { public TransformerLoader() { MixinBootstrap.init(); Mixins.addConfiguration("liquidbounce.forge.mixins.json"); MixinEnvironment.getDefaultEnvironment().setSide(MixinEnvironment.Side.CLIENT); } /** * Return a list of classes that implements the IClassTransformer interface * * @return a list of classes that implements the IClassTransformer interface */ @Override public String[] getASMTransformerClass() { return new String[] {ForgeNetworkTransformer.class.getName(), OptimizeTransformer.class.getName(), AbstractJavaLinkerTransformer.class.getName()}; } /** * Return a class name that implements "ModContainer" for injection into the mod list * The "getName" function should return a name that other mods can, if need be, * depend on. * Trivially, this modcontainer will be loaded before all regular mod containers, * which means it will be forced to be "immutable" - not susceptible to normal * sorting behaviour. * All other mod behaviours are available however- this container can receive and handle * normal loading events */ @Override public String getModContainerClass() { return null; } /** * Return the class name of an implementor of "IFMLCallHook", that will be run, in the * main thread, to perform any additional setup this coremod may require. It will be * run <strong>prior</strong> to Minecraft starting, so it CANNOT operate on minecraft * itself. The game will deliberately crash if this code is detected to trigger a * minecraft class loading (TODO: implement crash ;) ) */ @Override public String getSetupClass() { return null; } /** * Inject coremod data into this coremod * This data includes: * "mcLocation" : the location of the minecraft directory, * "coremodList" : the list of coremods * "coremodLocation" : the file this coremod loaded from, * * @param data */ @Override public void injectData(Map<String, Object> data) { } /** * Return an optional access transformer class for this coremod. It will be injected post-deobf * so ensure your ATs conform to the new srgnames scheme. * * @return the name of an access transformer class or null if none is provided */ @Override public String getAccessTransformerClass() { return null; } }
3,205
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinC17PacketCustomPayload.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/packets/MixinC17PacketCustomPayload.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.packets; import net.minecraft.network.PacketBuffer; import net.minecraft.network.play.INetHandlerPlayServer; import net.minecraft.network.play.client.C17PacketCustomPayload; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(C17PacketCustomPayload.class) public class MixinC17PacketCustomPayload { @Shadow private PacketBuffer data; @Inject(method = "processPacket(Lnet/minecraft/network/play/INetHandlerPlayServer;)V", at = @At("TAIL")) private void releaseData(INetHandlerPlayServer handler, CallbackInfo ci) { if (this.data != null) { this.data.release(); } } }
1,068
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinS3FPacketCustomPayload.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/packets/MixinS3FPacketCustomPayload.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.packets; import net.minecraft.network.PacketBuffer; import net.minecraft.network.play.INetHandlerPlayClient; import net.minecraft.network.play.server.S3FPacketCustomPayload; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(S3FPacketCustomPayload.class) public class MixinS3FPacketCustomPayload { @Shadow private PacketBuffer data; @Inject(method = "processPacket(Lnet/minecraft/network/play/INetHandlerPlayClient;)V", at = @At("TAIL")) private void releaseData(INetHandlerPlayClient handler, CallbackInfo ci) { if (this.data != null) { this.data.release(); } } }
1,068
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinC00Handshake.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/packets/MixinC00Handshake.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.packets; import net.ccbluex.liquidbounce.features.special.AntiForge; import net.minecraft.client.Minecraft; import net.minecraft.network.EnumConnectionState; import net.minecraft.network.PacketBuffer; import net.minecraft.network.handshake.client.C00Handshake; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.Constant; import org.spongepowered.asm.mixin.injection.ModifyConstant; @Mixin(C00Handshake.class) public class MixinC00Handshake { @Shadow private int protocolVersion; @Shadow public int port; @Shadow private EnumConnectionState requestedState; @Shadow public String ip; /** * @author CCBlueX */ @ModifyConstant(method = "writePacketData", constant = @Constant(stringValue = "\u0000FML\u0000")) private String injectAntiForge(String constant) { return AntiForge.enabled && AntiForge.blockFML && !Minecraft.getMinecraft().isIntegratedServerRunning() ? "" : "\u0000FML\u0000"; } }
1,287
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinAnvilChunkLoader.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinAnvilChunkLoader.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import net.minecraft.nbt.CompressedStreamTools; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.chunk.storage.AnvilChunkLoader; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Redirect; import java.io.DataInputStream; import java.io.IOException; @Mixin(AnvilChunkLoader.class) public class MixinAnvilChunkLoader { // Local Capture misses this variable, so we have to resort to a Redirect. @Redirect( method = "loadChunk__Async", at = @At(value = "INVOKE", target = "Lnet/minecraft/nbt/CompressedStreamTools;read(Ljava/io/DataInputStream;)Lnet/minecraft/nbt/NBTTagCompound;") ) private NBTTagCompound closeStream(DataInputStream stream) throws IOException { NBTTagCompound result = CompressedStreamTools.read(stream); stream.close(); return result; } }
1,189
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinFluidRegistry.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinFluidRegistry.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; import org.spongepowered.asm.mixin.Shadow; import java.util.Collections; import java.util.Set; @Mixin(FluidRegistry.class) public class MixinFluidRegistry { @Shadow(remap = false) static Set<Fluid> bucketFluids; /** * @author LlamaLad7 * @reason Avoid making a copy of the set. */ @Overwrite(remap = false) public static Set<Fluid> getBucketFluids() { return Collections.unmodifiableSet(bucketFluids); } }
895
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinBlockPos.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinBlockPos.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.Vec3i; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; @Mixin(BlockPos.class) public abstract class MixinBlockPos extends Vec3i { public MixinBlockPos(int xIn, int yIn, int zIn) { super(xIn, yIn, zIn); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos up() { return new BlockPos(this.getX(), this.getY() + 1, this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos up(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX(), this.getY() + offset, this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos down() { return new BlockPos(this.getX(), this.getY() - 1, this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos down(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX(), this.getY() - offset, this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos north() { return new BlockPos(this.getX(), this.getY(), this.getZ() - 1); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos north(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX(), this.getY(), this.getZ() - offset); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos south() { return new BlockPos(this.getX(), this.getY(), this.getZ() + 1); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos south(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX(), this.getY(), this.getZ() + offset); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos west() { return new BlockPos(this.getX() - 1, this.getY(), this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos west(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX() - offset, this.getY(), this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos east() { return new BlockPos(this.getX() + 1, this.getY(), this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos east(int offset) { return offset == 0 ? (BlockPos) (Object) this : new BlockPos(this.getX() + offset, this.getY(), this.getZ()); } /** * @author asbyth * @reason Inline method to reduce allocations */ @Overwrite public BlockPos offset(EnumFacing direction) { return new BlockPos(this.getX() + direction.getFrontOffsetX(), this.getY() + direction.getFrontOffsetY(), this.getZ() + direction.getFrontOffsetZ()); } }
3,831
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinNodeProcessor.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinNodeProcessor.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import net.minecraft.world.IBlockAccess; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import net.minecraft.world.pathfinder.NodeProcessor; import org.spongepowered.asm.mixin.Mixin; @Mixin(NodeProcessor.class) public class MixinNodeProcessor { @Shadow protected IBlockAccess blockaccess; @Inject(method = "postProcess", at = @At("HEAD")) private void patcher$cleanupBlockAccess(CallbackInfo ci) { this.blockaccess = null; } }
889
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinGameRulesValue.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinGameRulesValue.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import java.util.Objects; @Mixin(targets = "net.minecraft.world.GameRules$Value") public class MixinGameRulesValue { @Shadow private String valueString; @Inject(method = "setValue(Ljava/lang/String;)V", at = @At("HEAD"), cancellable = true) private void cancelIfUnchanged(String value, CallbackInfo ci) { if (Objects.equals(this.valueString, value)) { ci.cancel(); } } }
940
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinMinecraftServer.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/performance/MixinMinecraftServer.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.performance; import io.netty.buffer.ByteBuf; import net.minecraft.server.MinecraftServer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.ModifyVariable; @Mixin(MinecraftServer.class) public class MixinMinecraftServer { @ModifyVariable( method = "addFaviconToStatusResponse", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/ServerStatusResponse;setFavicon(Ljava/lang/String;)V", shift = At.Shift.AFTER), ordinal = 1 ) private ByteBuf patcher$releaseByteBuf(ByteBuf buf1) { buf1.release(); return buf1; } }
917
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinEntityPackets.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinEntityPackets.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.entity.Entity; import net.minecraft.network.play.server.S14PacketEntity; import net.minecraft.network.play.server.S19PacketEntityHeadLook; import net.minecraft.network.play.server.S19PacketEntityStatus; import net.minecraft.world.World; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin({S14PacketEntity.class, S19PacketEntityHeadLook.class, S19PacketEntityStatus.class}) public class MixinEntityPackets { @SuppressWarnings("UnresolvedMixinReference") @Inject( method = {"getEntity", "func_149065_a", "func_149381_a", "func_149161_a"}, at = @At("HEAD"), cancellable = true, remap = false ) private void addNullCheck(World worldIn, CallbackInfoReturnable<Entity> cir) { if (worldIn == null) cir.setReturnValue(null); } }
1,257
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinServerAddress.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinServerAddress.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.client.multiplayer.ServerAddress; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; import org.spongepowered.asm.mixin.Shadow; import java.net.IDN; @Mixin(ServerAddress.class) public class MixinServerAddress { @Shadow @Final private String ipAddress; /** * @author LlamaLad7 * @reason Fix crash - MC-89698 */ @Overwrite public String getIP() { try { return IDN.toASCII(this.ipAddress); } catch (Exception e) { return ""; } } }
878
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinRegionRenderCache.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinRegionRenderCache.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.client.renderer.RegionRenderCache; import net.minecraft.block.state.IBlockState; import net.minecraft.util.BlockPos; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import org.spongepowered.asm.mixin.injection.callback.LocalCapture; @Mixin(RegionRenderCache.class) public class MixinRegionRenderCache { @Shadow @Final private static IBlockState DEFAULT_STATE; @Shadow private IBlockState[] blockStates; @Inject( method = "getBlockState", at = @At(value = "FIELD", target = "Lnet/minecraft/client/renderer/RegionRenderCache;blockStates:[Lnet/minecraft/block/state/IBlockState;", ordinal = 0, shift = At.Shift.AFTER), locals = LocalCapture.CAPTURE_FAILSOFT, cancellable = true ) private void connectedTexturesBoundsCheck(BlockPos pos, CallbackInfoReturnable<IBlockState> cir, int positionIndex) { if (positionIndex < 0 || positionIndex >= this.blockStates.length) { cir.setReturnValue(DEFAULT_STATE); } } }
1,548
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinLazyLoadBase.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinLazyLoadBase.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.util.LazyLoadBase; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; import org.spongepowered.asm.mixin.Shadow; @Mixin(LazyLoadBase.class) public abstract class MixinLazyLoadBase<T> { @Shadow private boolean isLoaded; @Shadow private T value; @Shadow protected abstract T load(); /** * @author LlamaLad7 * @reason Fix race condition */ @Overwrite public T getValue() { //noinspection DoubleCheckedLocking if (!this.isLoaded) { synchronized (this) { if (!this.isLoaded) { this.value = this.load(); this.isLoaded = true; } } } return this.value; } }
1,047
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinSoundManager.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinSoundManager.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.client.audio.ISound; import net.minecraft.client.audio.SoundManager; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Marker; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Coerce; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.Slice; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import paulscode.sound.SoundSystem; import java.util.*; @Mixin(SoundManager.class) public abstract class MixinSoundManager { @Shadow public abstract boolean isSoundPlaying(ISound sound); @Shadow @Final private Map<String, ISound> playingSounds; private final List<String> p_pausedSounds = new ArrayList<>(); @SuppressWarnings("InvalidInjectorMethodSignature") @Redirect( method = "pauseAllSounds", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/audio/SoundManager$SoundSystemStarterThread;pause(Ljava/lang/String;)V", remap = false) ) private void p_onlyPauseSoundIfNecessary(@Coerce SoundSystem soundSystem, String sound) { if (isSoundPlaying(playingSounds.get(sound))) { soundSystem.pause(sound); p_pausedSounds.add(sound); } } @Redirect( method = "resumeAllSounds", at = @At(value = "INVOKE", target = "Ljava/util/Set;iterator()Ljava/util/Iterator;", remap = false) ) private Iterator<String> p_iterateOverPausedSounds(Set<String> keySet) { return p_pausedSounds.iterator(); } @Redirect( method = "playSound", slice = @Slice(from = @At(value = "CONSTANT", args = "stringValue=Unable to play unknown soundEvent: {}", ordinal = 0)), at = @At(value = "INVOKE", target = "Lorg/apache/logging/log4j/Logger;warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V", ordinal = 0, remap = false) ) private void p_silenceWarning(Logger instance, Marker marker, String s, Object[] objects) { // No-op } @Inject(method = "resumeAllSounds", at = @At("TAIL")) private void p_clearPausedSounds(CallbackInfo ci) { p_pausedSounds.clear(); } }
2,658
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinScoreboard.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinScoreboard.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.scoreboard.ScoreObjective; import net.minecraft.scoreboard.ScorePlayerTeam; import net.minecraft.scoreboard.Scoreboard; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import java.util.Map; @Mixin(Scoreboard.class) public abstract class MixinScoreboard { @Shadow public abstract ScorePlayerTeam getTeam(String p_96508_1_); @Inject(method = "removeTeam", at = @At("HEAD"), cancellable = true) private void checkIfTeamIsNull(ScorePlayerTeam team, CallbackInfo ci) { if (team == null) ci.cancel(); } @Redirect(method = "removeTeam", at = @At(value = "INVOKE", target = "Ljava/util/Map;remove(Ljava/lang/Object;)Ljava/lang/Object;", ordinal = 0, remap = false)) private <K, V> V checkIfRegisteredNameIsNull(Map<K, V> instance, K o) { if (o != null) return instance.remove(o); return null; } @Inject(method = "removeObjective", at = @At("HEAD"), cancellable = true) private void checkIfObjectiveIsNull(ScoreObjective objective, CallbackInfo ci) { if (objective == null) ci.cancel(); } @Redirect(method = "removeObjective", at = @At(value = "INVOKE", target = "Ljava/util/Map;remove(Ljava/lang/Object;)Ljava/lang/Object;", ordinal = 0, remap = false)) private <K, V> V checkIfNameIsNull(Map<K, V> instance, K o) { if (o != null) return instance.remove(o); return null; } @Inject(method = "createTeam", at = @At(value = "CONSTANT", args = "stringValue=A team with the name '"), cancellable = true) private void returnExistingTeam(String name, CallbackInfoReturnable<ScorePlayerTeam> cir) { cir.setReturnValue(this.getTeam(name)); } @Inject(method = "removePlayerFromTeam", at = @At(value = "CONSTANT", args = "stringValue=Player is either on another team or not on any team. Cannot remove from team '"), cancellable = true) private void silenceException(CallbackInfo ci) { ci.cancel(); } }
2,556
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z
MixinBlockFluidRenderer.java
/FileExtraction/Java_unseen/MokkowDev_LiquidBouncePlusPlus/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/patcher/bugfixes/MixinBlockFluidRenderer.java
/* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package net.ccbluex.liquidbounce.injection.forge.mixins.patcher.bugfixes; import net.minecraft.client.renderer.BlockFluidRenderer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.Constant; import org.spongepowered.asm.mixin.injection.ModifyConstant; @Mixin(BlockFluidRenderer.class) public class MixinBlockFluidRenderer { @ModifyConstant(method = "renderFluid", constant = @Constant(floatValue = 0.001F)) private float fixFluidStitching(float original) { return 0.0F; } }
722
Java
.java
MokkowDev/LiquidBouncePlusPlus
82
28
3
2022-07-27T12:21:34Z
2023-12-31T08:57:34Z