Apply patches with ./gradlew applyAllPatches and then run a dev server with ./gradlew runServer. You can generate a mojmap jar with ./gradlew createBundlerJar.
- You first need to have the currently applied patches with
./gradlew applyAllPatchesand then you can start working on the code. - If the applyAllPatches task fails, it could be because you don't have enough RAM. To fix this, refer to the "Set Gradle memory limit section.
- Then, you can edit the code in the
silverwolfpaper-server/folder - After you are done, you can save your changes to the "local git repo" with
./gradlew fixupMinecraftSourcePatches(The task name may depend on what you are working on, egfixupPaperServerFilePatches. Calling more than you need should be fine even if it throws a git error.) - Once all the changes are in the "local git repo", you can update the patch files with
./gradlew rebuildAllServerPatches.
- If you need to change the
build.gradle.kts.patchfiles, using./gradlew rebuildAspaperSingleFilePatcheswill automatically update all these patch files after modifications were made. - The
coreandapimodules refer to ASP's custom modules. They are not directly related to paper.
For more information, refer to PaperMC/paperweight-examples and PaperMC/Paper/CONTRIBUTING.md. (The CONTRIBUTING.md also explains how to set up the development environment)
Credits:
- The LegitSlimePaper team for the README.md format