henri5 / jrebel-minecraft-plugin

JRebel Minecraft Plugin
7 stars 0 forks source link

JRebel Minecraft Forge Plugin

Tested with Minecraft 1.8 & Forge 11.14.3.1450

Features:

How to use plugin:

  1. get JRebel - as long you're using it for non-commercial purposes, you can use free myJRebel license
  2. build the plugin as mvn clean package using Maven or grab built artifact from here
  3. add JRebel and plugin to JVM arguments as -javaagent:/path/to/jrebel.jar -Drebel.plugins=/path/to/jr-minecraft-plugin.jar

If using gradle, place the arguments inside build.gradle's runClient conf as

runClient {
    jvmArgs '-javaagent:/path/to/jrebel.jar', '-Drebel.plugins=/path/to/jr-minecraft-plugin.jar'
}

NB!

When setting up rebel.xml, make sure that first element of classpath points to directory that contains the assets folder, where you update the textures (should you want to do that). With that, just start up Minecraft, get into a world, change texture or json and save it - it automatically detects that a resource was changed and will invoke reload for the resourcepackage (takes couple of seconds). Customising rebel.xml is not required if you're only changing classes, as long as your IDE created a correct one to begin with.

Tips & Tweaks