90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Scala3 support for NeoForge 1.20.4+
you can write main class like below:
import net.neoforged.bus.api.IEventBus
import net.neoforged.fml.common.Mod
object NeoScala {
final val MOD_ID = "neoscala"
}
@Mod(NeoScala.MOD_ID)
class NeoScala(val bus: IEventBus) {
}