TotemPopCounter module

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

1 implementationMISC

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)MISCsrc/main/java/thunder/hack/features/modules/misc/TotemPopCounter.javaJava · 52 lines · 2.8 KB

Сounts players' pops.

SettingsNotification
TotemPopCounter.javaJava · Minecraft 26.2 · 52 lines · 2.8 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.ChatFormatting;
5
import net.minecraft.world.entity.player.Player;
6
import org.jetbrains.annotations.NotNull;
7
import thunder.hack.core.Managers;
8
import thunder.hack.events.impl.TotemPopEvent;
9
import thunder.hack.features.modules.Module;
10
import thunder.hack.features.modules.combat.AntiBot;
11
import thunder.hack.gui.notification.Notification;
12
import thunder.hack.setting.Setting;
13
14
import static thunder.hack.features.modules.client.ClientSettings.isRu;
15
16
public class TotemPopCounter extends Module {
17
    public TotemPopCounter() {
18
        super("TotemPopCounter", Category.MISC);
19
    }
20
21
    public Setting<Boolean> notification = new Setting<>("Notification", true);
22
23
    @EventHandler
24
    public void onTotemPop(@NotNull TotemPopEvent event) {
25
        if (event.getEntity() == mc.player) return;
26
27
        String s;
28
        if (isRu()) s = ChatFormatting.GREEN + event.getEntity().getName().getString() + ChatFormatting.WHITE + " попнул " + ChatFormatting.AQUA + (event.getPops() > 1 ? event.getPops() + "" + ChatFormatting.WHITE + " тотемов!" : ChatFormatting.WHITE + "тотем!");
29
        else s = ChatFormatting.GREEN + event.getEntity().getName().getString() + ChatFormatting.WHITE + " popped " + ChatFormatting.AQUA + (event.getPops() > 1 ? event.getPops() + "" + ChatFormatting.WHITE + " totems!" : ChatFormatting.WHITE + " a totem!");
30
31
        sendMessage(s);
32
        if (notification.getValue())
33
            Managers.NOTIFICATION.publicity("TotemPopCounter", s, 2, Notification.Type.INFO);
34
    }
35
36
    @Override
37
    public void onUpdate() {
38
        for (Player player : mc.level.players()) {
39
            if (player == mc.player || AntiBot.bots.contains(player) || player.getHealth() > 0 || !Managers.COMBAT.popList.containsKey(player.getName().getString()))
40
                continue;
41
42
            String s;
43
            if (isRu()) s = ChatFormatting.GREEN + player.getName().getString() + ChatFormatting.WHITE + " попнул " + (Managers.COMBAT.popList.get(player.getName().getString()) > 1 ? Managers.COMBAT.popList.get(player.getName().getString()) + "" + ChatFormatting.WHITE + " тотемов и сдох!" : ChatFormatting.WHITE + "тотем и сдох!");
44
            else s = ChatFormatting.GREEN + player.getName().getString() + ChatFormatting.WHITE + " popped " + (Managers.COMBAT.popList.get(player.getName().getString()) > 1 ? Managers.COMBAT.popList.get(player.getName().getString()) + "" + ChatFormatting.WHITE + " totems and died EZ LMAO!" : ChatFormatting.WHITE + "totem and died EZ LMAO!");
45
46
            sendMessage(s);
47
            if (notification.getValue())
48
                Managers.NOTIFICATION.publicity("TotemPopCounter", s, 2, Notification.Type.INFO);
49
        }
50
    }
51
}
52