Kotlin Fabric Jun 2026
A configuration in fabric.mod.json that tells Fabric how to load Kotlin classes.
public static final Block EXAMPLE_BLOCK = new Block(FabricBlockSettings.create().strength(4.0f)); Registry.register(Registries.BLOCK, new Identifier("mod", "example_block"), EXAMPLE_BLOCK); kotlin fabric
Kotlin’s stdlib and runtime add ~1–2 MB to your mod jar and a bit more memory usage. Fine for most, but extreme lightweight mods might prefer Java. A configuration in fabric
To use Kotlin, the project must depend on the library. This library acts as a bridge, allowing the Minecraft class loader to understand Kotlin binaries. kotlin fabric