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.jar
inbuild/libs/
and put it in thelib
folder in JexPlugin - Optionally You can also use the
-sources-dev.jar
file as sources too
- Open
build.gradle
in Intellij as a gradle project and wait for it to set up File -> Close Project
if you do not have a run configuration, then re-open the project- Replace all references of
ExamplePlugin
with your plugin name in files likeJexPlugin.json
,gradle.properties
,exampleplugin.mixins.json
- Edit the
gradle.properties
file 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 build
and the output will be inbuild/libs/