Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
KotlinLangForge
ModGPL-3.0-only

KotlinLangForge

Provides a Kotlin language adapter for Forge and Neoforge

69.9K
Downloads
14
Followers
3 months ago
Updated
📦
30
Versions
libraryforgeneoforge
Download Latestv2.11.2-k2.3.10-3.1+neoforgeView on Modrinth

📖About KotlinLangForge

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.

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 - 1.21.x 3.1 NeoForge

build.gradle.kts

repositories {
    maven("https://repo.nyon.dev/releases")
}

dependencies {
    modImplementation("dev.nyon:KotlinLangForge:2.11.2-2.3.10-$lpVersion+$loader")
}

Events

To use automatic event listener registration the @EventBusSubscriber annotation has to be added on the class/file.
Additionally, you can annotate a method with SubscribeEvent to adjust the listener's parameters.
This is not necessary though!
Klf automatically looks for events in every method inside of the class and automatically
determines which event bus to use.

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 by dev.nyon.klf.MOD_BUS.

Included Libraries

  • org.jetbrains.kotlin:kotlin-stdlib:2.3.10
  • org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.3.10
  • org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.3.10
  • org.jetbrains.kotlin:kotlin-reflect:2.3.10
  • org.jetbrains.kotlinx:kotlinx-serialization-core:1.9.0
  • org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0
  • org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.9.0
  • org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2
  • org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.10.2
  • org.jetbrains.kotlinx:kotlinx-datetime:0.7.1-0.6.x-compat
  • org.jetbrains.kotlinx:kotlinx-io-core:0.8.0
  • org.jetbrains.kotlinx:kotlinx-io-bytestring:0.8.0
  • org.jetbrains.kotlinx:atomicfu:0.29.0

Other

If you need help with any of my mods, just join my discord server.

👥 Team & Contributors

btwonion
btwonionOwner

⚙️ Compatibility

Environment
❓ Unknown
Loaders
forgeneoforge
Minecraft Versions
1.21.91.21.101.21.11

🔗 Links

Modrinth Page