Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0x3C50/Renderer
An easy to use rendering library for Minecraft mods using the Fabric toolchain
https://github.com/0x3C50/Renderer
fabric minecraft
Last synced: about 2 months ago
JSON representation
An easy to use rendering library for Minecraft mods using the Fabric toolchain
- Host: GitHub
- URL: https://github.com/0x3C50/Renderer
- Owner: 0x3C50
- License: other
- Created: 2022-04-09T18:41:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T14:56:10.000Z (2 months ago)
- Last Synced: 2024-10-23T18:28:06.950Z (2 months ago)
- Topics: fabric, minecraft
- Language: Java
- Homepage:
- Size: 6.31 MB
- Stars: 179
- Watchers: 5
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fabric - Renderer - An easy-to-use rendering library for modern FabricMC. ([Wiki](https://github.com/0x3C50/Renderer/blob/master/README.md)) `BSD-3-Clause` (Uncategorized / Uncategorized)
README
# Renderer
An easy-to-use rendering library for modern fabric.# Installing
You can install this library using [Jitpack](https://jitpack.io/)To install this library, add the ladysnake repository (for gradle to find satin):
```groovy
maven {
name = 'Ladysnake Mods'
url = 'https://maven.ladysnake.org/releases'
content {
includeGroup 'io.github.ladysnake'
includeGroup 'org.ladysnake'
includeGroupByRegex 'dev\\.onyxstudios.*'
}
}
```Then add this to your dependencies block in `build.gradle`.
```groovy
include modImplementation("io.github.0x3c50.renderer:renderer-fabric:1.2.4")
```## Caution
It's important to use fabric's **`modImplementation`** instead of the regular `implementation`, since this is technically a mod that needs remapping. Using anything else except `modImplementation` will not remap the library, which causes invalid names to be present.Similarly, using fabric's **`include`** is also recommended, since it includes the whole jar as a Jar-In-Jar ("JIJ") dependency, which fabric can handle better than just copying the classes over. JIJing it this way will make it appear in the mod list, as well as making the license and credits visible, whereas copying the classes into the final jar will just keep the library and effectively strip the metadata.
## Verifying the download
For the interested, the public key used to sign the releases is `63FF42E13662B6D604611FF4B22112D66E3EA177`, and can be found on https://keys.openpgp.org/.# Building on your own
Since the build contains some secrets for deploying, which are filled in by a gradle script in `deploying/secrets.gradle.kts`, you will need to create that file for the build to succeed.
It doesn't have to contain anything, the secrets will just be blank by default.# Usage
The api has an extensive javadoc, which explains almost anything. The wiki also has some more insights and examples.# The two renderers
Renderer2d draws in 2 dimensions, on the hud. Renderer3d draws in 3 dimensions, in the world.# Events
This library uses fabric's event system, the wiki has examples on how it works. Their wiki has more details.# Suggestions
You can leave suggestions in the issues sectionIf this library helped you, please consider leaving a star, since this library took me a while to make as it is right now :)