Avoid module

Avoid: Minecraft 26.3 cheat module, full source for every implementation (1 client: MelaHack (ThunderHack fork)).

1 implementationMOVEMENT

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

MelaHack (ThunderHack fork)MOVEMENTsrc/main/java/thunder/hack/features/modules/movement/Avoid.javaJava · 48 lines · 2.5 KB

Allows you to avoid colliding with specified objects.

SettingsVoidCactusFireBerryBushPowderSnowUnloadedLavaPlateTripwire
Avoid.javaJava · Minecraft 26.2 · 48 lines · 2.5 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.movement;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.world.level.block.Block;
5
import net.minecraft.world.level.block.Blocks;
6
import net.minecraft.world.level.block.PressurePlateBlock;
7
import net.minecraft.world.level.block.TripWireBlock;
8
import thunder.hack.events.impl.EventCollision;
9
import thunder.hack.features.modules.Module;
10
import thunder.hack.setting.Setting;
11
12
import static net.minecraft.world.level.block.TripWireHookBlock.ATTACHED;
13
14
public class Avoid extends Module {
15
    public Avoid() {
16
        super("Avoid", Category.MOVEMENT);
17
    }
18
19
    private final Setting<Boolean> voidAir = new Setting<>("Void", true);
20
    private final Setting<Boolean> cactus = new Setting<>("Cactus", true);
21
    private final Setting<Boolean> fire = new Setting<>("Fire", true);
22
    private final Setting<Boolean> berryBush = new Setting<>("BerryBush", true);
23
    private final Setting<Boolean> powderSnow = new Setting<>("PowderSnow", true);
24
    private final Setting<Boolean> unloaded = new Setting<>("Unloaded", true);
25
    private final Setting<Boolean> lava = new Setting<>("Lava", true);
26
    private final Setting<Boolean> plate = new Setting<>("Plate", true);
27
    private final Setting<Boolean> trapString = new Setting<>("Tripwire", true);
28
29
    @EventHandler
30
    public void onCollide(EventCollision e) {
31
        if (fullNullCheck()) return;
32
        Block b = e.getState().getBlock();
33
34
        boolean avoidUnloaded = !mc.level.hasChunk(e.getPos().getX() >> 4, e.getPos().getZ() >> 4) && unloaded.getValue();
35
        boolean avoidVoid = e.getPos().getY() < mc.level.getMinY() && voidAir.getValue();
36
        boolean avoidCactus = b == Blocks.CACTUS && cactus.getValue();
37
        boolean avoidFire = (b == Blocks.FIRE || b == Blocks.SOUL_FIRE) && fire.getValue();
38
        boolean avoidBerryBush = (b == Blocks.SWEET_BERRY_BUSH) && berryBush.getValue();
39
        boolean avoidSusSnow = (b == Blocks.POWDER_SNOW) && powderSnow.getValue();
40
        boolean avoidLava = (b == Blocks.LAVA) && lava.getValue();
41
        boolean avoidPlate = (b instanceof PressurePlateBlock || b == Blocks.LIGHT_WEIGHTED_PRESSURE_PLATE || b == Blocks.HEAVY_WEIGHTED_PRESSURE_PLATE) && plate.getValue();
42
        boolean avoidTrapString = (b instanceof TripWireBlock) && e.getState().getValue(ATTACHED) && trapString.getValue();
43
44
        if (avoidUnloaded || avoidFire || avoidCactus || avoidLava || avoidBerryBush || avoidSusSnow || avoidPlate || avoidTrapString || avoidVoid)
45
            e.setState(Blocks.DIRT.defaultBlockState());
46
    }
47
}
48