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: 10 months 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 (about 6 years ago)
- Default Branch: 1.21.5
- Last Pushed: 2025-03-23T18:50:38.000Z (10 months ago)
- Last Synced: 2025-03-23T19:35:32.735Z (10 months ago)
- Topics: fabricmc, gui, java, minecraft-mod
- Language: Java
- Homepage:
- Size: 1.19 MB
- Stars: 140
- Watchers: 3
- Forks: 39
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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!