#Making a fork

1 messages · Page 1 of 1 (latest)

left robin
dire drum
#
  1. clone the spigot repo
  2. run buildtools, not sure if using --remapped is required, but cannot hurt
  3. run ./applyPatches.sh with a path to your buildtools/work/... directory
  4. open it in IntelliJ, should work
left robin
#

Ah

#

I see now

#

Thank you

dire drum
#

the most important thing is at the waaaay bottom

#

this part is very important

left robin
#

Thank you alex

dire drum
#

oh my bad

#

do not fork spigot, but craftbukkit

#

and apply the patches there

#

then after you did that, you can actually "mvn install" craftbukkit, after that you can fork spigot and also compile that

#

do you wanna add any API changes too?

#

or just craftbukkit/spigot itself?

left robin
#

Yeah

#

API

#

Mainly just want to add some internal shit and expose an API for it

dire drum
#

okay, then

  1. clone bukkit. do your changes. change either the version in bukkit's pom, e.g. to <version>1.19.3-R0.1-SNAPSHOT-MYFORK, or add a <classifier>MYFORK
#
  1. clone craftbukkit, do what I said above, and there you also gotta change the <dependency> of bukkit to your MYFORK version, after you're done do makePatches.sh or whats it called
#
  1. clone spigot and change dependency from spigot also to your own version
#

that should be everything

left robin
#

tysm

dire drum
#

np

#

tbh I have never did any changes to spigot, only craftbukkit and bukkit

#

but I am like 99% sure this should do it

left robin
#

Alright

#

I guess I make a folder, then clone in sub dirs?

#

Like

ForkName/Bukkit
ForkName/CraftBukkit
ForkName/Spigot

dire drum
#

doesnt really matter where you do it

#

as mvn install will install it to your local repo anyway

left robin
#

Alright, thanks

dire drum
#

just be sure to change the version everytime to your own custom one

left robin
#

ig I'll just make a system to apply the patch after

#

Sort of like Paper ig

left robin
#

@dire drum Doing a test, just adding System.out.println("Advancement: " + minecraftkey); to the first line of the Advancement constructor, do I just use rebuildPatches.sh to update patches, and then rebuild?

dire drum
#

where did you add that to?

#

to NMS classes? craftbukkit classes? bukkit classes?