blob: 8154a20477b7b242b1b7965509137f2b371d9291 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package com.arslaancodes.arslaansmagichax.modules.impl;
import com.arslaancodes.arslaansmagichax.ArslaansMagicHaxClient;
import com.arslaancodes.arslaansmagichax.events.PacketEvent;
import com.arslaancodes.arslaansmagichax.events.SendPacketEventBus;
import com.arslaancodes.arslaansmagichax.mixininterface.IPacket;
import com.arslaancodes.arslaansmagichax.modules.Category;
import com.arslaancodes.arslaansmagichax.modules.Module;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.game.ServerboundPlayerInputPacket;
import net.minecraft.world.entity.player.Input;
public class FakeSneak extends Module {
public FakeSneak() {
super("Fake Sneak", "Makes you appear as sneaking to the server when you're not. Can be used to hide nametags.", -1, Category.MOVEMENT);
}
@Override
public void tick() {
if (!this.isEnabled() || mc.player == null) return;
Input original = mc.player.input.keyPresses;
Input fakeSneak = new Input(original.forward(), original.backward(), original.left(), original.right(), original.jump(), true, original.sprint());
Packet fakeSneakPacket = new ServerboundPlayerInputPacket(fakeSneak);
((IPacket) fakeSneakPacket).hax$setTag(1337);
mc.player.connection.send(fakeSneakPacket);
}
}
|