Distant Horizons API
by jeseibel
This library is for developers who write code against the API, offering a loader-independent way to reach its interfaces.
What it does
The jar bundles the source code and compiled classes needed to interact with the API without depending on Fabric, Forge or NeoForge specifics. Developers add it to a build during development in place of the full jar, which keeps code from calling unsafe internal methods by accident. It is not meant to be placed in a Mods folder, where it does nothing.
The API is published for Fabric, Forge and NeoForge across 26 release versions, 1.12.2 – 26.3. The latest file is 7.2.0 for 26.3, released on 2026-09-21. It works on either side, and neither needs it, and the code is open source under the GNU Lesser General Public License v3.0 only. Example projects on GitLab cover the basics, and the main issue page takes bug reports and feature requests for the API.
Key features
Loader-independent classes
The jar contains the classes needed to talk to the API without relying on one specific mod loader.
Development-only jar
It is meant to be used while building a project, in place of the full jar.
Source code included
The source is packaged with the classes, so developers can read how the interfaces behave.
Example projects
Example projects on GitLab show the basic steps for starting to use the API.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x10 of 10 versions with builds
1.20.x5 of 5 versions with builds
1.19.x2 of 2 versions with builds
1.18.x1 of 1 version with builds
1.17.x1 of 1 version with builds
1.16.x1 of 1 version with builds
1.12.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Building add-ons
Developers who extend the mod compile against this jar rather than the full build.
Who it’s for: Mod developers and maintainers who write code that uses the API. Players who only want to use the game feature do not need this jar.
Questions
Should this jar go in the Mods folder?
Why use this instead of the full jar?
Where should API bugs be reported?
In the catalog
Distant Horizons API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from jeseibel
Similar mods
What the author says
Putting this in your Mods folder will do nothing. This jar includes the source code and classes needed to interact with Distant Horizons in a Minecraft and mod loader independent way. This jar should be used during development instead of the full Distant Horizons jar to prevent accidentally using unsafe internal…
Official listing
- Modrinth page
- modrinth.com/mod/distanthorizonsapi
- Owner
- jeseibel
- Published
- 2023-06-24
- Updated on Modrinth
- 2026-09-21
- Facts verified
- 2026-10-15
