example-plugin-template
example-plugin-template copied to clipboard
A template for Hytale mod projects
Hytale Plugin Template
A template for Hytale java plugins
How to use
- click the
Use this templatebutton to copy this repository to your own GitHub account. - clone the repository locally.
- Set your mod name in
settings.gradle.kts, group and version inbuild.gradle.kts, and all other project properties ingradle.properties - Open the project in IDEA and reload the gradle project.
- To launch the game with your mod, simply launch the generated run config in your IDE.
[!NOTE] To decompile the game and make it searchable, run the
decompileServergradle task, then open any game class in your IDE, press theChoose Sources...button, and select the jar file ending in-sources.jar.
Configuring the Template
If you for example installed the game in a non-standard location, you will need to tell the project about that.
The recommended way is to create a file at %USERPROFILE%/.gradle/gradle.properties to set these properties globally.
# Set a custom game install location
hytale.install_dir=path/to/Hytale
# Speed up the decompilation process significantly, by only including the core hytale packages.
# Recommended if decompiling the game takes a very long time on your PC.
hytale.decompile_partial=true