-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
165 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/club/l4j/currymod/feature/impl/commandimpl/FakePlayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package club.l4j.currymod.feature.impl.commandimpl; | ||
|
||
import club.l4j.currymod.feature.core.Command; | ||
import club.l4j.currymod.util.world.SpawnableEntity; | ||
|
||
@Command.Construct(name = "FakePlayer", description = "Fake player", alias = {"fakeplayer"}) | ||
public class FakePlayer extends Command { | ||
|
||
@Override | ||
public void onTrigger(String arguments) { | ||
SpawnableEntity e = new SpawnableEntity(mc.player); | ||
e.spawn(); | ||
super.onTrigger(arguments); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/club/l4j/currymod/feature/impl/commandimpl/GameModes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package club.l4j.currymod.feature.impl.commandimpl; | ||
|
||
import club.l4j.currymod.feature.core.Command; | ||
import net.minecraft.world.GameMode; | ||
|
||
@Command.Construct(name = "gamemode", description = "Change your gamemode client side", alias = {"gamemode"}) | ||
public class GameModes extends Command { | ||
|
||
@Override | ||
public void onTrigger(String arguments) { | ||
if(arguments.length() != 0){ | ||
String[] split = arguments.split(" "); | ||
String gm = split[0]; | ||
if(gm.equals("survival")){ | ||
mc.interactionManager.setGameMode(GameMode.SURVIVAL); | ||
sendMsg("Set client side gamemode to survival"); | ||
} else if (gm.equals("creative")){ | ||
mc.interactionManager.setGameMode(GameMode.CREATIVE); | ||
sendMsg("Set client side gamemode to creative"); | ||
} else { | ||
sendMsg("Invalid gamemode"); | ||
} | ||
}else { | ||
sendMsg("Please specify a gamemode"); | ||
} | ||
super.onTrigger(arguments); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/club/l4j/currymod/feature/impl/hackimpl/exploit/HitBoxDesync.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package club.l4j.currymod.feature.impl.hackimpl.exploit; | ||
|
||
import club.l4j.currymod.event.events.TickEvent; | ||
import club.l4j.currymod.feature.core.Hack; | ||
import demo.knight.demobus.event.DemoListen; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Box; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.math.Vec3d; | ||
|
||
@Hack.Construct(name = "HitBoxDesync", description = "Russian exploit", category = Hack.Category.EXPLOITS) | ||
public class HitBoxDesync extends Hack { | ||
|
||
public double offset = 0.200009968835369999878673424677777777777761; | ||
|
||
@DemoListen | ||
public void onTick(TickEvent e){ | ||
if (nullCheck()) {return;} | ||
Direction f = mc.player.getHorizontalFacing(); | ||
Box bb = mc.player.getBoundingBox(); | ||
Vec3d center = bb.getCenter(); | ||
Vec3d offset = new Vec3d(f.getUnitVector()); | ||
|
||
Vec3d fin = merge(Vec3d.of(BlockPos.ofFloored(center)).add(.5, 0, .5).add(offset.multiply(offset)), f); | ||
mc.player.setPosition(fin.x == 0 ? mc.player.getX() : fin.x, | ||
mc.player.getY(), | ||
fin.z == 0 ? mc.player.getZ() : fin.z); | ||
toggle(); | ||
} | ||
|
||
private Vec3d merge(Vec3d a, Direction facing) { | ||
return new Vec3d(a.x * Math.abs(facing.getUnitVector().x()), a.y * Math.abs(facing.getUnitVector().y()), a.z * Math.abs(facing.getUnitVector().z())); | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 13 additions & 5 deletions
18
src/main/java/club/l4j/currymod/mixin/minecraft/MixinClientPlayerEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/club/l4j/currymod/util/world/SpawnableEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package club.l4j.currymod.util.world; | ||
|
||
import club.l4j.currymod.util.IGlobals; | ||
import com.mojang.authlib.GameProfile; | ||
import net.minecraft.client.network.OtherClientPlayerEntity; | ||
import net.minecraft.entity.Entity; | ||
|
||
import java.util.UUID; | ||
|
||
public class SpawnableEntity extends OtherClientPlayerEntity implements IGlobals { | ||
|
||
public SpawnableEntity(Entity e) { | ||
super(mc.world, new GameProfile(UUID.randomUUID(), mc.player.getGameProfile().getName())); | ||
copyPositionAndRotation(e); | ||
setPose(e.getPose()); | ||
} | ||
|
||
public void spawn(){ | ||
unsetRemoved(); | ||
mc.world.addEntity(getId(), this); | ||
} | ||
|
||
public void destroy(){ | ||
mc.world.removeEntity(getId(), RemovalReason.DISCARDED); | ||
} | ||
} |