multitask module

multitask: Minecraft 26.3 cheat module, full source for every implementation (3 clients: Meteor Client, MelaHack (ThunderHack fork), OfflineClient).

3 implementationsPlayerPLAYER

Full module source: 3 implementations

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

Meteor ClientPlayersrc/main/java/meteordevelopment/meteorclient/systems/modules/player/Multitask.javaJava · 32 lines · 1.1 KB

Lets you use items and attack at the same time.

Settingsattacking-entities
Multitask.javaJava · Minecraft 26.2 · 32 lines · 1.1 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.player;
7
8
import meteordevelopment.meteorclient.settings.BoolSetting;
9
import meteordevelopment.meteorclient.settings.Setting;
10
import meteordevelopment.meteorclient.settings.SettingGroup;
11
import meteordevelopment.meteorclient.systems.modules.Categories;
12
import meteordevelopment.meteorclient.systems.modules.Module;
13
14
public class Multitask extends Module {
15
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
16
17
    private final Setting<Boolean> attackingEntities = sgGeneral.add(new BoolSetting.Builder()
18
        .name("attacking-entities")
19
        .description("Lets you attack entities while using an item.")
20
        .defaultValue(true)
21
        .build()
22
    );
23
24
    public Multitask() {
25
        super(Categories.Player, "multitask", "Lets you use items and attack at the same time.");
26
    }
27
28
    public boolean attackingEntities() {
29
        return isActive() && attackingEntities.get();
30
    }
31
}
32
MelaHack (ThunderHack fork)PLAYERsrc/main/java/thunder/hack/features/modules/player/MultiTask.javaJava · 26 lines · 1.0 KB

Allows you break and eat at the same time.

MultiTask.javaJava · Minecraft 26.2 · 26 lines · 1.0 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.player;
2
3
import net.minecraft.world.InteractionHand;
4
import net.minecraft.world.phys.BlockHitResult;
5
import net.minecraft.world.phys.EntityHitResult;
6
import thunder.hack.features.modules.Module;
7
8
public class MultiTask extends Module {
9
    public MultiTask() {
10
        super("MultiTask", Category.PLAYER);
11
    }
12
13
    @Override
14
    public void onUpdate() {
15
        if (mc.hitResult instanceof BlockHitResult crossHair && crossHair.getBlockPos() != null && mc.options.keyAttack.isDown() && !mc.level.getBlockState(crossHair.getBlockPos()).isAir()) {
16
            mc.gameMode.startDestroyBlock(crossHair.getBlockPos(), crossHair.getDirection());
17
            mc.player.swing(InteractionHand.MAIN_HAND);
18
        }
19
20
        if (mc.hitResult instanceof EntityHitResult ehr && ehr.getEntity() != null && mc.options.keyAttack.isDown() && mc.player.getAttackStrengthScale(0.5f) > 0.9f) {
21
            mc.gameMode.attack(mc.player, ehr.getEntity());
22
            mc.player.swing(InteractionHand.MAIN_HAND);
23
        }
24
    }
25
}
26
OfflineClientPLAYERsrc/main/java/com/jellypudding/offlineclient/modules/player/Multitask.javaJava · 37 lines · 1.4 KB

Lets you mine and place blocks whilst you eat or draw a bow.

SettingsUse whilst miningMine whilst usingAttack whilst using
Multitask.javaJava · Minecraft 26.2 · 37 lines · 1.4 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.player;
2
3
import com.jellypudding.offlineclient.module.Category;
4
import com.jellypudding.offlineclient.module.Module;
5
import com.jellypudding.offlineclient.setting.BoolSetting;
6
7
// Lifts the three vanilla checks that stop one action whilst another is running.
8
// The work is done in MinecraftMixin which reads these settings.
9
public final class Multitask extends Module {
10
11
    private final BoolSetting whileMining = new BoolSetting("Use whilst mining",
12
        "Place and use items whilst you are breaking a block.", true);
13
    private final BoolSetting whileUsing = new BoolSetting("Mine whilst using",
14
        "Break blocks whilst you are eating or drawing a bow.", true);
15
    private final BoolSetting attackWhileUsing = new BoolSetting("Attack whilst using",
16
        "Hit entities whilst you are eating or drawing a bow.", true);
17
18
    public Multitask() {
19
        super("Multitask", "Lets you mine and place blocks whilst you eat or draw a bow.",
20
            Category.PLAYER);
21
        addSettings(whileMining, whileUsing, attackWhileUsing);
22
        searchTags("multi task", "eat and mine", "bow mine");
23
    }
24
25
    public boolean usesWhileMining() {
26
        return isEnabled() && whileMining.isOn();
27
    }
28
29
    public boolean minesWhileUsing() {
30
        return isEnabled() && whileUsing.isOn();
31
    }
32
33
    public boolean attacksWhileUsing() {
34
        return isEnabled() && attackWhileUsing.isOn();
35
    }
36
}
37