https://github.com/LambdAurora/SpruceUI
A Minecraft library mod which adds a new abstraction to create GUI interfaces. Still close to the Vanilla design code-wise.
https://github.com/LambdAurora/SpruceUI
fabricmc gui java minecraft-mod
Last synced: 15 days ago
JSON representation
A Minecraft library mod which adds a new abstraction to create GUI interfaces. Still close to the Vanilla design code-wise.
- Host: GitHub
- URL: https://github.com/LambdAurora/SpruceUI
- Owner: LambdAurora
- License: mit
- Created: 2019-12-24T14:18:54.000Z (over 5 years ago)
- Default Branch: 1.21.5
- Last Pushed: 2025-03-31T18:54:09.000Z (15 days ago)
- Last Synced: 2025-03-31T19:38:42.649Z (15 days ago)
- Topics: fabricmc, gui, java, minecraft-mod
- Language: Java
- Homepage:
- Size: 1.19 MB
- Stars: 141
- Watchers: 3
- Forks: 39
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fabric - SpruceUI - Utilities for creating GUIs. `MIT` (Uncategorized / Uncategorized)
README
# SpruceUI

[](https://raw.githubusercontent.com/LambdAurora/SpruceUI/master/LICENSE)

A Minecraft mod API which adds some GUI utilities.
## Build
Just do `./gradlew build` and everything should build just fine!
To test SpruceUI, you can run the testmod with `./gradlew runTestmodClient`.
## Use inside a mod
You can look at the [SpruceUI test mod](https://github.com/LambdAurora/SpruceUI/tree/1.19.4/src/testmod) for examples of use.
### Import inside a project
Add this to your `build.gradle` in addition of the base Fabric mod `build.gradle`:
```groovy
repositories {
maven {
name = "Gegy"
url = uri("https://maven.gegy.dev")
}
}dependencies {
/* Fabric definitions */include(modImplementation("dev.lambdaurora:spruceui:${project.spruceui_version}"))
}
```And this to your `gradle.properties`:
```properties
spruceui_version=7.0.0+1.21.5
```It will JAR-in-JAR SpruceUI so users of your mod don't need to download it separately!