list = [
    fake = value.createBoolean("Fake", true)
]

module = {
    name: "Block",
    author: "Trash",
    version: 1.0,
    values: list,
    onMotion: function () {
        mc.thePlayer.itemInUseCount = (fake.get() && !KillAura.getValue("AutoBlock").get() && KillAuraClass.target && !!(heldItem = mc.thePlayer.getHeldItem()) && heldItem.getItem() instanceof Java.type("net.minecraft.item.ItemSword")) || mc.thePlayer.isBlocking() ? 1337 : mc.thePlayer.itemInUseCount == 1337 ? 0 : mc.thePlayer.itemInUseCount;
        (KillAuraClass.blockingStatus || mc.thePlayer.itemInUseCount == 0) && (mc.thePlayer.swingProgress = [1, 2, 3, 4, 5, 6, 7, 8][animation.get()], mc.thePlayer.prevSwingProgress = mc.thePlayer.swingProgress - (1 * vibration.get()));
    },
    onDisable: function () {
        mc.thePlayer.itemInUseCount = mc.thePlayer.itemInUseCount == 1337 ? 1337 : mc.thePlayer.itemInUseCount;
    },
    onLoad: function () {
        moduleManager.getModule(this.name).state = false;
    }
}

KillAuraClass = Java.type("net.ccbluex.liquidbounce.LiquidBounce").moduleManager.getModule(Java.type("net.ccbluex.liquidbounce.features.module.modules.combat.KillAura").class);
KillAura = moduleManager.getModule("Killaura");

script.import("Core.lib");