CurseForge · Minecraft mod
KotlinLangForge
Provides a Kotlin language adapter for Forge and Neoforge
Quick answer
Which KotlinLangForge release matches 26.2?
KotlinLangForge v2.19.0-k2.4.21-3.1+neoforge targets 1.21.9, 1.21.10, 1.21.11 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is KotlinLangForge required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does KotlinLangForge v2.19.0-k2.4.21-3.1+neoforge need?
v2.19.0-k2.4.21-3.1+neoforge on 26.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add KotlinLangForge without breaking your instance.
Built for KotlinLangForge v2.19.0-k2.4.21-3.1+neoforge on 26.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use v2.19.0-k2.4.21-3.1+neoforge. It targets 1.21.9, 1.21.10, 1.21.11 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside v2.19.0-k2.4.21-3.1+neoforge. It opens that exact file at the source.
About this project
What does KotlinLangForge add?
KotlinLangForge
Provides a Kotlin language adapter for Forge and Neoforge
This mod adds a language adapter for Kotlin and provides multiple libraries.
Developer usage
To add your language adapter to your mod, add the following lines to your (neoforge.)mods.toml.
neoforge.mods.toml
modLoader = "klf"
loaderVersion = "[1,)"
Now you can init your mod like any other. Just make sure your @Mod class is either an object or a class with a public constructor. The constructor can take the following four arguments (they should never duplicate):
- IEventBus
- ModContainer
- KotlinModContainer
- Dist
If you want to implement the libraries in your mod, import the following dependency, matching the language provider version, your loader and the (latest) version of Kotlin.
Versioning
The "language provider version" is a version only provided by KotlinLangForge. This format is not used by Forge or NeoForge and only serves as a simple differentiation variable between the different language provider implementations over the course of the versions of Minecraft.
| version of Minecraft | language provider version | supported loaders |
|---|---|---|
| 1.16.5 | 1.0 | Forge |
| 1.17.1 - 1.20.4 | 2.0 | Forge, NeoForge |
| 1.20.5 - 1.21.8 | 3.0 | NeoForge |
| 1.21.9 - 26.x | 3.1 | NeoForge |
build.gradle.kts
repositories {
maven("" rel="noopener nofollow" target="_blank">https://repo.nyon.dev/releases")
}
dependencies {
implementation("dev.nyon:KotlinLangForge:2.19.0-k2.4.21-$lpVersion+$loader")
}
For lp: <=3.0, you will have to use modImplementation.
Events
To use automatic event listener registration, the @EventBusSubscriber annotation has to be added on the class/file. Klf then will automatically find all methods that have events in their parameters and will determine which event bus to use. Additionally, you can annotate a method with @SubscribeEvent to adjust the listener's parameters.
Note for Forge developers: Private event listeners cannot be processed on Forge and will result in a crash!
Mod Bus: The mod bus is available via the top-level declaration dev.nyon.klf.MOD_BUS.
Included Libraries
- org.jetbrains.kotlin:kotlin-stdlib:2.4.21
- org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.4.21
- org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.4.21
- org.jetbrains.kotlin:kotlin-reflect:2.4.21
- org.jetbrains.kotlinx:kotlinx-serialization-core:1.13.0
- org.jetbrains.kotlinx:kotlinx-serialization-json:1.13.0
- org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.13.0
- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0
- org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.11.0
- org.jetbrains.kotlinx:kotlinx-datetime:0.8.0-0.6.x-compat
- org.jetbrains.kotlinx:kotlinx-io-core:0.9.2
- org.jetbrains.kotlinx:kotlinx-io-bytestring:0.9.2
- org.jetbrains.kotlinx:atomicfu:0.33.0
Other
If you need help with any of my mods, just join my discord server.
Project description from CurseForge.
Pick your setup
KotlinLangForge by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
1 loader build26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.21.11
1 loader build1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader buildShowing the newest 12 of 27 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
KotlinLangForge versions and loaders
v2.19.0-k2.4.21-3.1+neoforge
KotlinLangForge-2.19.0-k2.4.21-3.1-neoforge.jar
12 Nov 2026
v2.18.0-k2.4.21-3.1+neoforge
KotlinLangForge-2.18.0-k2.4.21-3.1-neoforge.jar
5 Nov 2026
v2.17.0-k2.4.21-3.1+neoforge
KotlinLangForge-2.17.0-k2.4.21-3.1-neoforge.jar
29 Oct 2026
v2.16.0-k2.4.21-3.1+neoforge
KotlinLangForge-2.16.0-k2.4.21-3.1+neoforge.jar
20 Oct 2026
v2.15.0-k2.4.21-3.1+neoforge
KotlinLangForge-2.15.0-k2.4.21-3.1+neoforge.jar
8 Oct 2026
v2.15.0-k2.4.20-3.1+neoforge
KotlinLangForge-2.15.0-k2.4.20-3.1+neoforge.jar
7 Oct 2026
v2.14.1-k2.4.20-3.1+neoforge
KotlinLangForge-2.14.1-k2.4.20-3.1+neoforge.jar
16 Sept 2026
v2.14.0-k2.4.20-3.1+neoforge
KotlinLangForge-2.14.0-k2.4.20-3.1+neoforge.jar
14 Sept 2026
v2.13.0-k2.4.20-3.1+neoforge
KotlinLangForge-2.13.0-k2.4.20-3.1+neoforge.jar
10 Sept 2026
v2.13.0-k2.4.10-3.1+neoforge
KotlinLangForge-2.13.0-k2.4.10-3.1+neoforge.jar
23 Aug 2026
v2.12.2-k2.4.10-3.1+neoforge
KotlinLangForge-2.12.2-k2.4.10-3.1+neoforge.jar
18 Jul 2026
v2.12.1-k2.4.10-3.1+neoforge
KotlinLangForge-2.12.1-k2.4.10-3.1+neoforge.jar
15 Jul 2026
Looking for an older file? The official CurseForge project page is in Resources.