Minecraft Modding Library
- π automatic loading of environment variables from
.env
files at runtime - β‘ automatically register anything that has a registry
- π¨ inject recipes at runtime
- π wide variety of debug features
To install Mesh, you need to first add the OnyxStudios maven repository to your buildscript:
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.
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
}
-
Debug mode is enabled by setting the
mesh.debug
system property totrue
. For more fine-tuned control see MeshApiOptions. -
Development mode is enabled by setting the
fabric.development
system property totrue
(default for mod workspaces).- in development mode only: set the
mesh.minecraft.session.username
andmesh.minecraft.session.uuid
system properties to automatically update your session on game start, and get your username and skin.
- in development mode only: set the