Skip to content

Commit

Permalink
AA
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Jan 5, 2024
1 parent ed792be commit 211a702
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class KillAura : Module() {
prevTargetEntities.clear()
attackTimer.reset()
clicks = 0
reBlockTimer.reset()
stopBlocking()
}

Expand All @@ -295,7 +296,8 @@ class KillAura : Module() {
}
if (reBlockTimer.hasTimePassed(25))
reBlockTimer.reset()
} else reBlockTimer.reset()
} else if (reBlockTimer.hasTimePassed(1))
reBlockTimer.reset()
}

if (event.eventState == EventState.POST) {
Expand Down Expand Up @@ -763,7 +765,7 @@ class KillAura : Module() {

markEntity = entity

if (autoBlockModeValue.get().equals("vanilla", true)) {
if (autoBlockModeValue.get().equals("vanilla", true) || autoBlockModeValue.get().equals("1.9+", true)) {
if (blockingStatus && canBlock && endTimer.hasTimePassed(2)) {
blockingStatus = false
PacketUtils.sendPacketNoEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import net.aspw.client.features.module.ModuleCategory
import net.aspw.client.features.module.ModuleInfo
import net.aspw.client.util.timer.TickTimer
import net.aspw.client.value.IntegerValue
import net.aspw.client.value.ListValue
import net.minecraft.client.settings.GameSettings
import net.minecraft.client.settings.KeyBinding
import net.minecraft.init.Blocks
import net.minecraft.util.BlockPos

@ModuleInfo(name = "FastBridge", spacedName = "Fast Bridge", description = "", category = ModuleCategory.PLAYER)
class FastBridge : Module() {
private val modeValue = ListValue("Mode", arrayOf("Ninja", "God"), "Ninja")
private val speedValue = IntegerValue("Place-Speed", 0, 0, 20)
private val tickTimer = TickTimer()

Expand All @@ -24,7 +26,9 @@ class FastBridge : Module() {
val shouldEagle = mc.theWorld.getBlockState(
BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1.0, mc.thePlayer.posZ)
).block === Blocks.air
mc.gameSettings.keyBindSneak.pressed = shouldEagle

if (modeValue.get().equals("ninja", true))
mc.gameSettings.keyBindSneak.pressed = shouldEagle

if (tickTimer.hasTimePassed(0 + speedValue.get()) && mc.gameSettings.keyBindUseItem.isKeyDown && shouldEagle || mc.gameSettings.keyBindUseItem.isKeyDown && !mc.thePlayer.onGround) {
KeyBinding.onTick(mc.gameSettings.keyBindUseItem.keyCode)
Expand All @@ -36,7 +40,7 @@ class FastBridge : Module() {
if (mc.thePlayer == null)
return

if (!GameSettings.isKeyDown(mc.gameSettings.keyBindSneak))
if (!GameSettings.isKeyDown(mc.gameSettings.keyBindSneak) && modeValue.get().equals("ninja", true))
mc.gameSettings.keyBindSneak.pressed = false
}
}

0 comments on commit 211a702

Please sign in to comment.