
yunfalib
A library that adds config, math, events, modules, and more.
About this Mod
yunfaLib
A library for Minecraft using the Fabric API that adds config, math, events, modules, and more.
Setup
build.gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
modImplementation "com.github.yunfachi:yunfaLib:${project.yunfalib_version}"
}
gradle.properties
yunfalib_version=0.1.0
Features
Config
Example Java: The values are stored in the inner class
import moe.yunfachi.yunfalib.config.Config;
import java.io.File;
public class Example {
private static class ConfigKeys {
String truth = "this value is immediately saved to a file";
}
public Example() {
final Config<ConfigKeys> config = new Config<>(
new File("./modid/config.yml"),
new ConfigKeys()
);
config.get().truth = "this value will be written after config.save()";
config.save();
}
}
Example Java: The values are stored in the nested class
import moe.yunfachi.yunfalib.config.Config;
import java.io.File;
public class Example {
public Example() {
final Config<ConfigKeys> config = new Config<>(
new File("./modid/config.yml"),
new ConfigKeys()
);
config.get().truth = "this value will be written after config.save()";
config.save();
}
}
class ConfigKeys {
String truth = "this value is immediately saved to a file";
}
Example Kotlin: The values are stored in the inner class
import moe.yunfachi.yunfalib.config.Config
import java.io.File
class Example {
init {
class ConfigKeys {
var truth = "this value is immediately saved to a file"
}
val config = Config(
File("./modid/config.yml"),
ConfigKeys()
)
config.get().truth = "this value will be written after config.save()"
config.save()
}
}
Example Kotlin: The values are stored in an anonymous object
import moe.yunfachi.yunfalib.config.Config
import java.io.File
class Example {
init {
val config = Config(
File("./modid/config.yml"),
object {
var truth: String = "this value is immediately saved to a file"
}
)
config.get().truth = "this value will be written after config.save()"
config.save()
}
}
Thanks
| Project | Author | Description |
|---|---|---|
| Annotaml | WiIIiam278 | library for generating YAML files |
Stats
Available Versions
How to Install yunfalib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "yunfalib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
yunfalib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is yunfalib compatible with fabric?
yunfalib officially supports fabric for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with yunfalib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if yunfalib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install yunfalib with just one click on your server.