Custom pokeballs
Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers how to tweak the pokeballs files to create a custom pokeball. Pokeball JSON files are located at <Minecraft directory>/data/pixelmon/pokeballs. All found in the JAR which can be opened with programs like WinRAR.
Examples of how the set up is and the effects can be found on this page.
Contents
Custom Pokeballs
Custom pokeballs can made to suit any color or theme you can think of, want a black and white pokeball can call it chaos ball? You can do that. It will also require making a resource pack which creating one can be found on this page
And how to create a datapack can be found on this page.
Creating a Custom Pokeball
Creating a custom ball will require making jsons for the ball itself, lid, and crafting.
Custom pokeball json
Following the set up of a pokeball, the json for the custom ball should look like this:
{ "name": "red_demo_ball", "model": "pixelmon:models/pokeballs/base.pqc", "texture": "pixelmon:textures/pokeballs/red_demo_ball.png", "flashingTexture": "pixelmon:textures/pokeballs/poke_ball_flashing.png", "ballSprite": "pixelmon:items/pokeballs/red_demo_ball", "lidSprite": "pixelmon:items/pokeballs/red_demo_ball_lid", "guiSprite": "pixelmon:textures/gui/overlay/red_demo_ball.png", "logic": "", "bases": [ "aluminum", "iron" ], "captureMethod": "gen8", "catchBonus": 1, "breakChance": 0.55, "velocityModifier": 1, "gravityModifier": 1, "particles": false }
Custom Pokeball Crafting
A custom ball recipe follows as such
{ "type": "minecraft:crafting_shapeless", "ingredients": [ { "type": "forge:nbt", "item": "pixelmon:poke_ball_lid", "nbt": { "PokeBallID": "red_demo_ball" } }, { "item": "minecraft:stone_button" }, { "tag": "pixelmon:pokeball_bases" } ], "result": { "item": "pixelmon:poke_ball", "count": 1, "nbt": { "PokeBallID": "red_demo_ball" } } }
all that that needs changing is the name from poke_ball in the nbt lines to the desired name. red_demo_ball in this case
Custom Lid Crafting
This is how a custom lid recipe should look:
{ "type": "minecraft:crafting_shaped", "pattern": [ "###" ], "key": { "#": { "item": "pixelmon:ruby" } }, "result": { "item": "pixelmon:poke_ball_lid", "count": 5, "nbt": { "PokeBallID": "red_demo_ball" } } }
as with the crafting json of the ball itself all that would need to be changed for the in the nbt line is just poke_ball and in the key section you can change what materials you want keep in mind if you want a different modded item that is not from pixelmon, you would need that mods id key such as BYG Bule Glowcane Dust it would be byg:blue_glowcane_dust.
Results
Once properly set up as both a data pack and resource pack, you will have successfully made a custom pokeball have a similar results to this