VanillaSpoof module

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

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.

KiwiClientCLIENTsrc/main/java/com/tangykiwi/kiwiclient/module/client/VanillaSpoof.javaJava · 42 lines · 1.4 KB

Spoofs the client brand name.

VanillaSpoof.javaJava · Minecraft 26.2 · 42 lines · 1.4 KB · complete file, verbatimOriginal ↗
1
package com.tangykiwi.kiwiclient.module.client;
2
3
import com.tangykiwi.kiwiclient.module.Module;
4
5
import net.minecraft.network.protocol.common.ServerboundCustomPayloadPacket;
6
import net.minecraft.network.protocol.common.custom.BrandPayload;
7
import net.minecraft.resources.Identifier;
8
9
import org.apache.commons.lang3.Strings;
10
11
import com.google.common.eventbus.Subscribe;
12
import com.tangykiwi.kiwiclient.event.PacketEvent;
13
import com.tangykiwi.kiwiclient.module.Category;
14
15
public class VanillaSpoof extends Module {
16
    public VanillaSpoof() {
17
        super("VanillaSpoof", "Spoofs the client brand name.", Category.CLIENT);
18
    }
19
20
    @Subscribe
21
    public void onPacketSend(PacketEvent.Send event) {
22
        if (event.packet instanceof ServerboundCustomPayloadPacket) {
23
            Identifier id = ((ServerboundCustomPayloadPacket) event.packet).payload().type().id();
24
25
            String[] channels = {"fabric", "minecraft:register"};
26
            for (String channel : channels) {
27
                if (Strings.CI.contains(id.toString(), channel)) {
28
                    event.cancel();
29
                    return;
30
                }
31
            }
32
33
            if (id.equals(BrandPayload.TYPE.id())) {
34
                ServerboundCustomPayloadPacket spoofedPacket = new ServerboundCustomPayloadPacket(new BrandPayload("vanilla"));
35
36
                event.connection.send(spoofedPacket, null, true);
37
                event.cancel();
38
            }
39
        }
40
    }
41
}
42