Silk Compose Mod extends SilkMC with Kotlin Compose UI features. This library mod lets other mods display custom Compose Multiplatform menus inside Minecraft on the server side. Normal players can load it as a runtime mod, while project setups can pull it from Maven Central to build and show custom user interfaces to players.

Silk Compose Mod

Features:

  • Acts as a module for SilkMC to bring Kotlin Compose UI and Compose Multiplatform into Minecraft.
  • Runs on the server side to display custom user interfaces directly to players in the game.
  • Works as a standard runtime mod for regular players when added to the mod folder.
  • Includes a Maven Central package for development environments using the modImplementation("net.silkmc:silk-compose:$version") dependency line.
  • Provides the player.displayComposable function to render custom composable UI elements at a set grid size, such as 8 by 6.

Configuration:

Add the library to a development environment using the following Kotlin dependency snippet:

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

Display a basic UI to a player in code with this function:

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

Silk Compose Mod Download Links

For Minecraft 1.19.2, 1.19.1

Click to rate this post!
[Total: 0 Average: 0]