> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/examples/quickmine.md).

# QuickMine

```javascript
script.description = "Mine blocks at twice the speed!";

const sendAnimation = new BooleanSetting(script, "SwingPacket", "If this is enabled the module will also send the needed swing packet", true);

script.addListener("PreTickEvent", (event) => {
    if (mc.playerController.isHittingBlock() && mc.objectMouseOver.blockPos != null) {
        if (mc.playerController.damageBlock(mc.objectMouseOver.blockPos, mc.objectMouseOver.sideHit) && sendAnimation.getValue()) {
            spoofManager.sendPacket(new C0APacketAnimation());
        }
    }
});
```
