ModsFinder

Koremods

by Su5eD

Koremods is a Forge library that lets other mods run Kotlin scripts which rewrite Java bytecode at load time, with the scripts compiled during play.

ForgeClient and serverMIT LicenseOpen source1.18.2 – 1.20.4

What it does

Scripts are run in an isolated environment, so they reach only the classes and resources they need. Using the ASM Kotlin wrapper Koffee, a script author can focus on writing transformers instead of repeating low-level setup. The core is kept lightweight, and it is designed around a thin frontend layer, so a platform frontend only has to connect the platform to Koremods Script. The Modlauncher frontend for Forge is published as the releases of this project.

Kotlin scripting is an experimental technology that allows Kotlin code to run without prior compilation or packaging. Each script gets turned into JVM instructions while the game runs, then a custom classloader brings it into memory, and every Kotlin language feature is available, usually together with a DSL supplied by the script definition. Koremods is published for Forge only, across five release versions: 1.18.2, 1.19.2, 1.19.3, 1.20.1 and 1.20.4, with 2.0.0 for 1.20.4 as the latest file. The mod is released under the MIT License and is open source.

Koremods is required by Somnia Awoken, so that mod needs it installed alongside. Every player and the server need a copy of the mod.

Key features

  1. Sandboxed script execution

    Scripts run in an isolated environment that limits them to the classes and resources they actually need.

  2. Koffee transformer wrapper

    The ASM Kotlin wrapper Koffee removes repetitive boilerplate from writing bytecode transformers.

  3. Lightweight runtime

    The core stays small, so script loading adds little overhead to the game.

  4. Thin frontend layer

    Each platform needs only a thin layer between itself and Koremods Script, which keeps the core reusable.

Compatibility

Latest build for each game version and loader.

1.20.42.0.0
1.20.11.0.0
1.19.30.6.1
1.19.20.6.1
1.18.20.4.11
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Required by 1 mod

Use cases

Modpack authors

Authors who need a change to vanilla or modded classes can write a short Kotlin script instead of a full mod.

Mod developers

Developers who ship a Forge mod that depends on bytecode transformation can build on the library rather than writing their own loader.

Who it’s for: Mod developers and modpack authors who want to write Kotlin bytecode transformers for Forge, and server owners who run mods that require Koremods.

How it compares

Full comparison

Kotlin Script For Forge is a server-side required mod, with the server needing it while clients may leave it out. It is open source under the MIT License and has files for 1.18 – 1.19.2 on Forge. RainAPI is a client and server mod for 1.20.1 under the MIT License, and it is not open source. Koremods covers the newer 1.18.2 – 1.20.4 range and is a library for scripting bytecode rather than a general API.

ModLoadersGame versionsEnvironmentUpdated
KoremodsForge1.18.2 – 1.20.4Client and server2023-12-27
Kotlin Script For ForgeForge1.18 – 1.19.2Server required, client optional2024-05-01
RainAPIForge1.20.1Client and server2026-02-27

Questions

Does Somnia Awoken need Koremods?

Yes. Somnia Awoken requires Koremods, so the library must be installed on the same server or client alongside it.

Does Koremods have to be installed on both sides?

Yes. A server running it needs every connecting player to have it too.

Which Minecraft versions does Koremods support?

Forge files exist for 1.18.2, 1.19.2, 1.19.3, 1.20.1 and 1.20.4. The latest file, 2.0.0, targets 1.20.4.

In the catalog

Koremods is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 13,907 mods support Minecraft 1.20.4.

More from Su5eD

All projects

Similar mods

What the author says

Koremods is a Kotlin Script bytecode manipulation framework. It providers modders a new way of transforming (not just) minecraft bytecode with rich IDE support and Gradle integration. This Modrinth project contains releases for Koremods Modlauncher, the MinecraftForge frontend.
Su5eD, on the Modrinth page

Official listing

Owner
Su5eD
Published
2022-06-09
Updated on Modrinth
2023-12-27
Facts verified
2026-10-15

Tags