Back to mods
Krysztal's Language Scala project artwork

CurseForge · Minecraft mod

Krysztal's Language Scala

A fork of fabric-language-scala, but support the newest LTS version of Scala3

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Krysztal's Language Scala release should I use?

Updated 1 year ago
Latest stable file krysztal-language-scala 3.1.0+scala.3.3.4
Game version 1.17.1, 1.19.3, 1.20.2
Loader Fabric

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Krysztal's Language Scala krysztal-language-scala 3.1.0+scala.3.3.4
required
Matching file found Matched file: [1.21.1] Fabric API 0.116.18+1.21.1

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.

  1. 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.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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

Modrinth VersionCurseForge Version

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.3
  • org.scala-lang:scala-library:2.13.12
  • org.typelevel:cats-core_3:2.12.0
  • com.chuusai:shapeless_2.13:2.3.12
  • org.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.

30 available setups

Showing 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

3 of 3 releases match

Looking for an older file? The official CurseForge project page is in Resources.