Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
/ mod-loader Public archive
generated from xpdustry/template-plugin

A custom mod loader plugin for jvm plugins/mods that rely on dependencies.

License

Notifications You must be signed in to change notification settings

xpdustry/mod-loader

Repository files navigation

mod-loader

Build status Mindustry 6.0 | 7.0 Xpdustry latest

Description

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.

Building

  • ./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).

Testing

  • ./gradlew runMindustryClient: Run Mindustry in desktop with the plugin.

  • ./gradlew runMindustryServer: Run Mindustry in a server with the plugin.

Nice tips

  • 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.