A quick invincibility-frame dodge dash for NeoForge 1.21.1. Tap the dodge key to snap in the direction you're moving and phase through an incoming hit — then manage your charges, because dodging isn't free and heavy armor slows you down. Standalone: no library mods, no dependencies.
Press the dodge key (default Left Alt, rebindable) to dash 8 ways relative to where you're facing — nothing held dashes forward. A dash grants a short window of invincibility against combat damage only: melee, mob attacks, and projectiles. Fall damage, fire, drowning, and every other environmental source still land, so a dodge is an escape from a fight, not from the world.
This is an original, from-scratch implementation. It's inspired in spirit by the dodge-plus-resource feel of mods like Elenai Dodge, but shares no code, assets, or naming with them.
The client predicts your dash instantly so it feels responsive, but it only ever asks the server to dodge. The server checks every condition — alive, not spectating, not riding, not flying or gliding, grounded (unless mid-air dashing is enabled), off cooldown, a charge available — against its own state before it spends a charge, arms your i-frames, and records the dash. A hacked client can't grant itself invincibility, skip the cooldown, or dodge for free; the worst it can do is ask and be told no, and the HUD snaps back to the truth.
Extensive, hand-editable configs (plus an in-game config screen) cover dash cooldown, charge count, dash distance and vertical boost, i-frame duration, recharge rate, the entire armor-weight system, and every HUD and sound option. Your own dash swoosh is a client setting; what nearby players hear is controlled by the server.
MIT licensed.