Kotlin for Forge

Kotlin for Forge

Adds a Kotlin language loader and provides some optional utilities.

by
46.1M Downloads
forgeneoforgelibrary
Rent Server with this Mod

About this Mod

Used to make mods with the Kotlin programming language. Works by shading the Kotlin libraries, providing KotlinLanguageProvider to load @Mod object declarations, providing AutoKotlinEventBusSubscriber to load @EventBusSubscriber declarations, and providing useful utility functions and constants.

As of Kotlin for Forge 1.8.0, this provides Kotlin 1.4.21, Kotlin coroutines 1.4.2, Kotlin JSON serialization 1.0.1, and Jetbrains annotations 20.1.0.

If you're not a mod developer, this is a dependency mod.

Unlike Kottle, this library (as of 1.2.0) provides its own implementation of IEventBus that supports IEventBus#addListener and IEventBus#addGenericListener with function references.

Information for how to implement can be found here.
You do not have to use the language loader or any of the features Kotlin for Forge provides, you can just use it for the bundled Kotlin libraries.

If you'd like to ask for help or suggest something, feel free to do so on the Kotlin for Forge discord server.

Available Versions

Kotlin for Forge 5.12.0release
MC 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8forge, neoforge
June 28, 2026
Kotlin for Forge 6.3.0release
MC 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2neoforge
June 28, 2026
Kotlin for Forge 6.2.0release
MC 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2neoforge
March 10, 2026
Kotlin for Forge 5.11.0release
MC 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5forge, neoforge
January 17, 2026
Kotlin for Forge 6.1.0release
MC 1.21.9, 1.21.10, 1.21.11neoforge
January 17, 2026

How to Install Kotlin for Forge on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (26.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Kotlin for Forge". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forgeneoforge

Minecraft Versions

26.2, 26.1.2, 26.1.1 (+44 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Kotlin for Forge server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2). You can switch loaders with one click in the panel.

Is Kotlin for Forge compatible with forge and neoforge?

Kotlin for Forge officially supports forge, neoforge for Minecraft 26.2, 26.1.2, 26.1.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Kotlin for Forge – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Kotlin for Forge consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Kotlin for Forge with just one click on your server.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v2.1 only
Server-side
Optional

Supported Versions

26.226.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.6+37 more