Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Arboreal -
Arboreal is a modding library and miniature core built to streamline many aspects of modding. The library also serves as a culmination of much of the knowledge and learnings I've obtained during my time in the Minecraft modding community.
Arboreal adds, primarily:
- A "task" system, making many processes much easier, such as registration (providing built-in
registermethods), or networking (automatic typing of payloads and registration of receivers). - Util classes with many strangely helpful methods, such as getting an item bar's progress or collecting nearby entities from a BlockPos.
- Many events allowing for more interaction with the Minecraft world, such as editing the target of a mob, or editing how much damage a player receives depending on if certain criteria is met.
- A builder-based instantiated datapack system.
All available within a central Arboreal class, which is to be instantiated within your ModInitializer, as shown here:
public class MyMod implements ModInitializer {
public static final Arboreal ARBOREAL = new Arboreal("my_mod_id");
}
The Arboreal class serves as the main entrypoint of Arboreal into your mod, allowing for tasks to be registered and ran, as shown here:
public void onInitialize() {
ARBOREAL.addHandler(MyModItems.TASK);
ARBOREAL.addHandler(MyModNetworking::new);
ARBOREAL.initMain();
}
This project serves as my labor of love that I've been dabbling with and putting together over the course of a couple months, and I do hope it serves a need that you may have!
Misc. Credits -
AcoYTMC - Author of the formatString method from AcornLib, which Arboreal's ItemUtils#formatString was based on.
How To Implement Arboreal
In your build.gradle:
maven {
url = "https://api.modrinth.com/maven"
}
Into your build.gradle dependencies:
implementation "maven.modrinth:arboreal:ARBOREAL_VERISON"


