MinecraftHub.io
Java Mods

Silk

Silk is a Kotlin library for Fabric mod authors, covering GUIs, commands, text, NBT, persistent data and networking. Players install it only when another mod asks for it.

MinecraftHub-generated cover art for Silk: a floating snowy block island with a workshop of crafting tables and furnaces, under a sunset sky

Screenshot 1 of 1. MinecraftHub-generated cover art for Silk: a floating snowy block island with a workshop of crafting tables and furnaces, under a sunset sky

What Silk works with.

PlatformJava Edition
LoadersFabric
Minecraft versions1.16.5, 1.17.1, 1.18.2, 1.19.4, 1.20.6, 1.21.11, 26.1.2, 26.2, 26.3
EnvironmentClient, Server

Silk is a Kotlin API mod for Fabric on Minecraft Java. It gives mod authors a set of Kotlin-first tools, so most players meet it as a requirement of another mod. It works on the client and the server, and both sides are optional.

Loaders and versions

What Silk provides

The project describes itself as a Minecraft API for Kotlin, targeting Fabric, Quilt and Paper. It is split into modules, and the feature set is wide.

  • An inventory GUI API and Kotlin Compose UI support.
  • A Kotlin wrapper for Brigadier commands.
  • A Kotlin DSL for building complex Text objects.
  • Coroutine utilities and tasks.
  • kotlinx.serialization support for Minecraft classes, including serialization of any class to NBT, plus an NBT builder.
  • Networking for packets, client to server, server to client and client to client, based on kotlinx.serialization.
  • A scoreboard (sideboard) API.
  • ItemStack utilities, geometry utilities and general extensions for entities and worlds.
  • Persistent data storage on chunks, entities and similar objects.

Installing Silk

Set up Fabric first with the Fabric install guide, then follow the general mod install steps.

  1. 1.Pick the Silk file that matches your Minecraft release.
  2. 2.Put it in the mods folder together with the dependencies listed above for that release.
  3. 3.Launch with the Fabric profile. The in-game mod ID of the wrapper is silk-all.

Questions about Silk.

4 questions

What is the Silk mod?

Silk is a Kotlin API for Minecraft Java that targets Fabric, Quilt and Paper. It offers inventory GUIs, Brigadier and text helpers, NBT serialization, persistent data and networking. Mod authors use it, and players install it when another mod requires it.

Does Silk add Silk Touch or spawner features?

No. Silk is a Kotlin API for mod authors and adds no gameplay features of its own. Its modules cover inventory GUIs, Brigadier commands, text objects, NBT serialization, persistent data and networking. Players install it only when another mod requires it.

Do I need Silk on both the client and the server?

Silk is optional on both sides in its metadata. In practice, install it wherever the mod that depends on it is installed, and follow that mod's own side requirements.

Is Silk the same as FabrikMC?

Silk is the current name of the project formerly published as FabrikMC. Releases below 1.5.1 carry the FabrikMC name and the Apache-2.0 License, while current releases use the GPL-3.0.

More Java Mods like Silk.

Guides for Java Mods.

Browse all Minecraft Java mods ↗