Silk sɪlk is a Minecraft API for Kotlin - targetting Fabric, Quilt and Paper.

About

Silk is a bridge between Minecraft and common Kotlin language features, libraries, DSLs and more.

The library offers you stable and simple APIs for common tasks in mod development.

Setup with Gradle

Click on each module below to get started with it and to see how to use it in your build environment.

IMPORTANT Temporary setup requirement

See this gist to learn how to use Silk 1.9.1 and above. This is only temporary, due to Silk already making use of context receivers.

Provide it at runtime

If you use Silk, it must be available at runtime.

You can declare a dependency on the Silk releases on Modrinth or Curseforge.
For users manually downloading your mod you should advise them to download Silk alongside your mod.

All modules:

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard