This is an example Plugin for the utility client Jex
Before getting started, it is recommended to install the Minecraft Development plugin in Intellij as this will be a lot of help with Mixins
For explanations on parts of the client like adding commands or features, you can check the wiki
For a more advanced example, check out the Jex Crash Plugin
- First, download this project, using the green button above either download as zip or copy the link and use
git clone https... - Now do the same with JexClient
- Open terminal in the JexClient folder and type
./gradlew build - Take the jar named
jex-plugin-dev.jarinbuild/libs/and put it in thelibfolder in JexPlugin - Optionally You can also use the
-sources-dev.jarfile as sources too
- Open
build.gradlein Intellij as a gradle project and wait for it to set up File -> Close Projectif you do not have a run configuration, then re-open the project- Replace all references of
ExamplePluginwith your plugin name in files likeJexPlugin.json,gradle.properties,exampleplugin.mixins.json - Edit the
gradle.propertiesfile to specify the same Minecraft version and Yarn Mappings as Jex which you can find here - To test, just run the "Minecraft Client" run configuration
- When ready to distribute, run
./gradlew buildand the output will be inbuild/libs/