• var scriptName = "CleanAutoBlock";
    var scriptVersion = 2.0;
    var scriptAuthor = "yorik100";
    var C07PacketPlayerDigging = Java.type('net.minecraft.network.play.client.C07PacketPlayerDigging');
    var C08PacketPlayerBlockPlacement = Java.type('net.minecraft.network.play.client.C08PacketPlayerBlockPlacement')
    var BlockPos = Java.type('net.minecraft.util.BlockPos')
    var EnumFacing = Java.type('net.minecraft.util.EnumFacing')
    var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
    var KillAura = Java.type("net.ccbluex.liquidbounce.features.module.modules.combat.KillAura");
    
    var cleanAutoBlock = new CleanAutoBlock();
    
    var client;
    
    function CleanAutoBlock() {
        this.getName = function() {
            return "VanillaAutoBlock";
        };
    
        this.getDescription = function() {
            return "Vanilla AutoBlock";
        };
    
        this.getCategory = function() {
            return "Combat";
        };
        this.onPacket = function(event) {
            var packet = event.getPacket();
            if (isBlocking && ((packet instanceof C07PacketPlayerDigging && packet.getStatus() == C07PacketPlayerDigging.Action.RELEASE_USE_ITEM) || packet instanceof C08PacketPlayerBlockPlacement)) {
                event.cancelEvent();
            }
        }
        this.onEnable = function() {
    		isBlocking = false;
        }
        this.onUpdate = function() {
    		if ((LiquidBounce.moduleManager.getModule(KillAura.class)).blockingStatus || mc.thePlayer.isBlocking()) {
    			isBlocking = true;
    		}else if (isBlocking) {
    			isBlocking = false;
    			mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
    		}
        }
        this.onDisable = function() {
    		if (isBlocking && !(LiquidBounce.moduleManager.getModule(KillAura.class)).blockingStatus && !mc.thePlayer.isBlocking()) {
    		isBlocking = false;
    		mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
    		}
        }
    }
    
    function onLoad() {}
    
    function onEnable() {
        client = moduleManager.registerModule(cleanAutoBlock);
    }
    
    function onDisable() {
        moduleManager.unregisterModule(client);
    }
    

  • @yorik100 clean


  • @Aftery thanks ❤


  • @yorik100 said in VanillaAutoBlock v2:

    var noSlowModule = moduleManager.getModule("NoSlow");

    var noSlowModule = moduleManager.getModule("NoSlow");
    

    use less right


  • @Asutoboki-kun idk I probably forgot smth else too, it's just the version I rushed because the first version sucked


  • @yorik100 but uh what does that script do?


  • @Asutoboki-kun said in VanillaAutoBlock v2:

    @yorik100 but uh what does that script do?

    Changes KillAura's NCP autoblock to a vanilla autoblock to help bypassing silent anticheats which detect NCP autoblock but not vanilla autoblock



  • Not lagbacking on ReDesky. Fully works, ty 🙂


  • omg thx i finally can autoblock on verus !!! (im not joking btw)


  • @Aftery yeah