Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 659 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 659 Bytes

fabric-language-scala

Fabric language module for Scala. Adds support for using a Scala object as the main mod class and bundles the Scala libraries for you.

Usage

Add it as a dependency:

dependencies {
	modImplementation "net.fabricmc:fabric-language-scala:0.3.1.+"
}

Specify your entrypoint in your fabric.mod.json like so:

"entrypoints": {
    "main": [
        {
            "adapter": "scala",
            "value": "package.ClassName"
        }
    ]
}

Add a dependency entry to your fabric.mod.json file:

{
    "requires": {
        "fabric-language-scala": "*"
    }
}