Warning: This repository is no longer maintained since modern versions of Mindustry have proper support for mod dependencies.
A simple Mindustry plugin to enable jvm mod/plugin dependencies for V6 and V7 below v136.
To use it, put your mods/plugins in a directory named ./mod-loader
instead of ./config/mods
(except mod-loader
) and enjoy.
-
./gradlew jar
for a simple jar that contains only the plugin code. -
./gradlew shadowJar
for a fatJar that contains the plugin and its dependencies (use this for your server).
-
./gradlew runMindustryClient
: Run Mindustry in desktop with the plugin. -
./gradlew runMindustryServer
: Run Mindustry in a server with the plugin.
-
Your file tree should look like this
- config/ - mods/ - ModLoaderPlugin.jar - ModThatDoesNotHaveDependencies.jar - ... - ... - mod-loader/ - ModThatHasDependencies.jar - DependencyOfTheAboveMod.jar - ... - server.jar - ...
-
It's perfecly fine to put regular mods in the
mod-loader
directory.