Religion module

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

1 implementationCLIENT

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)CLIENTsrc/main/java/thunder/hack/features/modules/client/Religion.javaJava · 54 lines · 2.3 KB
SettingsYourReligion
Religion.javaJava · Minecraft 26.2 · 54 lines · 2.3 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.client;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ServerboundInteractPacket;
5
import net.minecraft.world.entity.Entity;
6
import net.minecraft.world.entity.animal.pig.Pig;
7
import net.minecraft.world.entity.animal.sheep.Sheep;
8
import net.minecraft.world.entity.monster.Zoglin;
9
import net.minecraft.world.entity.player.Player;
10
import org.jetbrains.annotations.NotNull;
11
import thunder.hack.core.Managers;
12
import thunder.hack.features.modules.Module;
13
import thunder.hack.setting.Setting;
14
import thunder.hack.events.impl.PacketEvent;
15
16
import static thunder.hack.features.modules.client.ClientSettings.isRu;
17
import static thunder.hack.features.modules.combat.Criticals.getEntity;
18
19
public class Religion extends Module {
20
    public Religion() { super("Religion", Category.CLIENT); }
21
22
    public final Setting<YourReligion> ReligionSetting = new Setting<>("YourReligion", YourReligion.Christianity, v -> true);
23
24
    public enum YourReligion { Christianity, Islam, Satanism, Atheism }
25
    public int sheepHits = 0;
26
27
    @EventHandler
28
    @SuppressWarnings("unused")
29
    private void onPacketSend(PacketEvent.@NotNull Send e) {
30
        if (!(e.getPacket() instanceof ServerboundInteractPacket pac)) return;
31
32
        Entity entity = getEntity(pac);
33
        if (entity == null) return;
34
35
        if ((entity instanceof Pig || entity instanceof Zoglin) && ReligionSetting.is(YourReligion.Islam)) e.cancel();
36
37
        if (entity instanceof Player) {
38
            if (ReligionSetting.is(YourReligion.Christianity) && Managers.FRIEND.isFriend(entity.getName().getString())) {
39
                sendMessage(isRu() ? "Люби ближнего твоего, как самого себя!" : "Love your neighbour as yourself!");
40
                e.cancel();
41
            } else if (ReligionSetting.is(YourReligion.Christianity)) {
42
                sendMessage(isRu() ? "Не убивай!" : "Do not kill!");
43
                e.cancel();
44
            }
45
        }
46
47
        if ((entity instanceof Sheep) && ReligionSetting.is(YourReligion.Satanism)) {
48
            sheepHits++;
49
            sendMessage(isRu() ? String.format("Сатана хочет больше! Ударов по овцам: %d", sheepHits) : String.format("Satan needs more! Times you hit a sheep: %d", sheepHits));
50
        }
51
52
    }
53
}
54