Compose API, imports the dependencies required for JetBrains technology called Compose. This mod does not add any features on its own.
!Delimeter
Compose is a technology I'll be using in a major upcoming mod that has been in development for years.
With the following benefits :
!Delimeter
In future mods it will allow integrating an in-game interface similar to Hytale's asset editor, or to Unity/Unreal Engine. A game editor built into the game, which can be used either:
!Delimeter
JetBrains Compose uses Kotlin, so don't forget to install the mods.
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
compose.desktop.currentOs is a helper from the Compose Gradle plugin that resolves to the Compose Desktop artifact matching the host OS at build time, pulling in the right native Skia/Skiko
// Change the version if needed
modImplementation "maven.modrinth:compose-api:1.2.0"
implementation compose.desktop.currentOs
If you prefer to specify the Compose API versions in gradle.properties, you can use a variable modImplementation "maven.modrinth:compose-api:${project.compose_api_version}"
With the version in gradle.properties compose_api_version=1.2.0
plugins {
// ... Your Kotlin/Loom
id 'org.jetbrains.kotlin.plugin.compose' version '2.3.10'
id 'org.jetbrains.compose' version '1.9.1'
}
!Delimeter
This mod contains all the dependencies required for Compose to work on MacOS ARM, Windows x64, and Linux x64. It can be used by any other modder. It does not include Kotlin dependencies to avoid downloading them twice, with the Fabric Kotlin mods.
This mod gives you access to :
androidx.compose.* API.org.jetbrains.skia APIComposeAPI.isAvailable function, which checks whether the operating system is compatible. This allows mod developers to simply disable their composite interfaces if the user's system is not compatible.
Everything else is available in the documentation from Google and JetBrains, the creators of Compose. You'll find tons of tutorials on YouTube or on Claude/Codex.
Compose Jetbrains - Official
Compose Desktop - JetBrains
Jetpack Compose - Google
!Delimeter
Join us on Patreon and help make Minecraft an even more amazing experience for everyone! I make tools for creators, players, and modders. And new contents datapacks or mods.