
SafLib
SafLib is a compact library modification designed for use in the author's other mods. This support module provides developers with a set of useful tools and functions.
Main Features
The library includes:
- Mathematical utilities to simplify calculations
- Simplified element registration system
- Client-side particle spawning capability
- Base classes for various object types
Developer Usage
For Minecraft versions 1.20 and 1.20.1, it is recommended to use version 1.0.32 and above, as previous releases had registration issues.
To connect the library to your project, use the Modrinth Maven repository. Simply add the dependency to your build configuration.
In the build.gradle
file:
repositories {
exclusiveContent {
forRepository {
maven {
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:saflib:VERSION")
}