mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-14 19:04:54 -05:00
auhtlb
This commit is contained in:
parent
f5b1e24110
commit
75263396c7
4 changed files with 106 additions and 53 deletions
12
build.gradle
12
build.gradle
|
@ -3,6 +3,12 @@ plugins {
|
|||
id 'maven-publish'
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs 'lib'
|
||||
}
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
|
@ -23,6 +29,8 @@ dependencies {
|
|||
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
|
||||
|
||||
impl(name: "xauthlib-1.0.0")
|
||||
|
||||
impl('io.github.spair:imgui-java-binding:1.82.2')
|
||||
impl('io.github.spair:imgui-java-lwjgl3:1.82.2') {
|
||||
exclude group: "org.lwjgl"
|
||||
|
@ -32,8 +40,8 @@ dependencies {
|
|||
}
|
||||
|
||||
configurations.impl.dependencies.each {
|
||||
implementation(group: it.group, name: it.name, version: it.version)
|
||||
include(group: it.group, name: it.name, version: it.version)
|
||||
implementation(it)
|
||||
include(it)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
BIN
lib/xauthlib-1.0.0.jar
Normal file
BIN
lib/xauthlib-1.0.0.jar
Normal file
Binary file not shown.
|
@ -5,13 +5,43 @@
|
|||
|
||||
package me.x150.sipprivate.feature.module;
|
||||
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.*;
|
||||
import me.x150.sipprivate.feature.module.impl.fun.*;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.*;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.*;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.*;
|
||||
import me.x150.sipprivate.feature.module.impl.render.*;
|
||||
import me.x150.sipprivate.feature.module.impl.world.*;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.AntiReducedDebugInfo;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.Boaty;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.CarpetBomb;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.InstaBow;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.NoComCrash;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.OOBCrash;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.OffhandCrash;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.SkinChangeExploit;
|
||||
import me.x150.sipprivate.feature.module.impl.exploit.VanillaSpoof;
|
||||
import me.x150.sipprivate.feature.module.impl.fun.AutoTrap;
|
||||
import me.x150.sipprivate.feature.module.impl.fun.FakeHacker;
|
||||
import me.x150.sipprivate.feature.module.impl.fun.TpRange;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.AntiOffhandCrash;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.AntiPacketKick;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.FireballDeflector;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.NoFall;
|
||||
import me.x150.sipprivate.feature.module.impl.misc.ShulkerDeflector;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.AntiAnvil;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.BoatPhase;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.Flight;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.Hyperspeed;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.Phase;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.Sprint;
|
||||
import me.x150.sipprivate.feature.module.impl.movement.Swing;
|
||||
import me.x150.sipprivate.feature.module.impl.render.CaveMapper;
|
||||
import me.x150.sipprivate.feature.module.impl.render.ClickGUI;
|
||||
import me.x150.sipprivate.feature.module.impl.render.ESP;
|
||||
import me.x150.sipprivate.feature.module.impl.render.Fullbright;
|
||||
import me.x150.sipprivate.feature.module.impl.render.Hud;
|
||||
import me.x150.sipprivate.feature.module.impl.render.TargetHud;
|
||||
import me.x150.sipprivate.feature.module.impl.render.Tracers;
|
||||
import me.x150.sipprivate.feature.module.impl.world.AnyPlacer;
|
||||
import me.x150.sipprivate.feature.module.impl.world.AutoTnt;
|
||||
import me.x150.sipprivate.feature.module.impl.world.Boom;
|
||||
import me.x150.sipprivate.feature.module.impl.world.LetThereBeLight;
|
||||
import me.x150.sipprivate.feature.module.impl.world.Voider;
|
||||
import me.x150.sipprivate.feature.module.impl.world.XRAY;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -1,26 +1,28 @@
|
|||
package me.x150.sipprivate.feature.module.impl.movement;
|
||||
|
||||
import me.x150.sipprivate.CoffeeClientMain;
|
||||
import me.x150.sipprivate.feature.gui.clickgui.ClickGUI;
|
||||
import me.x150.sipprivate.feature.module.Module;
|
||||
import me.x150.sipprivate.feature.module.ModuleType;
|
||||
import me.x150.sipprivate.helper.event.EventType;
|
||||
import me.x150.sipprivate.helper.event.Events;
|
||||
import me.x150.sipprivate.helper.event.events.MouseEvent;
|
||||
import me.x150.sipprivate.helper.event.events.PacketEvent;
|
||||
import me.x150.sipprivate.helper.render.Renderer;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import java.awt.Color;
|
||||
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket;
|
||||
import net.minecraft.util.hit.HitResult;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public class Swing extends Module {
|
||||
static BlockPos swinging;
|
||||
static int t = 0;
|
||||
static int t = 0;
|
||||
|
||||
|
||||
public Swing() {
|
||||
|
@ -31,49 +33,20 @@ public class Swing extends Module {
|
|||
}
|
||||
MouseEvent me = (MouseEvent) event;
|
||||
if (me.getButton() == 0 && me.getAction() == 1) {
|
||||
try{
|
||||
try {
|
||||
HitResult hit = CoffeeClientMain.client.player.raycast(200, CoffeeClientMain.client.getTickDelta(), true);
|
||||
swinging = new BlockPos(hit.getPos());
|
||||
}catch(Exception e){}
|
||||
swinging = new BlockPos(hit.getPos());
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
});
|
||||
Events.registerEventHandler(EventType.PACKET_SEND, event -> {
|
||||
if (!this.isEnabled()) return;
|
||||
PacketEvent pe = (PacketEvent) event;
|
||||
if (pe.getPacket() instanceof ClientCommandC2SPacket e && e.getMode() == ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override public void tick() {
|
||||
if(swinging == null) return;
|
||||
double[] looks = vecCalc(swinging.getX() + 0.5, swinging.getY() + 0.5, swinging.getZ() + 0.5, CoffeeClientMain.client.player);
|
||||
Vec3d forces = Vec3d.fromPolar((float) looks[1], (float) looks[0]).normalize().multiply(0.4);
|
||||
CoffeeClientMain.client.player.addVelocity(forces.x, forces.y, forces.z);
|
||||
CoffeeClientMain.client.player.addVelocity(0, 0.0668500030517578, 0);
|
||||
if(CoffeeClientMain.client.options.keyJump.isPressed()){
|
||||
swinging = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void enable() {
|
||||
|
||||
}
|
||||
|
||||
@Override public void disable() {
|
||||
|
||||
}
|
||||
|
||||
@Override public String getContext() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override public void onWorldRender(MatrixStack matrices) {
|
||||
if(swinging == null || CoffeeClientMain.client.player == null) return;
|
||||
Vec3d cringe = new Vec3d(swinging.getX(), swinging.getY(), swinging.getZ());
|
||||
Vec3d cringe2 = new Vec3d(swinging.getX() + 0.5, swinging.getY() + 0.5, swinging.getZ() + 0.5);
|
||||
Entity entity = CoffeeClientMain.client.player;
|
||||
Vec3d eSource = new Vec3d(MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevX, entity.getX()), MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevY, entity.getY()), MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevZ, entity.getZ()));
|
||||
Renderer.R3D.renderFilled(cringe, new Vec3d(1, 1, 1), new Color(150, 150, 150, 150), matrices);
|
||||
Renderer.R3D.line(eSource, cringe2, new Color(50, 50, 50, 255), matrices);
|
||||
}
|
||||
|
||||
@Override public void onHudRender() {
|
||||
|
||||
}
|
||||
|
||||
public static double[] vecCalc(double px, double py, double pz, PlayerEntity player) {
|
||||
|
@ -91,4 +64,46 @@ public class Swing extends Module {
|
|||
yaw += 90f;
|
||||
return new double[]{yaw, pitch};
|
||||
}
|
||||
|
||||
@Override public void tick() {
|
||||
if (swinging == null) {
|
||||
return;
|
||||
}
|
||||
double[] looks = vecCalc(swinging.getX() + 0.5, swinging.getY() + 0.5, swinging.getZ() + 0.5, CoffeeClientMain.client.player);
|
||||
Vec3d forces = Vec3d.fromPolar((float) looks[1], (float) looks[0]).normalize().multiply(0.4);
|
||||
CoffeeClientMain.client.player.addVelocity(forces.x, forces.y, forces.z);
|
||||
CoffeeClientMain.client.player.addVelocity(0, 0.0668500030517578, 0);
|
||||
if (CoffeeClientMain.client.options.keySneak.isPressed()) {
|
||||
swinging = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void enable() {
|
||||
|
||||
}
|
||||
|
||||
@Override public void disable() {
|
||||
|
||||
}
|
||||
|
||||
@Override public String getContext() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override public void onWorldRender(MatrixStack matrices) {
|
||||
if (swinging == null || CoffeeClientMain.client.player == null) {
|
||||
return;
|
||||
}
|
||||
Vec3d cringe = new Vec3d(swinging.getX(), swinging.getY(), swinging.getZ());
|
||||
Vec3d cringe2 = new Vec3d(swinging.getX() + 0.5, swinging.getY() + 0.5, swinging.getZ() + 0.5);
|
||||
Entity entity = CoffeeClientMain.client.player;
|
||||
Vec3d eSource = new Vec3d(MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevX, entity.getX()), MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevY, entity.getY()), MathHelper.lerp(CoffeeClientMain.client.getTickDelta(), entity.prevZ, entity.getZ()));
|
||||
// Renderer.R3D.renderFilled(cringe, new Vec3d(1, 1, 1), new Color(150, 150, 150, 150), matrices)
|
||||
Renderer.R3D.renderFilled(cringe.add(.5,.5,.5).subtract(.25,.25,.25), new Vec3d(.5,.5,.5), ClickGUI.theme.getInactive(),matrices);
|
||||
Renderer.R3D.line(eSource, cringe2, new Color(50, 50, 50, 255), matrices);
|
||||
}
|
||||
|
||||
@Override public void onHudRender() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue