Join our discord
In partnership with NodeCraft Logo NodeCraft


You are not logged in! Create an account or login to contribute! Log in here!

Pokeball JSONs

From Pixelmon Wiki
Revision as of 20:30, 26 March 2023 by Buddy18181 (talk | contribs) (Created page with "Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers the pokeballs files, which define many different set...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers the pokeballs files, which define many different settings for different types of pokeballs. Pokeball JSON files are located at <Minecraft directory>/data/pixelmon/pokeballs. All found in the JAR which can be opened with programs like WinRAR.

pokeball.json

This JSON file contains data about pokeballs and which pokeballs JSON files to read. If a new pokeball JSON file is created, the ball must be added to this file in order for it to be registered by Pixelmon.


setup

This is how a basic pokeball is setup on name, model, textures, sprites, logic, bases, captureMethod, catchBonus, breakChance, velocityModifier, gravityModifier, and particles.

 "name": "poke_ball",
 "model": "pixelmon:models/pokeballs/base.pqc",
 "texture": "pixelmon:textures/pokeballs/poke_ball.png",
 "flashingTexture": "pixelmon:textures/pokeballs/poke_ball_flashing.png",
 "ballSprite": "pixelmon:items/pokeballs/poke_ball",
 "lidSprite": "pixelmon:items/pokeballs/poke_ball_lid",
 "guiSprite": "pixelmon:textures/gui/overlay/poke_ball.png",
 "logic": "",
 "bases": [
   "aluminum",
   "iron"
 ],
 "captureMethod": "gen8",
 "catchBonus": 1,
 "breakChance": 0.25,
 "velocityModifier": 1,
 "gravityModifier": 1,
 "particles": false

pqc

A pqc is what the json uses to locate the model and animations the ball will use, set up like this:

$body base.bmd
$anim bounceOpen bounceopen.bmd
$anim bounceClose bounceclose.bmd
$anim shakeLeft shakeleft.bmd
$anim shakeRight shakeright.bmd
$anim idle idle.bmd
$anim break break.bmd


NOTE: ONLY APPLIES TO CUSTOM MODELS, IF DOING JUST CUSTOM TEXTURES LEAVE AS IS

gui sprite

The gui sprite is how the ball will look on the overlay where you would see your party normally.

gui overlay sprite

bases

The bases are the bottom of the pokeball which can consist of iron, aluminum, silver, or platinum

logic

The logic is what the ball uses to follow specific conditions, such as the net ball being more effective on water and bug type pokemon.


capture method

The capture method is the catch formula used in the official game of that generation and two extra being 100% and 50%.


velocity modifier

This determines how fast the ball is thrown as a projectile outside of battle


gravity modifier

This determines how heavy the ball is when thrown as a projectile outside of battle.

catch bonus

The catch bonus is the balls base catch rate.

crafting

recipes are also needed for all craftable balls which jsons are found in three folders, but will only focus on two which can be found in <Minecraft directory>/data/pixelmon/recipes/pokeball/lid and <Minecraft directory>/data/pixelmon/recipes/pokeball/ball.

lids

this is the standard lid recipe for a pokeball

{
 "type": "minecraft:crafting_shaped",
 "pattern": [
   "###"
 ],
 "key": {
   "#": {
     "item": "pixelmon:cooked_red_apricorn"
   }
 },
 "result": {
   "item": "pixelmon:poke_ball_lid",
   "count": 5,
   "nbt": {
     "PokeBallID": "poke_ball"
}

ball

This is the standard recipe for a pokeball


"type": "minecraft:crafting_shapeless",
 "ingredients": [
   {
     "type": "forge:nbt",
     "item": "pixelmon:poke_ball_lid",
     "nbt": {
       "PokeBallID": "poke_ball"
     }
   },
   {
     "item": "minecraft:stone_button"
   },
   {
     "tag": "pixelmon:pokeball_bases"
   }
 ],
 "result": {
   "item": "pixelmon:poke_ball",
   "count": 1,
   "nbt": {
     "PokeBallID": "poke_ball"
}

© 2012 - 2025 Pixelmon Mod