CurseForge · Minecraft mod
Krysztal's Language Scala
A fork of fabric-language-scala, but support the newest LTS version of Scala3
Quick answer
Which Krysztal's Language Scala release should I use?
Krysztal's Language Scala krysztal-language-scala 3.1.0+scala.3.3.4 targets 1.17.1, 1.19.3, 1.20.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is Krysztal's Language Scala required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Krysztal's Language Scala krysztal-language-scala 3.1.0+scala.3.3.4 need?
krysztal-language-scala 3.1.0+scala.3.3.4. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Krysztal's Language Scala without breaking your instance.
Built for Krysztal's Language Scala krysztal-language-scala 3.1.0+scala.3.3.4. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use krysztal-language-scala 3.1.0+scala.3.3.4. It targets 1.17.1, 1.19.3, 1.20.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside krysztal-language-scala 3.1.0+scala.3.3.4. It opens that exact file at the source.
About this project
What does Krysztal's Language Scala add?
Krysztal's fork of fabric-language-scala
This is a fork of fabric-language-scala,support the newest LTS Scala3 version and bundled Scala Library.
Why fork?
The number of people who use Scala is very small, but the power of Scala's expressiveness makes the language practically perfect for developing mods.
The original fabric-language-scala was unmaintained and the maintainers couldn't spare any more effort to maintain it, so it slowly became unmaintained and non-functional.
Support for Scala3 is, if anything, almost non-existent.
So I decided to fork it and maintain it myself and implement it to be compatible with the original fabric-language-scala,named krysztal-language-scala.
NOTE
- This language adaptor will synchronize content upstream as much as possible and will ensure availability as much as possible.
- This language adaptor only provide LTS version of Scala3
Bundled libraries
From a number of perspectives, the library needs to bind some popular scala libraries.
org.scala-lang:scala3-library_3:3.3.3org.scala-lang:scala-library:2.13.12org.typelevel:cats-core_3:2.12.0com.chuusai:shapeless_2.13:2.3.12org.typelevel:mouse_3:1.3.1
How to use?
Add dependence
Add those lines to your project's build.gradle
plugins {
...
id 'scala' // Add `scala` plugin for gradle
...
}
repositories {
...
maven { url "" rel="noopener nofollow" target="_blank">https://maven.dragons.plus/releases" }
...
}
dependencies {
...
modImplementation "dev.krysztal:krysztal-language-scala:$VERSION$"
...
}
Usage: class
Suppose your entry name is ExampleEntry.scala
import net.fabricmc.api.ModInitializer;
class ExampleEntry extends ModInitializer {
lazy val logger = LoggerFactory.getLogger("KMMO")
override def onInitialize(): Unit = {
logger.info("Hi")
}
}
And in fabric.mod.json
...
"entrypoints": {
"main": [
"dev.example.ExampleEntry"
],
},
...
But thanks to Scala's excellent interoperability with Java, we can use this library simply as a Java entry point :)
Usage: object
Suppose your entry name is ExampleEntry.scala
import net.fabricmc.api.ModInitializer;
object ExampleEntry extends ModInitializer {
lazy val logger = LoggerFactory.getLogger("KMMO")
override def onInitialize(): Unit = {
logger.info("Hi")
}
}
And in fabric.mod.json
...
"entrypoints": {
"main": [
{
"adapter": "scala",
"value": "dev.example.ExampleEntry"
}
],
},
...
Known issues
unknown invokedynamic bsm: scala/runtime*
This issues caused by scala's class loading mechanism.
It won't affect almost anything. Ignore it.
Project description from CurseForge.
Pick your setup
Krysztal's Language Scala by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader build1.20.6
1 loader build1.20.5-Snapshot
1 loader build1.20.5
1 loader build1.20.4
1 loader build1.20.3-Snapshot
1 loader build1.20.3
1 loader build1.20.2-Snapshot
1 loader build1.20.2
1 loader buildShowing the newest 12 of 30 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Krysztal's Language Scala versions and loaders
krysztal-language-scala 3.1.0+scala.3.3.4
krysztal-language-scala-3.1.0+scala.3.3.4.jar
24 Nov 2024
krysztal-language-scala 3.1.0+scala.3.5.1
krysztal-language-scala-3.1.0+scala.3.5.1.jar
24 Nov 2024
krysztal-language-scala 3.0.0+scala.3.3.3
krysztal-language-scala-3.0.0+scala.3.3.3.jar
7 Apr 2024
Looking for an older file? The official CurseForge project page is in Resources.