I made a template for new API plugins, you can use it to quickly setup project and start making your plugins: https://github.com/paulevsGitch/RisingWorldPluginTemplate
How to use:
- You need JDK 20 since Rising World uses same Java version for plugins.
- You need installed Rising World (Steam Version)
- Clone this repo (with git clone or with downloading as .zip).
- Change pathToRisingWorld variable in build.gradle to your Rising World root path (Unity version)
- Change group variable in build.gradle if necessary, it should be equal to your main package name.
- In settings.gradle change the name to your project label.
- Edit plugin.yml and add your credits. You can change main class path (don't forget to create/move main class if you will do this)
- Import project into your favourite IDE (IntelliJ Idea, Eclipse, Netbeans, etc.) and start making code
Building plugin:
If you are using IDE that has gradle integration you can just launch build task. If your IDE don't have such features open a terminal or cmd utility and use command /gradlew build.
Your plugin will appear in /build/libs folder with same name as specified in settings.gradle.