It took me ages to get my datapack to work for a custom pokeball in Pixelmon, so I figured I'd make an example of both the datapack and resource pack, then host them here and (hopefully) post it in the pixelmon discord for people to find it easier :)
Notes about the pokeball created by the mod:
- Catch bonus of 255 means the ball functions the same as a master ball. A catch bonus of 1 would function the same as a pokeball. A catch bonus of 0 would never be able to catch a pokemon.
- Break Chance of 0 means the ball will never break when missing a pokemon and hitting a block. values scale from 0-1.
- Logic refers to pokeballs with different catch rates based on situations, for example quick balls or dusk balls. Pixelmon adds logic to facilitate all base pokemon pokeballs, EG checking if the pokemon is asleep for the dream ball, but if you are looking for more versatility WaifuJanna has a sidemod that adds more versatile logic which can be found HERE
- Particles refers to the trail of particles following the pokeball, and must be set to either true or false.
The settings I haven't referred earlier are settings I haven't experimented with personally, but massive thanks to Sophie847 on discord for providing information about them <3
- captureMethod refers to different catching formulas that pixelmon has built in - all of the main series formulas for generation 1 through 8 (you'll notice hisuian balls use the gen 4 catching formula) as well as "ALWAYS_CAPTURE" and "FIFTY_FIFTY" choices These are expandable by sidemod as well.
- gravityModifier is actually always set at 1 on pixelmons end, but as the name suggests if you bump up this value, the ball falls quicker.
- velcityModifier sets how fast the ball flies - you'll get a good idea of this if you throw something like a gigaton ball next to a feather ball or jet ball and compare the flight path