Cheat Sheet
Last updated
Last updated
One of the most common requests I got with my hotswapping/productivity guide was how to configure the build tool to automatically output the plugin jar into the plugins folder. This is actually ridiculously simple to do. Simply copy the following:
If using shadowJar, replace jar
with shadowJar
.
This can also be used in regular, non-minecraft projects, however I usually don't use it in those, as I simply run the jar in build/libs.
It's extremely practical to bind your run configurations to keys, as it can be quite a hassle to manually select the individual run configurations every time you need them. To add keybinds for these, you'll need to install the Run Configuration as Action plugin by Turbanov Andrey.
With this plugin installed, you'll then want to make your run configurations. Once made, go to the keymap in settings (file > settings, ctrl + alt + s). Open the plugins drop down, then scroll down to the Run Configuration as Action drop down, and also open that. Alternatively, you can search for your configuration name in the search bar.
There you'll be able to add keybinds for your run configurations by simply double clicking on one of the list items, and adding either a mouse or keyboard bind. As you can see, I've already assigned a keybind to my gradle jar run configuration.