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
- Rename directories in
src/
to avoid collisions with other mods that didn't. - Change
pGroup
ingradle.properties
to match up with the new directories. - Update
main
inassets/mod.json
to line up with renamed directories. - Refer to Compiling.