Compose API
Compose API is an API that imports the dependencies required for JetBrains' technology called Compose. Required for the Voxel Studio Pro project.
介绍
Compose API – Fabric
Compose API, imports the dependencies required for JetBrains technology called Compose.
This mod does not add any features on its own.

Why ?
Compose is a technology I’ll be using in a major upcoming mod that has been in development for years.
With the following benefits :
- No need to include it in your mods.
- Can be reused by multiple mods.
- Supports MacOS ARM, Windows x64, and Linux x64.
- Includes a minimal API that disables Compose if unavailable.
- Avoids re-downloading Compose entirely when mods that use it are updated.
- Compose has an interesting Vulkan-compatible backend

Voxel Studio Pro :
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:
- For players, Customize your gameplay experience.
- For developers, making it much easier to develop datapack/resource pack/mods content and manage modpacks.
- For game designer, Easily adjust the game balancing without bothering the developers, Amazing for a server.

How to install
JetBrains Compose uses Kotlin, so don’t forget to install the mods.
Step one – Add Modrinth to your gradle repository :
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
Step two – Add Compose to your Gradle Dependencies
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
Step three – Add Jetbrains Plugin in Grandle
plugins {
// ... Your Kotlin/Loom
id 'org.jetbrains.kotlin.plugin.compose' version '2.3.10'
id 'org.jetbrains.compose' version '1.9.1'
}

What does it contain?
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 :
- The
androidx.compose.*API. - The Jetbrains Skia
org.jetbrains.skiaAPI
ComposeAPI.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.

Support the Project
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.
常见问题
Compose API 支持哪些 Minecraft 版本?
Compose API 支持 Minecraft Java 版 1.21.11–26.1.2,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Compose API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
Hardel-DW 的其他作品
查看全部 →
Neo Enchant+
Neo Enchant+ 为你带来一系列全新的附魔,探索提升《我的世界》体验的新颖方式。 新版本现已采用《我的世界》的数据驱动附魔系统,让游戏更具模组玩法!
Yggdrasil
A server mods/datapack that adds gigantic new structures to Minecraft. The structures are so gigantic that they require hours of exploration and offer unique rewards!
BeyondEnchant
BeyondEnchant a mod/datapack that allows you to increase the limit of enchantments in your game. Enhance your gear with more power and flexibility than ever before!
Better Furnace
BetterFurnace introduces seven new types of furnaces with varying cooking speeds, wihout Resource Pack ! They're getting harder and harder to get and fit perfectly with your minecraft survival.

评论
登录后评论和评分