Elytra mods

Caelus API

A library mod and API that exposes vanilla elytra flight mechanics as an entity attribute for developers.

Caelus API

Overview and Purpose

Caelus API is a compact utility mod that replaces hardcoded vanilla elytra mechanics with a generic flight attribute. By separating gliding from the standard item check, this library lets other mods grant elytra-style flight through their own items or effects. For regular players, the standard vanilla elytra item is updated to use this new attribute behind the scenes, so its normal in-game behavior stays unchanged.

How the Flight Attribute Works

The mod controls gliding through a fall-flying attribute that starts with a default value of 0, preventing the player from gliding. When an equipped item or active modifier raises this attribute to 1 or higher, elytra flight becomes unlocked for the player. Mod developers can activate this capability in their own projects by calling the CaelusApi.getInstance().getFallFlyingAttribute() method and applying an attribute modifier.

Developer Integration and Compatibility

Caelus API provides dedicated dependency support for both Forge and NeoForge mod loaders. Creators who wish to build upon this library can include the caelus-forge or caelus-neoforge dependencies in their build.gradle setup using C4's Maven repository. All assets and source code within the project are distributed under the LGPL-3.0-or-later license.

Questions

Does Caelus API change how the regular vanilla elytra works in game?

No, while the vanilla elytra is updated to rely on the new flight attribute, its normal gameplay behavior does not change.

What attribute value is required to enable elytra flight?

The flight attribute starts at a default of 0 (flight blocked) and requires a value of 1 or more to permit elytra flight.

Which mod loaders are supported by Caelus API for developers?

The API provides dependency configurations for both Forge and NeoForge projects.

Related