Skip to content

A template for .jar mods for Mindustry using Gradle

License

Notifications You must be signed in to change notification settings

Sonnicon/mindustry-modtemplate

Repository files navigation

Mindustry Mod Template

A blank template for Mindustry mods with an existing Gradle configuration to compile and dex-ify, and Github Actions to automatically do both and upload the artifacts.

Compiling

JDK 8.
Task dexify requires d8 from Android build-tools > 28.0.1.

Plain Jar is for JVMs (desktop).
Dexed Jar is for for JVMs (desktop) and ARTs (Android).
These two are separate in order to decrease size of mod download.

Windows

Plain Jar: gradlew build
Dexify Plain Jar: gradlew dexify
Build Plain & Dexify Jar: gradlew buildDex

*nix

Plain Jar: ./gradlew build
Dexify Plain Jar: ./gradlew dexify
Build Plain & Dexify Jar: ./gradlew buildDex

I have no idea what I'm doing with this

  1. Rename directories in src/ to avoid collisions with other mods that didn't.
  2. Change pGroup in gradle.properties to match up with the new directories.
  3. Update main in assets/mod.json to line up with renamed directories.
  4. Refer to Compiling.

About

A template for .jar mods for Mindustry using Gradle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages