Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forking Pufferfish #2

Closed
ghost opened this issue Dec 1, 2021 · 3 comments
Closed

Forking Pufferfish #2

ghost opened this issue Dec 1, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 1, 2021

Hi! How can I fork Pufferfish 1.18 for my own server fork?

@Titaniumtown
Copy link

Same way as was previously done with paperweight, all you need to do is set it to use Pufferfish and also bump io.papermc.paperweight.patcher to 1.3.1-SNAPSHOT. And change the server version (along with upstream commit) in gradle.properties.

@Titaniumtown
Copy link

Titaniumtown commented Dec 2, 2021

example paperweight section inbuild.gradle.kts:

paperweight {
    serverProject.set(project(":forkname-server"))

    useStandardUpstream("pufferfish") {
        remapRepo.set("https://maven.fabricmc.net/")
        decompileRepo.set("https://maven.quiltmc.org")

        url.set(github("pufferfish-gg", "Pufferfish"))
        ref.set(providers.gradleProperty("upstreamCommit"))

        patchTasks {
            register("api") {
                upstreamDirPath.set("pufferfish-api")
                patchDir.set(layout.projectDirectory.dir("patches/api"))
                outputDir.set(layout.projectDirectory.dir("ForkName-API"))
            }
            register("server") {
                upstreamDirPath.set("pufferfish-server")
                patchDir.set(layout.projectDirectory.dir("patches/server"))
                outputDir.set(layout.projectDirectory.dir("ForkName-Server"))
            }
        }
    }
}

You have to do it that way instead of using the normal method as pufferfish has all lowercase -Server and -API names (idk why). That was the best way I could figure out how to do that.

But besides that you should be able to take advantage of PaperMC's awesome examples for paperweight!

@ghost
Copy link
Author

ghost commented Dec 2, 2021

Thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant