-
Notifications
You must be signed in to change notification settings - Fork 45
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
1 parent
7d01870
commit 46f8d4f
Showing
7 changed files
with
149 additions
and
43 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
35 changes: 35 additions & 0 deletions
35
src/main/java/net/aspw/client/features/module/impl/combat/LegitVelocity.kt
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,35 @@ | ||
package net.aspw.client.features.module.impl.combat | ||
|
||
import net.aspw.client.event.EventTarget | ||
import net.aspw.client.event.UpdateEvent | ||
import net.aspw.client.features.module.Module | ||
import net.aspw.client.features.module.ModuleCategory | ||
import net.aspw.client.features.module.ModuleInfo | ||
import net.minecraft.client.settings.GameSettings | ||
|
||
@ModuleInfo(name = "LegitVelocity", spacedName = "Legit Velocity", category = ModuleCategory.COMBAT) | ||
class LegitVelocity : Module() { | ||
|
||
override fun onDisable() { | ||
if (GameSettings.isKeyDown(mc.gameSettings.keyBindForward)) | ||
mc.gameSettings.keyBindForward.pressed = true | ||
if (GameSettings.isKeyDown(mc.gameSettings.keyBindJump)) | ||
mc.gameSettings.keyBindJump.pressed = true | ||
} | ||
|
||
@EventTarget | ||
fun onUpdate(event: UpdateEvent) { | ||
if (mc.thePlayer.hurtTime >= 8) { | ||
mc.gameSettings.keyBindJump.pressed = true | ||
} | ||
if (mc.thePlayer.hurtTime >= 7) { | ||
mc.gameSettings.keyBindForward.pressed = true | ||
} else if (mc.thePlayer.hurtTime >= 4) { | ||
mc.gameSettings.keyBindJump.pressed = false | ||
mc.gameSettings.keyBindForward.pressed = false | ||
} else if (mc.thePlayer.hurtTime > 1) { | ||
mc.gameSettings.keyBindForward.pressed = GameSettings.isKeyDown(mc.gameSettings.keyBindForward) | ||
mc.gameSettings.keyBindJump.pressed = GameSettings.isKeyDown(mc.gameSettings.keyBindJump) | ||
} | ||
} | ||
} |
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
47 changes: 47 additions & 0 deletions
47
src/main/java/net/aspw/client/features/module/impl/visual/HiderESP.kt
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,47 @@ | ||
package net.aspw.client.features.module.impl.visual | ||
|
||
import net.aspw.client.event.EventTarget | ||
import net.aspw.client.event.Render3DEvent | ||
import net.aspw.client.event.WorldEvent | ||
import net.aspw.client.features.module.Module | ||
import net.aspw.client.features.module.ModuleCategory | ||
import net.aspw.client.features.module.ModuleInfo | ||
import net.aspw.client.utils.render.RenderUtils | ||
import net.minecraft.entity.item.EntityFallingBlock | ||
import net.minecraft.util.BlockPos | ||
import java.awt.Color | ||
|
||
@ModuleInfo(name = "HiderESP", spacedName = "Hider ESP", category = ModuleCategory.VISUAL) | ||
class HiderESP : Module() { | ||
|
||
val blocks: MutableMap<BlockPos, Long> = HashMap() | ||
|
||
override fun onDisable() { | ||
synchronized(blocks) { blocks.clear() } | ||
} | ||
|
||
@EventTarget | ||
fun onWorld(event: WorldEvent) { | ||
synchronized(blocks) { blocks.clear() } | ||
} | ||
|
||
@EventTarget | ||
fun onRender3D(event: Render3DEvent?) { | ||
for (i in mc.theWorld.loadedEntityList) { | ||
if (i !is EntityFallingBlock) continue | ||
RenderUtils.drawEntityBox(i, Color(255, 255, 255, 120), true) | ||
} | ||
|
||
synchronized(blocks) { | ||
val iterator: MutableIterator<Map.Entry<BlockPos, Long>> = blocks.entries.iterator() | ||
while (iterator.hasNext()) { | ||
val (key, value) = iterator.next() | ||
if (System.currentTimeMillis() - value > 2000L) { | ||
iterator.remove() | ||
continue | ||
} | ||
RenderUtils.drawBlockBox(key, Color(255, 255, 255, 120), true) | ||
} | ||
} | ||
} | ||
} |
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