HomeJavaModsKotlin for Forge
Kotlin for Forge
ModsJava

Kotlin for Forge

by thedarkcolour · on Modrinth

Adds a Kotlin language loader and provides some optional utilities. Free Minecraft Java mod for 1.20.6, 1.21, 1.21.1.

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.9–26.2 · NeoForge⬇ Download for 1.20.6–1.21.8 · NeoForge⬇ Download for 1.20.5 · NeoForge⬇ Download for 1.20.1–1.20.4 · NeoForge⬇ Download for 1.21.9–1.21.11 · Forge⬇ Download for 1.20.6–1.21.8 · Forge⬇ Download for 1.20–1.20.4 · Forge
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.

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.

Verified by MCModsHub

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

📺 Java videos for Kotlin for Forge watch on YouTube ↗

Why Minecraft Has So Many Mod Loaders (Forge, Fabric, Quilt, NeoForge Explained)YouTubeWhy Minecraft Has So Many Mod Loaders (Forge, Fabric, Quilt, NeoForge Explained)KasaiSoraRun Fabric Mods On Forge!  #minecraft #moddedminecraft #viral #trendingYouTubeRun Fabric Mods On Forge! #minecraft #moddedminecraft #viral #trendingCygnusMCFabric Vs Forge Minecraft be likeYouTubeFabric Vs Forge Minecraft be likeTheWorldOfMisheropRun Forge Mods on Fabric in Minecraft with KiltMC (Experimental)YouTubeRun Forge Mods on Fabric in Minecraft with KiltMC (Experimental)KasaiSora
🎬Made a video about Kotlin for Forge? Feature it #1 here for free — put the mcmodshub.com link near the top of your description, or in a pinned comment.

Explore more