Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 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 (almost 5 years ago)
- Default Branch: 1.21
- Last Pushed: 2024-10-12T22:08:16.000Z (about 1 month ago)
- Last Synced: 2024-10-14T06:04:05.718Z (30 days ago)
- Topics: fabricmc, gui, java, minecraft-mod
- Language: Java
- Homepage:
- Size: 1.05 MB
- Stars: 125
- Watchers: 3
- Forks: 36
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SpruceUI
![Java 21](https://img.shields.io/badge/language-Java%2021-9B599A.svg?style=flat-square)
[![GitHub license](https://img.shields.io/github/license/LambdAurora/SpruceUI?style=flat-square)](https://raw.githubusercontent.com/LambdAurora/SpruceUI/master/LICENSE)
![Environment: Client](https://img.shields.io/badge/environment-client-1976d2?style=flat-square)
![Mod loader: Fabric](https://img.shields.io/badge/modloader-Fabric-1976d2?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAg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MtZmY4Yy1lNDQxLTkzMWYtNDk1ZDRmMTRjNzYwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowZWRiMWMyYy1mZjhjLWU0NDEtOTMxZi00OTVkNGYxNGM3NjAiIHN0RXZ0OndoZW49IjIwMTgtMTItMTZUMTY6NTQ6MTctMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE4IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/HiGMAAAAtUlEQVRYw+XXrQqAMBQF4D2P2eBL+QIG8RnEJFaNBjEum+0+zMQLtwwv+wV3ZzhhMDgfJ0wUSinxZUQWgKos1JP/AbD4OneIDyQPwCFniA+EJ4CaXm4TxAXCC0BNHgLhAdAnx9hC8PwGSRtAFVMQjF7cNTWED8B1cgwW20yfJgAvrssAsZ1cB3g/xckAxr6FmCDU5N6f488BrpCQ4rQBJkiMYh4ACmLzwOQF0CExinkCsvw7vgGikl+OotaKRwAAAABJRU5ErkJggg==)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 {
mavenLocal()
maven {
name 'Gegy'
url 'https://maven.gegy.dev'
}
}dependencies {
/* Fabric definitions */include(modImplementation("dev.lambdaurora:spruceui:${project.spruceui_version}"))
}
```And this to your `gradle.properties`:
```properties
spruceui_version=5.1.0+1.21
```It will JAR-in-JAR SpruceUI so users of your mod don't need to download it separately!