PenisESP module

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

1 implementationRENDER

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)RENDERsrc/main/java/thunder/hack/features/modules/render/PenisESP.javaJava · 132 lines · 6.3 KB
SettingsOnlyOwnBallSizePenisSizeFriendSizeEnemySizeGradationFimozPenisColorHeadColor
PenisESP.javaJava · Minecraft 26.2 · 132 lines · 6.3 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.render;
2
3
import thunder.hack.features.modules.Module;
4
import thunder.hack.setting.Setting;
5
import thunder.hack.setting.impl.ColorSetting;
6
import thunder.hack.utility.render.Render3DEngine;
7
8
import java.awt.*;
9
import java.util.ArrayList;
10
import java.util.List;
11
import net.minecraft.client.gui.GuiGraphicsExtractor;
12
import net.minecraft.world.entity.Entity;
13
import net.minecraft.world.entity.player.Player;
14
import net.minecraft.world.phys.Vec3;
15
16
import static thunder.hack.core.Managers.FRIEND;
17
18
public class PenisESP extends Module {
19
    public PenisESP() {
20
        super("PenisESP", Category.RENDER);
21
    }
22
23
    private final Setting<Boolean> onlyOwn = new Setting<>("OnlyOwn", false);
24
    private final Setting<Float> ballSize = new Setting<>("BallSize", 0.1f, 0.1f, 0.5f);
25
    private final Setting<Float> penisSize = new Setting<>("PenisSize", 1.5f, 0.1f, 3.0f);
26
    private final Setting<Float> friendSize = new Setting<>("FriendSize", 1.5f, 0.1f, 3.0f);
27
    private final Setting<Float> enemySize = new Setting<>("EnemySize", 0.5f, 0.1f, 3.0f);
28
    private final Setting<Integer> gradation = new Setting<>("Gradation", 30, 20, 100);
29
    private final Setting<Boolean> fimoz = new Setting<>("Fimoz", false);
30
    private final Setting<ColorSetting> penisColor = new Setting<>("PenisColor", new ColorSetting(new Color(231, 180, 122, 255)));
31
    private final Setting<ColorSetting> headColor = new Setting<>("HeadColor", new ColorSetting(new Color(240, 50, 180, 255)), v -> !fimoz.getValue());
32
33
    @Override
34
    public void onRender2D(GuiGraphicsExtractor event) {
35
        for (Player player : mc.level.players()) {
36
            if (onlyOwn.getValue() && player != mc.player) continue;
37
            double size = (FRIEND.isFriend(player) ? friendSize.getValue() : (player != mc.player ? enemySize.getValue() : penisSize.getValue()));
38
39
            Vec3 base = getBase(player);
40
            Vec3 forward = base.add(0, player.getBbHeight() / 2.4, 0).add(Vec3.directionFromRotation(0, player.getYRot()).scale(0.1));
41
42
            Vec3 left = forward.add(Vec3.directionFromRotation(0, player.getYRot() - 90).scale(ballSize.getValue()));
43
            Vec3 right = forward.add(Vec3.directionFromRotation(0, player.getYRot() + 90).scale(ballSize.getValue()));
44
45
            drawBall(player, ballSize.getValue(), gradation.getValue(), left, penisColor.getValue().getColorObject(), 0);
46
            drawBall(player, ballSize.getValue(), gradation.getValue(), right, penisColor.getValue().getColorObject(), 0);
47
            drawPenis(player, event.pose(), size, forward);
48
        }
49
    }
50
51
    public Vec3 getBase(Entity entity) {
52
        double x = entity.xo + ((entity.getX() - entity.xo) * Render3DEngine.getTickDelta());
53
        double y = entity.yo + ((entity.getY() - entity.yo) * Render3DEngine.getTickDelta());
54
        double z = entity.zo + ((entity.getZ() - entity.zo) * Render3DEngine.getTickDelta());
55
56
        return new Vec3(x, y, z);
57
    }
58
59
    public void drawBall(Player player, double radius, int gradation, Vec3 pos, Color color, int stage) {
60
        float alpha, beta;
61
62
        for (alpha = 0.0f; alpha < Math.PI; alpha += Math.PI / gradation) {
63
            for (beta = 0.0f; beta < 2.0 * Math.PI; beta += Math.PI / gradation) {
64
                double x1 = (float) (pos.x() + (radius * Math.cos(beta) * Math.sin(alpha)));
65
                double y1 = (float) (pos.y() + (radius * Math.sin(beta) * Math.sin(alpha)));
66
                double z1 = (float) (pos.z() + (radius * Math.cos(alpha)));
67
68
                double sin = Math.sin(alpha + Math.PI / gradation);
69
                double x2 = (float) (pos.x() + (radius * Math.cos(beta) * sin));
70
                double y2 = (float) (pos.y() + (radius * Math.sin(beta) * sin));
71
                double z2 = (float) (pos.z() + (radius * Math.cos(alpha + Math.PI / gradation)));
72
73
                Vec3 base = getBase(player);
74
                Vec3 forward = base.add(0, player.getBbHeight() / 2.4, 0).add(Vec3.directionFromRotation(0, player.getYRot()).scale(0.1));
75
                Vec3 vec3d = new Vec3(x1, y1, z1);
76
77
                switch (stage) {
78
                    case 1 -> {
79
                        if (!vec3d.closerThan(forward, 0.145)) continue;
80
                    }
81
                    case 2 -> {
82
                        double size = (FRIEND.isFriend(player) ? friendSize.getValue() : (player != mc.player ? enemySize.getValue() : penisSize.getValue()));
83
                        if (vec3d.closerThan(forward, size + 0.095)) continue;
84
                    }
85
                }
86
87
                Render3DEngine.drawLine(vec3d, new Vec3(x2, y2, z2), color);
88
            }
89
        }
90
    }
91
92
    public void drawPenis(Player player, Object event, double size, Vec3 start) {
93
        Vec3 copy = start;
94
        start = start.add(Vec3.directionFromRotation(0, player.getYRot()).scale(0.1));
95
        Vec3 end = start.add(Vec3.directionFromRotation(0, player.getYRot()).scale(size));
96
97
        List<Vec3> vecs = getVec3ds(start, 0.1);
98
        vecs.forEach(vec3d -> {
99
            if (!vec3d.closerThan(copy, 0.145)) return;
100
            if (vec3d.closerThan(copy, 0.135)) return;
101
            Vec3 pos = vec3d.add(Vec3.directionFromRotation(0, player.getYRot()).scale(size));
102
            Render3DEngine.drawLine(vec3d, pos, penisColor.getValue().getColorObject());
103
        });
104
105
        drawBall(player, 0.1, gradation.getValue(), start, penisColor.getValue().getColorObject(), 1);
106
        if (fimoz.getValue()) {
107
            drawBall(player, 0.1, gradation.getValue(), end, penisColor.getValue().getColorObject(), 2);
108
        } else {
109
            drawBall(player, 0.1, gradation.getValue(), end, headColor.getValue().getColorObject(), 2);
110
        }
111
    }
112
113
    public List<Vec3> getVec3ds(Vec3 vec3d, double radius) {
114
        List<Vec3> vec3ds = new ArrayList<>();
115
        float alpha, beta;
116
117
        for (alpha = 0.0f; alpha < Math.PI; alpha += Math.PI / gradation.getValue()) {
118
            for (beta = 0.0f; beta < 2.01f * Math.PI; beta += Math.PI / gradation.getValue()) {
119
                double x1 = (float) (vec3d.x() + (radius * Math.cos(beta) * Math.sin(alpha)));
120
                double y1 = (float) (vec3d.y() + (radius * Math.sin(beta) * Math.sin(alpha)));
121
                double z1 = (float) (vec3d.z() + (radius * Math.cos(alpha)));
122
123
                Vec3 vec = new Vec3(x1, y1, z1);
124
                vec3ds.add(vec);
125
            }
126
        }
127
128
        return vec3ds;
129
    }
130
131
}
132