The instructions here which reference a runSetup.bat
are intended for use with Eclipse, if you use something else, the Readme.txt might help with setup instructions.
- Install the latest version of Eclipse (4.22.0 or later), and select the built in java 17 version while installing it.
- Open eclipse, create a new workspace (or use an existing one).
- In eclipse, use file -> import -> Gradle -> Existing Gradle Project -> Next (Next again if it shows a welcome screen)
- Select the folder containing this file for Project Root Directory, then click finish
- Wait for things to run/import.
- In the gradle tasks tab, under forgegradle runs, run genEclipseRuns, wait for this to finish (you can watch it un Gradle Executions tab or Console)
- Refresh the project to load in the runs.
- Select Run -> Debug Configurations -> Java Application -> runClient -> Debug
- It should now be running minecraft with pokecube installed
To build the addon, select build->build in gradle tasks. If you update forge or the pokecube dependency, select ide->eclipse in gradle tasks.
See the Readme.txt for the official Forge instructions on setting up a development environment. The build.gradle included here is configured to also include adding pokecube-aio to the dependencies for the setup.
Note, these steps are only needed if the default settings fail to work. By default, it should install the latest release version of pokecube into the development environment when the runSetup.bat
is executed.
First you must obtain the updated deobf jar, there are 2 ways to do this, listed below. Once the jar is obtained, place it in the libs directory in your repository.
To do this, first you need to download the repository for Pokeube-AIO, which is located here: https://github.com/Pokecube-Development/Pokecube-Issues-and-Wiki Next, run the build.bat (may require running runSetup.bat first). Once this finishes running, there will be a usable pokecube-aio--deobf.jar located on /build/libs/
Sometimes the deobf jar will be uploaded as an additional file to the main jar, if this is done, you can download the deobf jar from there and use it.
In the build.gradle, there is a section dependencies
, which should have a line similar to implementation "libs:pokecube-aio-1.16.4-3.1.2-deobf"
, replace the part after libs:
, with whatever the name of the deobf jar you located was.
Re-running the runSetup.bat should update things at this step. If you are using eclipse, you may need to remove and then re-add the project for it to properly reflect the changes to the dependencies.