- Nothing here yet, but you can fix it by opening your offer in the Pull Requests section!
Made:
- Debugger, use
mvn mindustry:debug
for debugging, see MindustryMavenPlugin for details.
- Instead of
mvn
can be used- Windows:
.\\mvnw.cmd
,.\\mvnw
- U*ix:
./mvnw.sh
- maven-mvnd:
mvnd
- Windows:
- Clone/Use as template this repository first (with all branches included!).
- Install java (if not already installed).
- Configure the
<project><properties></...></...>
inpom.xml
. - (Optional) Use
mvn mindustry:generate-config -Deditor=<editor>
, avilable editors:vscode
- Bob’s your uncle!
Note! plugin.json contains templates that are used by maven to substitute from pom.xml, no need to edit plugin.json!
See Main.java for some basic commands and event handlers.
Every main plugin class must extend Plugin
.
- Use
mvn clean package
- The output file will be in two versions
target/name_of_plugin.jar
- working plugin, with the necessary libraries included by the usertarget/name_of_plugin-lib.jar
- the library, partially incapable of working because it has no required dependencies, is intended for inclusion in another plugin as an "lightweight" optional dependency
Run mvn mindustry:debug
Simply place the output jar from the step above in your server's config/mods
directory and restart the server.
List your currently installed plugins/mods by running the mods
command.
This project is completely focused on the convenience of your work when creating a plugin, if you have any ideas or suggestions for improving the code - always happy to hear your ideas, friends.