-
Notifications
You must be signed in to change notification settings - Fork 3
/
PassiveMods.java
60 lines (53 loc) · 1.94 KB
/
PassiveMods.java
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.jorianwoltjer.liveoverflowmod.hacks;
import com.jorianwoltjer.liveoverflowmod.mixin.*;
import net.minecraft.entity.Entity;
import static com.jorianwoltjer.liveoverflowmod.client.ClientEntrypoint.client;
import static com.jorianwoltjer.liveoverflowmod.client.ClientEntrypoint.globalTimer;
import static org.lwjgl.glfw.GLFW.GLFW_KEY_MINUS;
public class PassiveMods extends ToggledHack {
/**
* Passive mods that should always be on.
* - Randomize Texture Rotations
* - Disable Weird Packets: World Border, Creative Mode, Demo Mode, End Credits
* - Insta-Mine
* - Anti-Human Bypass (round coordinates)
* - Find Herobrine
* @see AbstractBlockMixin
* @see ClientPlayNetworkHandlerMixin
* @see ClientPlayerInteractionManagerMixin
* @see PlayerPositionFullPacketMixin
* @see PlayerPositionPacketMixin
* @see VehicleMovePacketMixin
*/
public PassiveMods() {
super("Passive Mods", GLFW_KEY_MINUS);
this.defaultEnabled = true;
this.enabled = defaultEnabled;
}
@Override
public void tickEnabled() {
if (client.world == null) return;
// Find Herobrine
for (Entity entity : client.world.getEntities()) {
if (entity.getName().getString().equals("Herobrine")) {
message(String.format(
"%sFound %s §r(%.1f, %.1f, %.1f)",
globalTimer % 8 > 4 ? "" : "§a", // Blinking
entity.getName().getString(),
entity.getX(), entity.getY(), entity.getZ()
));
break;
}
}
}
@Override
public void onEnable() {
client.worldRenderer.reload(); // Reload chunks (for Texture Rotations)
}
@Override
public void onDisable() {
if (client.world != null) {
client.worldRenderer.reload(); // Reload chunks (for Texture Rotations)
}
}
}