Elytra mods

AntiFlight

A server-side flight anti-cheat for Paper and Fabric that stops fly hacks and elytra exploits while verifying legitimate elytra glide trajectories.

AntiFlight

Focused Flight and Elytra Verification

AntiFlight (also known as AntiFly) is a lightweight mod and plugin that restricts unauthorized flight without adding combat or reach anti-cheat modules. It verifies ground contact on the server side rather than trusting the client, using layered checks to catch hover hacks, slow horizontal flight, and anti-kick bobbing. When an illegal flight movement is detected, the player is moved back to their last valid supported location instead of being dropped mid-air.

The system includes an Elytra trajectory verifier that calculates expected vanilla gliding paths based on pitch, yaw, and previous velocity. It looks for multiple signs of tampering—such as unnatural constant speeds, impossible turns, or excess energy—before intervening, which keeps normal firework rocket boosts, steep dives, pull-ups, and wall crashes unaffected. Standard movement options like ender pearls, chorus fruit, portals, bed or slime bounces, wind charges, and mount dashes (including camels and nautiluses) are also accounted for to avoid false rubber-banding.

Hunger Mode and Void Access Penalties

Servers can replace hard teleport setbacks with a survival-friendly penalty by enabling Hunger Mode. When active, unauthorized flying drains food first at a rate that scales with speed while maintaining a minimum drain for idle hovering. If the flight continues for too long or the player is already starving, slow health damage begins to tick, while legitimate vanilla elytra gliding and firework boosts remain completely free of penalties.

An optional Void Access control lets administrators manage players entering the Nether roof (Y 128 and above) or the void beneath the Overworld and Nether. With Hunger Mode disabled, players who enter these zones are moved back to their last safe position, even if riding a mount. With Hunger Mode enabled, entering these areas skips the food drain phase and deals direct health damage upon entry and once every second thereafter, except for exempted players.

In-Game Commands and Configuration

Administrators can toggle checks, adjust values, and view diagnostic alerts live in the game without restarting the server. The root command is hidden from unauthorized players to prevent clients from probing the server's command list. Modifying settings via commands applies changes immediately and saves them automatically to `plugins/AntiFly/config.yml` on Bukkit-family servers or `config/antifly.json` on Fabric.

To use the commands, staff need operator status or the `antifly.admin` permission on Paper (along with `antifly.alerts` for violation notices), or moderator-level permissions on Fabric.

  1. Use `/antifly enable`, `/antifly disable`, `/antifly status`, or `/antifly help` to manage the main system state.
  2. Run `/antifly hungermode on` to switch from physical setbacks to food and health drain penalties.
  3. Run `/antifly voidaccess off` to restrict access to the Nether roof and under-bedrock void areas.
  4. Use `/antifly check [name] [on|off]` to view or toggle specific movement checks, and `/antifly set` to list or change tunable configuration keys.
  5. Manage exceptions and diagnostics using `/antifly exempt`, `/antifly unexempt`, `/antifly disabledworlds`, `/antifly alerts`, `/antifly debug`, `/antifly reset`, and `/antifly reload`.

Platform Compatibility

AntiFlight shares its core movement logic across both Fabric and Bukkit-family servers. On the Bukkit side, a single compiled file supports Bukkit, Spigot, Paper, Purpur, and Folia across versions 1.21.x through 26.3, automatically falling back to standard Bukkit methods if Paper-specific features or Folia region schedulers are absent. On Fabric, it supports Minecraft versions 1.21.11, 26.1.2, 26.2, and 26.3.

Questions

Does AntiFlight block normal Elytra flying and firework rockets?

No. Its trajectory verifier calculates normal glide physics and leaves legitimate rocket boosts, dives, and pull-ups alone unless multiple exploit indicators trigger together.

How does Hunger Mode change flight blocking?

Enabling it with /antifly hungermode on removes teleport setbacks and instead drains food (and eventually health) during unauthorized flight, while normal Elytra gliding remains free.

How do I restrict players from going on the Nether roof?

Run /antifly voidaccess off to either return players to their last safe position or deal once-per-second health damage if Hunger Mode is active.

Where are the configuration files stored?

Settings are saved in plugins/AntiFly/config.yml on Paper and Bukkit servers, and in config/antifly.json on Fabric.

Related