Skip to content

Commit 15adab0

Browse files
ski
1 parent 691719c commit 15adab0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6119
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.module.modules.hidden;
6+
7+
import com.veteran.hack.module.*;
8+
9+
@Module.Info(name = "AntiWeather", description = "Removes rain from your world", category = Module.Category.HIDDEN)
10+
public class AntiWeather extends Module
11+
{
12+
public void onUpdate() {
13+
if (this.isDisabled()) {
14+
return;
15+
}
16+
if (AntiWeather.mc.world.isRaining()) {
17+
AntiWeather.mc.world.setRainStrength(0.0f);
18+
}
19+
}
20+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.module.modules.hidden;
6+
7+
import com.veteran.hack.module.*;
8+
import com.veteran.hack.setting.*;
9+
import com.veteran.hack.command.*;
10+
11+
@Module.Info(name = "AutoEncourage", category = Module.Category.HIDDEN, description = "Automatically Encourage player client side")
12+
public class AutoEncourager extends Module
13+
{
14+
private Setting<Double> delay;
15+
double delayTimer;
16+
17+
public AutoEncourager() {
18+
this.delay = (Setting<Double>)this.register((Setting)Settings.d("Delay", 240.0));
19+
this.delayTimer = (int)(this.delay.getValue() * 20.0 * 2.0);
20+
}
21+
22+
public void onUpdate() {
23+
--this.delayTimer;
24+
if (this.delayTimer == this.delay.getValue() / 2.0) {
25+
Command.sendChatMessage(AutoEncourager.mc.player.getName() + " remember to gap! Keep your head up king, go crystal those ping players");
26+
}
27+
if (this.delayTimer == 0.0) {
28+
Command.sendChatMessage(AutoEncourager.mc.player.getName() + " bro, you're literally the best at pvp.");
29+
this.delayTimer = this.delay.getValue() * 20.0 * 2.0;
30+
}
31+
}
32+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.module.modules.hidden;
6+
7+
import com.veteran.hack.module.*;
8+
import java.util.*;
9+
import com.veteran.hack.event.events.*;
10+
import me.zero.alpine.listener.*;
11+
import com.veteran.hack.setting.*;
12+
import java.util.function.*;
13+
import com.veteran.hack.command.*;
14+
import net.minecraft.network.play.server.*;
15+
16+
@Module.Info(name = "AutoFish", category = Module.Category.HIDDEN, description = "Automatically catch fish")
17+
public class AutoFish extends Module
18+
{
19+
private Setting<Boolean> defaultSetting;
20+
private Setting<Integer> baseDelay;
21+
private Setting<Integer> extraDelay;
22+
private Setting<Integer> variation;
23+
Random random;
24+
@EventHandler
25+
private Listener<PacketEvent.Receive> receiveListener;
26+
27+
public AutoFish() {
28+
this.defaultSetting = (Setting<Boolean>)this.register((Setting)Settings.b("Defaults", false));
29+
this.baseDelay = (Setting<Integer>)this.register((Setting)Settings.integerBuilder("Throw Delay").withValue(450).withMinimum(50).withMaximum(1000).build());
30+
this.extraDelay = (Setting<Integer>)this.register((Setting)Settings.integerBuilder("Catch Delay").withValue(300).withMinimum(0).withMaximum(1000).build());
31+
this.variation = (Setting<Integer>)this.register((Setting)Settings.integerBuilder("Variation").withValue(50).withMinimum(0).withMaximum(1000).build());
32+
this.receiveListener = (Listener<PacketEvent.Receive>)new Listener(e -> {
33+
if (e.getPacket() instanceof SPacketSoundEffect) {
34+
final SPacketSoundEffect pck = (SPacketSoundEffect)e.getPacket();
35+
if (pck.getSound().getSoundName().toString().toLowerCase().contains("entity.bobber.splash")) {
36+
if (AutoFish.mc.player.fishEntity == null) {
37+
return;
38+
}
39+
final int soundX = (int)pck.getX();
40+
final int soundZ = (int)pck.getZ();
41+
final int fishX = (int)AutoFish.mc.player.fishEntity.posX;
42+
final int fishZ = (int)AutoFish.mc.player.fishEntity.posZ;
43+
if (this.kindaEquals(soundX, fishX) && this.kindaEquals(fishZ, soundZ)) {
44+
new Thread(() -> {
45+
this.random = new Random();
46+
try {
47+
Thread.sleep(this.extraDelay.getValue() + this.random.ints(1L, -this.variation.getValue(), this.variation.getValue()).findFirst().getAsInt());
48+
}
49+
catch (InterruptedException ex) {}
50+
AutoFish.mc.rightClickMouse();
51+
this.random = new Random();
52+
try {
53+
Thread.sleep(this.baseDelay.getValue() + this.random.ints(1L, -this.variation.getValue(), this.variation.getValue()).findFirst().getAsInt());
54+
}
55+
catch (InterruptedException e2) {
56+
e2.printStackTrace();
57+
}
58+
AutoFish.mc.rightClickMouse();
59+
}).start();
60+
}
61+
}
62+
}
63+
}, new Predicate[0]);
64+
}
65+
66+
public void onUpdate() {
67+
if (this.defaultSetting.getValue()) {
68+
this.baseDelay.setValue(450);
69+
this.extraDelay.setValue(300);
70+
this.variation.setValue(50);
71+
this.defaultSetting.setValue(false);
72+
Command.sendChatMessage(this.getChatName() + " Set to defaults!");
73+
Command.sendChatMessage(this.getChatName() + " Close and reopen the " + this.getName() + " settings menu to see changes");
74+
}
75+
}
76+
77+
public boolean kindaEquals(final int kara, final int ni) {
78+
return ni == kara || ni == kara - 1 || ni == kara + 1;
79+
}
80+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.module.modules.hidden;
6+
7+
import com.veteran.hack.module.*;
8+
import me.zero.alpine.listener.*;
9+
import net.minecraftforge.event.entity.player.*;
10+
import java.util.function.*;
11+
import net.minecraft.block.state.*;
12+
import net.minecraft.init.*;
13+
import net.minecraft.enchantment.*;
14+
import net.minecraft.entity.*;
15+
import net.minecraft.item.*;
16+
17+
@Module.Info(name = "AutoTool", description = "Automatically switch to the best tools when mining or attacking", category = Module.Category.HIDDEN)
18+
public class AutoTool extends Module
19+
{
20+
@EventHandler
21+
private Listener<PlayerInteractEvent.LeftClickBlock> leftClickListener;
22+
@EventHandler
23+
private Listener<AttackEntityEvent> attackListener;
24+
25+
public AutoTool() {
26+
this.leftClickListener = (Listener<PlayerInteractEvent.LeftClickBlock>)new Listener(event -> this.equipBestTool(AutoTool.mc.world.getBlockState(event.getPos())), new Predicate[0]);
27+
this.attackListener = (Listener<AttackEntityEvent>)new Listener(event -> equipBestWeapon(), new Predicate[0]);
28+
}
29+
30+
private void equipBestTool(final IBlockState blockState) {
31+
int bestSlot = -1;
32+
double max = 0.0;
33+
for (int i = 0; i < 9; ++i) {
34+
final ItemStack stack = AutoTool.mc.player.inventory.getStackInSlot(i);
35+
if (!stack.isEmpty) {
36+
float speed = stack.getDestroySpeed(blockState);
37+
if (speed > 1.0f) {
38+
final int eff;
39+
speed += (float)(((eff = EnchantmentHelper.getEnchantmentLevel(Enchantments.EFFICIENCY, stack)) > 0) ? (Math.pow(eff, 2.0) + 1.0) : 0.0);
40+
if (speed > max) {
41+
max = speed;
42+
bestSlot = i;
43+
}
44+
}
45+
}
46+
}
47+
if (bestSlot != -1) {
48+
equip(bestSlot);
49+
}
50+
}
51+
52+
public static void equipBestWeapon() {
53+
int bestSlot = -1;
54+
double maxDamage = 0.0;
55+
for (int i = 0; i < 9; ++i) {
56+
final ItemStack stack = AutoTool.mc.player.inventory.getStackInSlot(i);
57+
if (!stack.isEmpty) {
58+
if (stack.getItem() instanceof ItemTool) {
59+
final double damage = ((ItemTool)stack.getItem()).attackDamage + (double)EnchantmentHelper.getModifierForCreature(stack, EnumCreatureAttribute.UNDEFINED);
60+
if (damage > maxDamage) {
61+
maxDamage = damage;
62+
bestSlot = i;
63+
}
64+
}
65+
else if (stack.getItem() instanceof ItemSword) {
66+
final double damage = ((ItemSword)stack.getItem()).getAttackDamage() + (double)EnchantmentHelper.getModifierForCreature(stack, EnumCreatureAttribute.UNDEFINED);
67+
if (damage > maxDamage) {
68+
maxDamage = damage;
69+
bestSlot = i;
70+
}
71+
}
72+
}
73+
}
74+
if (bestSlot != -1) {
75+
equip(bestSlot);
76+
}
77+
}
78+
79+
private static void equip(final int slot) {
80+
AutoTool.mc.player.inventory.currentItem = slot;
81+
AutoTool.mc.playerController.syncCurrentPlayItem();
82+
}
83+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.module.modules.hidden;
6+
7+
import com.veteran.hack.module.*;
8+
import com.veteran.hack.event.events.*;
9+
import me.zero.alpine.listener.*;
10+
import com.veteran.hack.setting.*;
11+
import java.util.function.*;
12+
import net.minecraft.network.play.client.*;
13+
import io.netty.buffer.*;
14+
import com.veteran.hack.util.*;
15+
import net.minecraft.network.*;
16+
17+
@Module.Info(name = "BetterBeacons", category = Module.Category.HIDDEN, description = "Choose any of the 5 beacon effects regardless of beacon base height")
18+
public class BetterBeacons extends Module
19+
{
20+
private Setting<Effects> effects;
21+
private boolean doCancelPacket;
22+
@EventHandler
23+
public Listener<PacketEvent.Send> packetListener;
24+
25+
public BetterBeacons() {
26+
this.effects = (Setting<Effects>)this.register((Setting)Settings.e("Effect", Effects.SPEED));
27+
this.doCancelPacket = true;
28+
this.packetListener = (Listener<PacketEvent.Send>)new Listener(event -> {
29+
if (event.getPacket() instanceof CPacketCustomPayload && ((CPacketCustomPayload)event.getPacket()).getChannelName().equals("MC|Beacon") && this.doCancelPacket) {
30+
this.doCancelPacket = false;
31+
final PacketBuffer data = ((CPacketCustomPayload)event.getPacket()).getBufferData();
32+
final int i1 = data.readInt();
33+
final int k1 = data.readInt();
34+
event.cancel();
35+
final PacketBuffer buf = new PacketBuffer(Unpooled.buffer());
36+
buf.writeInt(this.getPotionID());
37+
buf.writeInt(k1);
38+
Wrapper.getPlayer().connection.sendPacket((Packet)new CPacketCustomPayload("MC|Beacon", buf));
39+
this.doCancelPacket = true;
40+
}
41+
}, new Predicate[0]);
42+
}
43+
44+
private int getPotionID() {
45+
switch (this.effects.getValue()) {
46+
case SPEED: {
47+
return 1;
48+
}
49+
case HASTE: {
50+
return 3;
51+
}
52+
case RESISTANCE: {
53+
return 11;
54+
}
55+
case JUMP_BOOST: {
56+
return 8;
57+
}
58+
case STRENGTH: {
59+
return 5;
60+
}
61+
default: {
62+
return -1;
63+
}
64+
}
65+
}
66+
67+
private enum Effects
68+
{
69+
SPEED,
70+
HASTE,
71+
RESISTANCE,
72+
JUMP_BOOST,
73+
STRENGTH;
74+
}
75+
}

0 commit comments

Comments
 (0)