i am going to bed now fml

This commit is contained in:
Jess H 2024-06-15 19:52:12 +01:00
parent ba04f54db6
commit b2ab0ac13a
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19
8 changed files with 151 additions and 101 deletions

View file

@ -10,6 +10,7 @@ import de.com.baseband.client.feature.modules.movement.ElytraFly;
import de.com.baseband.client.feature.modules.movement.NoSlowDown; import de.com.baseband.client.feature.modules.movement.NoSlowDown;
import de.com.baseband.client.feature.modules.movement.Velocity; import de.com.baseband.client.feature.modules.movement.Velocity;
import de.com.baseband.client.feature.modules.player.AntiLevitation; import de.com.baseband.client.feature.modules.player.AntiLevitation;
import de.com.baseband.client.feature.modules.player.AutoRespawn;
import de.com.baseband.client.feature.modules.render.*; import de.com.baseband.client.feature.modules.render.*;
import de.com.baseband.client.feature.modules.world.*; import de.com.baseband.client.feature.modules.world.*;
@ -51,8 +52,6 @@ public class Setup {
new ElytraFly(), new ElytraFly(),
new ElytraBot(), new ElytraBot(),
new ESP(), new ESP(),
new FastBreak(),
new FastUse(),
new Freecam(), new Freecam(),
new Help(), new Help(),
new HUD(), new HUD(),

View file

@ -2,9 +2,21 @@ package de.com.baseband.client.feature.commands;
import de.com.baseband.client.feature.Feature; import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Command; import de.com.baseband.client.feature.category.Command;
import de.com.baseband.client.util.interact.Chat;
@Command @Command
public class Credit extends Feature { public class Credit extends Feature {
publi @Override
public String toString() {
return "Credit";
}
@Override
public void onCommand(String[] args) {
Chat.print("Credits:");
Chat.print("Jess H - Insanity.");
Chat.print("TudbuT - Client Base, Settings System, Loader.");
Chat.print("John200410 - Telling me to increase the BCrypt rounds.");
}
} }

View file

@ -29,7 +29,7 @@ public class AntiLevitation extends Feature {
} }
public void motion(MoveEvent event) { public void motion(MoveEvent event) {
if(mode == Mode.Motion) { if(mode == Mode.Motion && mc.player.isPotionActive(MobEffects.LEVITATION)) {
if(event.y > 0) { if(event.y > 0) {
event.y = 0; event.y = 0;
} }

View file

@ -1,12 +1,12 @@
package de.com.baseband.client.feature.modules.world; package de.com.baseband.client.feature.modules.player;
import de.com.baseband.client.BaseBand; import de.com.baseband.client.BaseBand;
import de.com.baseband.client.feature.Feature; import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.World; import de.com.baseband.client.feature.category.Player;
import de.tudbut.tools.Lock; import de.tudbut.tools.Lock;
import net.minecraft.client.gui.GuiGameOver; import net.minecraft.client.gui.GuiGameOver;
@World @Player
public class AutoRespawn extends Feature { public class AutoRespawn extends Feature {
@Override @Override
public String toString() { public String toString() {

View file

@ -0,0 +1,130 @@
package de.com.baseband.client.feature.modules.player;
import de.com.baseband.client.event.events.DamageBlockEvent;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Player;
import de.com.baseband.client.mixin.mixins.IMinecraft;
import de.com.baseband.client.mixin.mixins.IPlayerControllerMP;
import de.com.baseband.client.registry.annotation.Config;
import de.com.baseband.client.registry.annotation.Range;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.CPacketPlayerDigging;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
@Player
public class InteractionTweaks extends Feature {
@Override
public String toString() {
return "InteractionTweaks";
}
public final FastBreak fastBreak = new FastBreak();
public final FastUse fastUse = new FastUse();
@Override
protected void setup() {
subComponents.add(fastBreak);
subComponents.add(fastUse);
}
@Player
public class FastUse extends Feature {
@Override
public String toString() {
return "FastUse";
}
@Config("Show On HUD")
public boolean showOnHUD;
@Config("Delay")
@Range("0..10")
public int delay;
@Override
public void onTick() {
((IMinecraft) Minecraft.getMinecraft()).setRightClickDelayTimer(delay);
}
@Override
public boolean displayOnClickGUI() {
return false;
}
@Override
public boolean renderInHUD() {
return showOnHUD;
}
}
public enum Mode {
Damage,
Packet
}
@Player
public class FastBreak extends Feature {
@Override
public String toString() {
return "FastBreak";
}
@Config("Show On HUD")
public boolean showOnHUD;
@Config("Mode")
public Mode mode = Mode.Damage;
@Config("NoBreakDelay")
public boolean noBreakDelay;
@Override
public void onEveryTick() {
//Hot
if (enabled && !notIngame()) {
if(noBreakDelay) {
((IPlayerControllerMP) (mc.playerController)).setBlockHitDelay(0);
}
text = this + "§7 [" + mode.toString() + "]";
} else {
text = toString();
}
}
public void damageBlock(DamageBlockEvent event) {
if(isNotUnbreakable(event.getBlockPos())) {
if (noBreakDelay) {
((IPlayerControllerMP) (mc.playerController)).setBlockHitDelay(0);
}
if (mode == Mode.Packet) {
mc.player.swingArm(EnumHand.MAIN_HAND);
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.START_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing()));
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing()));
event.setCancelled(true);
}
if (mode == Mode.Damage && ((IPlayerControllerMP) mc.playerController).getDamage() >= 0.7f) {
((IPlayerControllerMP) mc.playerController).setDamage(1.0f);
}
}
}
private boolean isNotUnbreakable(BlockPos pos) {
return mc.world.getBlockState(pos).getBlock().getBlockHardness(mc.world.getBlockState(pos), Minecraft.getMinecraft().world, pos) != -1;
}
@Override
public boolean displayOnClickGUI() {
return false;
}
@Override
public boolean renderInHUD() {
return showOnHUD;
}
}
}

View file

@ -1,72 +0,0 @@
package de.com.baseband.client.feature.modules.world;
import de.com.baseband.client.event.events.DamageBlockEvent;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.World;
import de.com.baseband.client.mixin.mixins.IPlayerControllerMP;
import de.com.baseband.client.registry.annotation.Config;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.CPacketPlayerDigging;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
@World
public class FastBreak extends Feature {
@Override
public String toString() {
return "FastBreak";
}
@Config("Mode")
public Mode mode = Mode.Damage;
@Config("NoBreakDelay")
public boolean noBreakDelay;
public enum Mode {
Damage,
Packet,
Instant
}
@Override
public void onEveryTick() {
//Hot
if (enabled && !notIngame()) {
if(noBreakDelay) {
((IPlayerControllerMP) (mc.playerController)).setBlockHitDelay(0);
}
text = this + "§7 [" + mode.toString() + "]";
} else {
text = toString();
}
}
public void damageBlock(DamageBlockEvent event) {
if(noBreakDelay) {
((IPlayerControllerMP) (mc.playerController)).setBlockHitDelay(0);
}
if (mode == Mode.Packet) {
mc.player.swingArm(EnumHand.MAIN_HAND);
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.START_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing()));
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing()));
event.setCancelled(true);
}
if (mode == Mode.Instant) {
mc.player.swingArm(EnumHand.MAIN_HAND);
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing()));
event.setCancelled(true);
}
if (mode == Mode.Damage && ((IPlayerControllerMP) mc.playerController).getDamage() >= 0.7f) {
((IPlayerControllerMP) mc.playerController).setDamage(1.0f);
}
}
private boolean isNotUnbreakable(BlockPos pos) {
return mc.world.getBlockState(pos).getBlock().getBlockHardness(mc.world.getBlockState(pos), Minecraft.getMinecraft().world, pos) != -1;
}
}

View file

@ -1,22 +0,0 @@
package de.com.baseband.client.feature.modules.world;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.Features;
import de.com.baseband.client.feature.category.World;
import net.minecraft.network.play.client.CPacketPlayerTryUseItem;
import net.minecraft.util.EnumHand;
@World
public class FastUse extends Feature {
@Override
public String toString() {
return "FastUse";
}
@Override
public void onTick() {
if (mc.gameSettings.keyBindUseItem.isKeyDown() && !mc.player.getHeldItemMainhand().isEmpty() && !Features.getFeature(AutoEat.class).eating) {
mc.getConnection().sendPacket(new CPacketPlayerTryUseItem(EnumHand.MAIN_HAND));
}
}
}

View file

@ -13,4 +13,7 @@ public interface IMinecraft {
@Invoker("rightClickMouse") @Invoker("rightClickMouse")
void rightClick(); void rightClick();
@Accessor("rightClickDelayTimer")
void setRightClickDelayTimer(int rightClickDelayTimer);
} }