Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
valekatoz committed Feb 13, 2024
1 parent 3e0abfb commit 3a25738
Show file tree
Hide file tree
Showing 11 changed files with 244 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kore (v2.3.1)
# Kore (v2.3.2)

[![Discord](https://img.shields.io/discord/1196891678284460053?style=for-the-badge&logo=discord&label=discord&color=9089DA)](https://discord.gg/H4x6eFp9KR)
[![GitHub Repo stars](https://img.shields.io/github/stars/valekatoz/Kore?style=for-the-badge&label=stargazers&logo=esea&logoColor=FFA500&color=FFFF66)](https://github.com/valekatoz/KoreForge)
Expand Down Expand Up @@ -30,15 +30,17 @@ You can access the mod by using the default keybind (right shift).
- Auto Tool
- Fast Break
- Fast Place
- Velocity
- FreeCam
- Movement
- Inventory Move
- Safe Walk
- Combat
- Kill Aura
- Auto Clicker
- Aim Assist
- Anti Bot
- Auto Clicker
- NoSlow
- Skyblock
- Ghost Blocks
- **Purse Spoofer** (Premium)
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod_name = Kore
mod_id = kore
version = 2.3.1
version_number = 23101
version = 2.3.2
version_number = 23201
licensed = true
archiveBaseName = KoreClient
loom.platform=forge
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/kore/Kore.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public class Kore {
public static ChestStealer chestStealer;
public static FastPlace fastPlace;
public static FastBreak fastBreak;
public static Velocity velocity;
public static NoSlow noSlow;

// Movement
public static InventoryMove inventoryMove;
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/net/kore/mixins/MixinMinecraft.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package net.kore.mixins;

import net.kore.Kore;
import net.kore.mixins.player.PlayerSPAccessor;
import net.kore.modules.combat.KillAura;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.BlockPos;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Keyboard;
Expand All @@ -12,6 +15,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(Minecraft.class)
public class MixinMinecraft {
Expand Down Expand Up @@ -58,4 +62,15 @@ public void sendClickBlock(final CallbackInfo callbackInfo) {
}
}
}

@Inject(method = { "getRenderViewEntity" }, at = { @At("HEAD") })
public void getRenderViewEntity(final CallbackInfoReturnable<Entity> cir) {
if (!Kore.killAura.isToggled() || this.renderViewEntity == null || this.renderViewEntity != Kore.mc.thePlayer) {
return;
}
if (KillAura.target != null) {
((EntityLivingBase)this.renderViewEntity).rotationYawHead = ((PlayerSPAccessor)this.renderViewEntity).getLastReportedYaw();
((EntityLivingBase)this.renderViewEntity).renderYawOffset = ((PlayerSPAccessor)this.renderViewEntity).getLastReportedYaw();
}
}
}
77 changes: 77 additions & 0 deletions src/main/java/net/kore/mixins/MixinPlayHandler.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package net.kore.mixins;

import net.kore.Kore;
import net.kore.utils.SkyblockUtils;
import net.minecraft.network.play.server.S12PacketEntityVelocity;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraft.world.Explosion;
import net.minecraft.util.IThreadListener;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketThreadUtil;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import net.minecraft.network.play.server.S27PacketExplosion;
import org.spongepowered.asm.mixin.Final;
import net.minecraft.network.NetworkManager;
import net.minecraft.client.multiplayer.WorldClient;
import org.spongepowered.asm.mixin.Shadow;
import net.minecraft.client.Minecraft;
import net.minecraft.client.network.NetHandlerPlayClient;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(value = { NetHandlerPlayClient.class }, priority = 1)
public abstract class MixinPlayHandler
{
@Shadow
private Minecraft gameController;
@Shadow
private WorldClient clientWorldController;
@Shadow
private boolean doneLoadingTerrain;
@Shadow
@Final
private NetworkManager netManager;

@Inject(method = { "handleExplosion" }, at = { @At("HEAD") }, cancellable = true)
private void handleExplosion(final S27PacketExplosion packetIn, final CallbackInfo ci) {
if (Kore.velocity.isToggled()) {
PacketThreadUtil.checkThreadAndEnqueue((Packet)packetIn, (INetHandler)Kore.mc.getNetHandler(), (IThreadListener)this.gameController);
final Explosion explosion = new Explosion((World)this.gameController.theWorld, (Entity)null, packetIn.getX(), packetIn.getY(), packetIn.getZ(), packetIn.getStrength(), packetIn.getAffectedBlockPositions());
explosion.doExplosionB(true);
final boolean shouldTakeKB = Kore.velocity.skyblockKB.isEnabled() && (Minecraft.getMinecraft().thePlayer.isInLava() || SkyblockUtils.getDisplayName(Minecraft.getMinecraft().thePlayer.getHeldItem()).contains("Bonzo's Staff") || SkyblockUtils.getDisplayName(Minecraft.getMinecraft().thePlayer.getHeldItem()).contains("Jerry-chine Gun"));
if ((shouldTakeKB || Kore.velocity.hModifier.getValue() != 0.0 || Kore.velocity.vModifier.getValue() != 0.0)) {
final EntityPlayerSP thePlayer = this.gameController.thePlayer;
thePlayer.motionX += packetIn.func_149149_c() * (shouldTakeKB ? 1.0 : Kore.velocity.hModifier.getValue());
final EntityPlayerSP thePlayer2 = this.gameController.thePlayer;
thePlayer2.motionY += packetIn.func_149144_d() * (shouldTakeKB ? 1.0 : Kore.velocity.vModifier.getValue());
final EntityPlayerSP thePlayer3 = this.gameController.thePlayer;
thePlayer3.motionZ += packetIn.func_149147_e() * (shouldTakeKB ? 1.0 : Kore.velocity.hModifier.getValue());
}
ci.cancel();
}
}

@Inject(method = { "handleEntityVelocity" }, at = { @At("HEAD") }, cancellable = true)
public void handleEntityVelocity(final S12PacketEntityVelocity packetIn, final CallbackInfo ci) {
if (Kore.velocity.isToggled()) {
PacketThreadUtil.checkThreadAndEnqueue((Packet)packetIn, (INetHandler)Kore.mc.getNetHandler(), (IThreadListener)this.gameController);
final Entity entity = this.clientWorldController.getEntityByID(packetIn.getEntityID());
if (entity != null) {
if (entity.equals((Object)Kore.mc.thePlayer)) {
final boolean shouldTakeKB = Kore.velocity.skyblockKB.isEnabled() && (Minecraft.getMinecraft().thePlayer.isInLava() || SkyblockUtils.getDisplayName(Minecraft.getMinecraft().thePlayer.getHeldItem()).contains("Bonzo's Staff") || SkyblockUtils.getDisplayName(Minecraft.getMinecraft().thePlayer.getHeldItem()).contains("Jerry-chine Gun"));
if ((shouldTakeKB || Kore.velocity.hModifier.getValue() != 0.0 || Kore.velocity.vModifier.getValue() != 0.0)) {
entity.setVelocity(packetIn.getMotionX() * (shouldTakeKB ? 1.0 : Kore.velocity.hModifier.getValue()) / 8000.0, packetIn.getMotionY() * (shouldTakeKB ? 1.0 : Kore.velocity.vModifier.getValue()) / 8000.0, packetIn.getMotionZ() * (shouldTakeKB ? 1.0 : Kore.velocity.hModifier.getValue()) / 8000.0);
}
}
else {
entity.setVelocity(packetIn.getMotionX() / 8000.0, packetIn.getMotionY() / 8000.0, packetIn.getMotionZ() / 8000.0);
}
}
ci.cancel();
}
}
}
2 changes: 2 additions & 0 deletions src/main/java/net/kore/mixins/player/MixinEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public abstract class MixinEntity
@Shadow
public float rotationPitch;
@Shadow
public boolean noClip;
@Shadow
public boolean onGround;
@Shadow
public abstract boolean isSprinting();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.kore.mixins.player;

import com.google.common.collect.Maps;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.potion.Potion;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -23,6 +24,9 @@ public abstract class MixinEntityLivingBase extends MixinEntity
protected abstract void jump();
@Shadow
private Map<Integer, PotionEffect> activePotionsMap;

@Shadow
public abstract ItemStack getHeldItem();
@Shadow
public final float getHealth() {
return this.dataWatcher.getWatchableObjectFloat(6);
Expand Down
38 changes: 38 additions & 0 deletions src/main/java/net/kore/mixins/player/MixinEntityPlayerSP.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.EnumAction;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.potion.Potion;
import net.minecraft.stats.StatList;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovementInput;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.eventhandler.Event;
Expand All @@ -28,6 +30,7 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value = { EntityPlayerSP.class }, priority = 1)
Expand All @@ -52,10 +55,45 @@ public abstract class MixinEntityPlayerSP extends MixinPlayer {
@Shadow
private float lastReportedPitch;
@Shadow
public MovementInput movementInput;
@Shadow
public abstract boolean isSneaking();
@Shadow
protected abstract boolean isCurrentViewEntity();

@Redirect(method = { "onLivingUpdate" }, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/entity/EntityPlayerSP;isUsingItem()Z"))
public boolean isUsingItem(final EntityPlayerSP instance) {
return !Kore.noSlow.isToggled() && (instance.isUsingItem());
}

@Inject(method = { "onLivingUpdate" }, at = { @At(value = "INVOKE", target = "Lnet/minecraft/client/entity/AbstractClientPlayer;onLivingUpdate()V") }, cancellable = true)
public void onLivingUpdate(final CallbackInfo ci) {
if (Kore.noSlow.isToggled() && getHeldItem() != null) {
final EnumAction action = this.getHeldItem().getItem().getItemUseAction(this.getHeldItem());
if (action == EnumAction.BLOCK) {
final MovementInput movementInput = this.movementInput;
movementInput.moveForward *= (float)Kore.noSlow.swordSlowdown.getValue();
final MovementInput movementInput2 = this.movementInput;
movementInput2.moveStrafe *= (float)Kore.noSlow.swordSlowdown.getValue();
}
else if (action == EnumAction.BOW) {
final MovementInput movementInput3 = this.movementInput;
movementInput3.moveForward *= (float)Kore.noSlow.bowSlowdown.getValue();
final MovementInput movementInput4 = this.movementInput;
movementInput4.moveStrafe *= (float)Kore.noSlow.bowSlowdown.getValue();
}
else if (action != EnumAction.NONE) {
final MovementInput movementInput5 = this.movementInput;
movementInput5.moveForward *= (float)Kore.noSlow.eatingSlowdown.getValue();
final MovementInput movementInput6 = this.movementInput;
movementInput6.moveStrafe *= (float)Kore.noSlow.eatingSlowdown.getValue();
}
}
if (Kore.freeCam.isToggled()) {
this.noClip = true;
}
}

@Inject(method = { "sendChatMessage" }, at = { @At("HEAD") }, cancellable = true)
public void onSenChatMessage(final String message, final CallbackInfo ci) {
if (CommandManager.handle(message)) {
Expand Down
71 changes: 71 additions & 0 deletions src/main/java/net/kore/modules/combat/NoSlow.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package net.kore.modules.combat;

import net.kore.Kore;
import net.kore.events.MotionUpdateEvent;
import net.kore.events.PacketReceivedEvent;
import net.kore.events.PacketSentEvent;
import net.kore.modules.Module;
import net.kore.settings.ModeSetting;
import net.kore.settings.NumberSetting;
import net.kore.utils.MilliTimer;
import net.kore.utils.PacketUtils;
import net.minecraft.network.play.client.C09PacketHeldItemChange;
import net.minecraft.entity.Entity;
import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.item.ItemSword;
import net.minecraft.network.play.server.S30PacketWindowItems;

public class NoSlow extends Module
{
public NumberSetting eatingSlowdown;
public NumberSetting swordSlowdown;
public NumberSetting bowSlowdown;
public ModeSetting mode;
private final MilliTimer blockDelay;

public NoSlow() {
super("NoSlow", 0, Category.COMBAT);
this.eatingSlowdown = new NumberSetting("Eating slow", 1.0, 0.2, 1.0, 0.1);
this.swordSlowdown = new NumberSetting("Sword slow", 1.0, 0.2, 1.0, 0.1);
this.bowSlowdown = new NumberSetting("Bow slow", 1.0, 0.2, 1.0, 0.1);
this.mode = new ModeSetting("Mode", "Hypixel", new String[] { "Hypixel", "Vanilla" });
this.blockDelay = new MilliTimer();
this.addSettings(this.mode, this.swordSlowdown, this.bowSlowdown, this.eatingSlowdown);
}

@Override
public void assign()
{
Kore.noSlow = this;
}

@SubscribeEvent
public void onPacket(final PacketReceivedEvent event) {
if (event.packet instanceof S30PacketWindowItems && Kore.mc.thePlayer != null && this.isToggled() && this.mode.is("Hypixel") && Kore.mc.thePlayer.isUsingItem() && Kore.mc.thePlayer.getItemInUse().getItem() instanceof ItemSword) {
event.setCanceled(true);
}
}

@SubscribeEvent
public void unUpdate(final MotionUpdateEvent.Post event) {
if (this.isToggled() && Kore.mc.thePlayer.isUsingItem() && this.mode.is("Hypixel")) {
if (this.blockDelay.hasTimePassed(250L) && Kore.mc.thePlayer.getItemInUse().getItem() instanceof ItemSword) {
Kore.mc.thePlayer.sendQueue.addToSendQueue((Packet)new C08PacketPlayerBlockPlacement(Kore.mc.thePlayer.getHeldItem()));
Kore.mc.thePlayer.sendQueue.addToSendQueue((Packet)new C0BPacketEntityAction((Entity)Kore.mc.thePlayer, C0BPacketEntityAction.Action.STOP_SPRINTING));
Kore.mc.thePlayer.sendQueue.addToSendQueue((Packet)new C0BPacketEntityAction((Entity)Kore.mc.thePlayer, C0BPacketEntityAction.Action.START_SPRINTING));
this.blockDelay.reset();
}
PacketUtils.sendPacketNoEvent((Packet<?>)new C09PacketHeldItemChange(Kore.mc.thePlayer.inventory.currentItem));
}
}

@SubscribeEvent
public void onPacket(final PacketSentEvent event) {
if (this.isToggled() && this.mode.is("Hypixel") && event.packet instanceof C08PacketPlayerBlockPlacement && ((C08PacketPlayerBlockPlacement)event.packet).getStack() != null && ((C08PacketPlayerBlockPlacement)event.packet).getStack().getItem() instanceof ItemSword) {
this.blockDelay.reset();
}
}
}
28 changes: 28 additions & 0 deletions src/main/java/net/kore/modules/player/Velocity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.kore.modules.player;

import net.kore.Kore;
import net.kore.modules.Module;
import net.kore.settings.BooleanSetting;
import net.kore.settings.NumberSetting;

public class Velocity extends Module
{
public NumberSetting vModifier;
public NumberSetting hModifier;
public BooleanSetting skyblockKB;

public Velocity() {
super("Velocity", 0, Category.PLAYER);
this.vModifier = new NumberSetting("Vertical", 0.0, -2.0, 2.0, 0.05);
this.hModifier = new NumberSetting("Horizontal", 0.0, -2.0, 2.0, 0.05);
this.skyblockKB = new BooleanSetting("Skyblock kb", true);
this.addSettings(this.hModifier, this.vModifier, this.skyblockKB);
this.setFlagType(FlagType.DETECTED);
}

@Override
public void assign()
{
Kore.velocity = this;
}
}
1 change: 1 addition & 0 deletions src/main/resources/mixins.kore.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"MixinMinecraft",
"MinecraftAccessor",
"MixinModList",
"MixinPlayHandler",
"MixinChunk",
"PlayerControllerAccessor",
"gui.MixinGui",
Expand Down

0 comments on commit 3a25738

Please sign in to comment.