Minecraft Modding Library
.env
files at runtimeTo 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 to true
. For more fine-tuned control see MeshApiOptions.
Development mode is enabled by setting the fabric.development
system property to true
(default for mod workspaces).
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.