SuperFirework module

SuperFirework: Minecraft 26.3 cheat module, full source for every implementation (1 client: Combatant).

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.

CombatantMOVEMENTsrc/main/java/combatant/client/features/module/modules/movement/SuperFirework.javaJava · 108 lines · 3.7 KB
Settingssuperfirework_modesuperfirework_speed
SuperFirework.javaJava · Minecraft 26.2 · 108 lines · 3.7 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Combatant Client distribution.
3
 * Copyright (c) 2026 pivosos2007.
4
 *
5
 * Licensed under the GNU General Public License v3.0.
6
 */
7
8
package combatant.client.features.module.modules.movement;
9
10
import lombok.Getter;
11
import lombok.RequiredArgsConstructor;
12
import net.minecraft.client.Minecraft;
13
import net.minecraft.client.player.LocalPlayer;
14
import net.minecraft.world.phys.Vec3;
15
import combatant.client.config.values.EnumValue;
16
import combatant.client.config.values.NumberValue;
17
import combatant.client.events.EventHandler;
18
import combatant.client.events.impl.FireworkEvent;
19
import combatant.client.features.module.Module;
20
import combatant.client.features.module.ModuleCategory;
21
import combatant.client.features.module.ModuleInfo;
22
import combatant.client.util.aiming.RotationManager;
23
import combatant.client.util.aiming.data.Rotation;
24
25
//todo Description
26
@ModuleInfo(
27
        id = "superfirework",
28
        displayName = "SuperFirework",
29
        category = ModuleCategory.MOVEMENT
30
)
31
public class SuperFirework extends Module {
32
33
    private final EnumValue<FireworkMode> mode =
34
            enumSetting("superfirework_mode", "mode", FireworkMode.GRIM, FireworkMode.GRIM, FireworkMode.CUSTOM);
35
    private final NumberValue<Float> speed =
36
            visibleWhen(num("superfirework_speed", "speed", 20.0f, 1.0f, 100.0f), this::isCustomMode);
37
38
    private static Rotation resolveRotation(LocalPlayer player) {
39
        Rotation rotation = RotationManager.INSTANCE.getCurrentRotation();
40
        if (rotation != null) {
41
            return rotation;
42
        }
43
        return new Rotation(player.getYRot(), player.getXRot(), true);
44
    }
45
46
    private static Rotation resolveMoveRotation(LocalPlayer player) {
47
        return RotationManager.INSTANCE.getMovementRotation();
48
    }
49
50
    @EventHandler
51
    public void onFirework(FireworkEvent event) {
52
        LocalPlayer player = Minecraft.getInstance().player;
53
        if (player == null) {
54
            return;
55
        }
56
57
        Rotation rotation = resolveRotation(player);
58
        Rotation moveRotation = resolveMoveRotation(player);
59
        float yaw = rotation.yaw();
60
        float movePitch = moveRotation.pitch();
61
62
        if (mode.get() == FireworkMode.GRIM) {
63
            int ff = yaw > 0.0f ? 45 : -45;
64
            double acceleration = Math.abs((yaw + ff) % 90.0 - ff) / 45.0;
65
            double boost = 1.0 + (0.3 * acceleration * acceleration);
66
            boolean yAcceleration = Math.abs(movePitch) > 60.0f;
67
68
            Vec3 vector = event.getVector();
69
            event.setVector(new Vec3(
70
                    vector.x * boost,
71
                    yAcceleration ? vector.y * boost : vector.y,
72
                    vector.z * boost
73
            ));
74
            return;
75
        }
76
77
        if (mode.get() == FireworkMode.CUSTOM) {
78
            int ff = yaw > 0.0f ? 45 : -45;
79
            double acceleration = Math.abs((yaw + ff) % 90.0 - ff) / 45.0;
80
            double rotationBoost = 1.0 + (0.3 * acceleration * acceleration);
81
            boolean yAcceleration = Math.abs(movePitch) > 60.0f;
82
83
            Vec3 direction = moveRotation.directionVector();
84
            float customSpeed = speed.get() / 20.0f;
85
            double finalSpeed = customSpeed * rotationBoost;
86
87
            event.setVector(new Vec3(
88
                    direction.x * finalSpeed,
89
                    yAcceleration ? direction.y * finalSpeed : direction.y * customSpeed,
90
                    direction.z * finalSpeed
91
            ));
92
        }
93
    }
94
95
    private boolean isCustomMode() {
96
        return mode.get() == FireworkMode.CUSTOM;
97
    }
98
99
    @Getter
100
    @RequiredArgsConstructor
101
    private enum FireworkMode implements EnumValue.IdProvider {
102
        GRIM("Grim"),
103
        CUSTOM("Custom");
104
105
        private final String id;
106
    }
107
}
108