XaeroLib
XaeroLib is a library mod that contains shared code essential for the functioning of two popular modifications: Xaero's Minimap and Xaero's World Map, starting from version 25.3.2 for the minimap and 1.40.2 for the world map. The core components of these modifications rely on this library for a range of capabilities.
For Minecraft 1.16.5 and 1.12.2 on Forge, this library must be installed separately — without it, the map mods will not function. However, on newer versions of the game, as well as when using Fabric or Quilt, it's not necessary to download XaeroLib as it's already included in the map mods by default.
For Developers
If you're developing your own mod and plan to interact with Xaero's minimap or world map functionality, ensure this library is integrated into your project. To connect it using the author's Maven repository, add the following entry to your build.gradle:
repositories {
maven {
url "https://chocolateminecraft.com/maven"
name "Xaero's Maven"
}
}
And one of the dependencies below, tailored to your build and Minecraft version (replace
- For Fabric:
dependencies { modImplementation "xaero.lib:xaerolib-fabric-<minecraft version>:<xaerolib version>" } - For Forge:
dependencies { implementation fg.deobf("xaero.lib:xaerolib-forge-<minecraft version>:<xaerolib version>") } - For NeoForge:
dependencies { implementation "xaero.lib:xaerolib-neoforge-<minecraft version>:<xaerolib version>" }
Note: sometimes the Minecraft version indicated in the filename might slightly differ from the actual version you're using (e.g., 1.12 instead of 1.12.2). This mismatch is slated to be resolved soon. Also, keep in mind that the author's Maven repository will soon host the map mods themselves, which should simplify integration architecture.