Compatibility
Minecraft: Java Edition
1.20.4
Platforms
NeoForge
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
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) {
}