HomeJavaModsDistant Horizons API
Distant Horizons API
ModsJava

Distant Horizons API

by jeseibel · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.8–26.2 · Fabric⬇ Download for 1.21.7 · Fabric⬇ Download for 1.21.1–1.21.6 · Fabric⬇ Download for 1.21 · Fabric⬇ Download for 1.21.8–26.2 · Forge⬇ Download for 1.21.7 · Forge⬇ Download for 1.21.1–1.21.6 · Forge⬇ Download for 1.21.8–26.2 · NeoForge⬇ Download for 1.21.7 · NeoForge⬇ Download for 1.21.1–1.21.6 · NeoForge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Don't Download Unless You Are A Developer

Putting this in your Mods folder will do nothing.


Developer Description

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 methods.


The example projects on GitLab contains all the basics you need to get started using the API.
https://gitlab.com/distant-horizons-team/distant-horizons-api-example


Additional resources

API JavaDocs
https://distant-horizons-team.gitlab.io/distant-horizons/

Developer Wiki
https://gitlab.com/distant-horizons-team/distant-horizons/-/wikis/home

Discord
In case you have any questions or issues not addressed in the above two documents.
https://discord.gg/xAB8G4cENx

Issues
If you find any bugs or want to request a new feature, for the API, please use the main Distant Horizons GitLab issue page.
https://gitlab.com/distant-horizons-team/distant-horizons/-/issues

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more