Call in onInitialize :
Create a new Kotlin class that represents the item you want to register: fabric-language kotlin
import net.minecraft.item.Item import net.minecraft.item.ItemGroup import net.minecraft.item.ItemStack import net.minecraft.util.Rarity Call in onInitialize : Create a new Kotlin
The mod acts as an interpreter and runtime provider. It registers a custom language adapter within Fabric's bootstrap framework. This permits the system to dynamically find, parse, and execute mod lifecycle entrypoints that are written as Kotlin classes, objects, or top-level functions. or top-level functions.