跳到正文

kotlin4nothing

作者:Akoto090

Kotlin for Forge port to support newer kotlin versions and kotlin mixins

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Kotlin for Nothing

Kotlin for Forge, but with current Kotlin on Minecraft 1.20.1. Swap the jar and your mods keep working.

Kotlin for Forge stopped updating 1.20.1 at version 4.12.0, which ships Kotlin 2.2.21. Plenty of packs still run 1.20.1, so I forked that release and keep it on the latest Kotlin. It is one jar, and it needs no other mods.

What’s in the jar

  • Kotlin 2.4.21, coroutines 1.11.0 and kotlinx.serialization 1.11.0
  • The kotlinforforge loader, API and mod ID from Kotlin for Forge 4.12.0, so mods built for it load unchanged
  • No Preloading Tricks or other helper mods

Installing

  1. Remove Kotlin for Forge from your mods folder.
  2. Add the Kotlin for Nothing jar.

Mods that depend on Kotlin for Forge now load from this jar.

Do not install both mods. They fill the same slot. The game crashes before the loading screen and logs Found duplicate mods for kotlinforforge.

Requirements

  • Minecraft 1.20.1
  • Forge 47 (tested on 47.4.20)
  • Java 17

Tested mods

Bountiful, Kambrik and Cynosure all load on a Forge 1.20.1 server with Kotlin for Nothing as the only Kotlin provider.

For mod developers

The Maven coordinate is dev.akoto:kotlin4nothing, from the registry at https://git.akoto.dev/api/packages/akoto090/maven. The README covers setup and migration from Kotlin for Forge.

Credits and license

Kotlin for Nothing is a fork of Kotlin for Forge by thedarkcolour, who did the real work. It is licensed under LGPL-2.1. The LGPL does not apply to mods that only depend on it.

常见问题

kotlin4nothing 支持哪些 Minecraft 版本?

kotlin4nothing 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

kotlin4nothing 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Akoto090 的其他作品

查看全部 →