Silk Compose

Silk Compose

Bringing Kotlin Compose UI to Minecraft

1 173 downloads 10 followers

silk-compose

Silk Compose is a module for SilkMC which makes it possible to use Compose Multiplatform inside Minecraft, both on the server- and the client-side (the latter only planned).

Demo

Dependency

Development Environment

Silk Compose is available on Maven Central.

modImplementation("net.silkmc:silk-compose:$version")

As a normal user

Download silk-compose from Modrinth to provide it at runtime and add it as a mod.

Usage

The docs can be found on GitHub.

To display a basic UI for a player, do the following:

player.displayComposable(8, 6) {
    YourComposableFunction()
}

No gallery available for this project.

Version Minecraft Loader Download

1.0.3

1.19.1, 1.19.2
fabric
Download

1.0.1

1.19
fabric
Download

1.0.0

1.19
fabric
Download