# Lunge Optimizer
Lunge Optimizer is a lightweight client-side Fabric mod for Minecraft 1.21.11 that improves the timing around Lunge spear swapping.
It is mainly designed for **higher-ping servers**, where small delays between client actions and the server can make fast swaps feel less responsive. The mod helps reduce some of that unnecessary delay and handles slot-switch timing more reliably.
It does not change how Lunge itself works and does not give you any extra abilities. You still perform the swaps yourself.
## Features
* Optimizes Lunge spear slot switching
* Automatically detects Lunge-enchanted spears in your hotbar
* Uses your current ping to adjust timing
* Helps prevent redundant slot-switch packets
* Works entirely client-side
* No server-side installation required
* Very small and lightweight (~14 KB)
## Commands
```text
/lungeoptimizer
/lungeoptimizer toggle
/lungeoptimizer true
/lungeoptimizer false
```
The first two toggle the mod, while `true` and `false` can be used to enable or disable it directly.
## Configuration
The configuration file is located at:
```text
.minecraft/config/lungeoptimizer.json
```
You can configure things such as ping compensation, Lunge spear detection, slot-switch delay, and the maximum amount of ping compensation.
## What it does not do
Lunge Optimizer does not:
* Increase attack speed
* Change damage
* Change reach
* Change movement or velocity
* Manipulate cooldowns
* Modify server ticks
* Bypass anti-cheat
* Automatically attack or perform swaps
* Create fake inventory states
When the mod is disabled, everything goes back to normal vanilla behavior.
## Limitations
This mod does not automatically perform Lunge swaps. You still need to switch and attack yourself.
The main benefit is reducing the small amount of delay around a swap, so the difference will generally be more noticeable on higher-ping connections. Depending on your connection, the improvement can be around **0–50 ms per swap**.
## Requirements
* Minecraft 1.21.11
* Fabric Loader 0.16.0+
* Fabric API
* Java 21
**Client-side only.** The server does not need Lunge Optimizer installed.