https://github.com/GlassPane/Mesh
Modding Library for Fabric
https://github.com/GlassPane/Mesh
fabric fabric-mod fabric-mod-loader fabricmc fabricmc-mod hacktoberfest java minecraft minecraft-mod
Last synced: over 1 year ago
JSON representation
Modding Library for Fabric
- Host: GitHub
- URL: https://github.com/GlassPane/Mesh
- Owner: GlassPane
- License: lgpl-3.0
- Created: 2019-01-14T00:42:06.000Z (over 7 years ago)
- Default Branch: 1.18
- Last Pushed: 2021-11-30T04:38:35.000Z (over 4 years ago)
- Last Synced: 2024-11-02T10:31:48.899Z (over 1 year ago)
- Topics: fabric, fabric-mod, fabric-mod-loader, fabricmc, fabricmc-mod, hacktoberfest, java, minecraft, minecraft-mod
- Language: Java
- Homepage: https://www.curseforge.com/minecraft/mc-mods/mesh
- Size: 1.14 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-fabric - Mesh - A modding library with various utilities, such as auto-registration of items and blocks, or crafting recipe generation. ([Wiki](https://github.com/GlassPane/Mesh/blob/1.18/README.md)) `LGPL-3.0-only` (Uncategorized / Uncategorized)
README
# Mesh
*Minecraft Modding Library*
[](https://github.com/GlassPane/Mesh/actions?query=workflow%3A%22Build+Status%22 "GitHub Actions") [](https://github.com/GlassPane/Mesh/releases/latest "GitHub Releases") [](https://maven.onyxstudios.dev/dev/upcraft/Mesh "maven.onyxstudios.dev") [](https://jitpack.io/#GlassPane/Mesh "Jitpack Build Status")
---
## Features
- :globe_with_meridians: automatic loading of environment variables from `.env` files at runtime
- :zap: automatically register anything that has a registry
- :hammer: inject recipes at runtime
- :bug: wide variety of [debug features](#Notes)
## Installation
To install Mesh, you need to first add the OnyxStudios maven repository to your buildscript:
```gradle
repositories {
maven {
name = "OnyxStudios"
url = "https://maven.onyxstudios.dev"
}
}
```
After that, you simply add the api and main artifact as runtime dependencies (define `mesh_version` in your `gradle.properties` file):
*If you want to use the automatic registration feature, you also need the annotation processor jar.*
```gradle
dependencies {
modRuntime "dev.upcraft:Mesh:${project.mesh_version}"
modApi "dev.upcraft:Mesh-API:${project.mesh_version}"
annotationProcessor "dev.upcraft:Mesh-Annotations:${project.mesh_version}" // optional; currently only needed for the automatic registration feature
}
```
---
## Notes
- **Debug mode** is enabled by setting the `mesh.debug` system property to `true`. For more fine-tuned control see [MeshApiOptions](src/main/java/dev/upcraft/mesh/api/MeshApiOptions.java).
- **Development mode** is enabled by setting the `fabric.development` system property to `true` (default for mod workspaces).
- **in development mode only:** set the `mesh.minecraft.session.username` and `mesh.minecraft.session.uuid` system properties to automatically update your session on game start, and get your username and skin.
---