Difference between revisions of "Custom pokeballs"
Buddy18181 (talk | contribs) |
(Changed Poke Ball wording, capitalized some wording, adding paragraphs for) |
||
Line 1: | Line 1: | ||
− | Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers how to tweak the | + | Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers how to tweak the Poké Balls files to create a custom Poké Ball. Poké Ball 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 [[Pokeball JSONs|on this page]]. | Examples of how the set up is and the effects can be found [[Pokeball JSONs|on this page]]. | ||
Line 5: | Line 5: | ||
− | ===Custom | + | ===Custom Poké Balls=== |
− | Custom | + | Custom Poké Balls can made to suit whatever the user intends. The textures, models, GUI sprites, lids, and recipes can be completely customized. |
− | |||
− | + | This will require a custom resource pack. If you are new to resource packs, please check out a tutorial found [https://minecraft.fandom.com/wiki/Tutorials/Creating_a_resource_pack here]. | |
− | + | A custom datapack will also be required. If you are new to datapacks, it is recommended you check out the Minecraft wiki guide found [https://minecraft.fandom.com/wiki/Tutorials/Creating_a_data_pack here]. | |
− | Creating a | + | ===Creating a Custom Poké Ball=== |
+ | Creating a custom Poké Ball will require making JSONs for the ball's information, a custom lid recipe, and the ball's crafting recipe. | ||
− | |||
− | Following the set up of a | + | ===Custom Poké Ball JSON=== |
+ | |||
+ | Following the set up of a Poké Ball, the JSON for the custom ball should look like this: | ||
{ | { | ||
Line 43: | Line 44: | ||
} | } | ||
+ | In this JSON, users can specify the pathing for custom models and model textures, party GUI sprites, ball sprites that appear when in the players inventory, and lid sprites. | ||
+ | |||
+ | This JSON can also be used to modify the modifiers of the ball. For example, a "catchBonus" of 1 is equal to 1x catch bonus. "breakChance", "velocityModifier", and "gravityModifier" are also straightforward and can be modified here. | ||
− | ====Custom | + | ====Custom Poké Ball Crafting==== |
− | A custom | + | A custom lid JSON should be structure as such: |
{ | { | ||
Line 73: | Line 77: | ||
} | } | ||
− | all that | + | In this case, all that requires changing is the NBT line "PokeBallID", where "red_demo_ball" would be set to the desired name. |
Line 80: | Line 84: | ||
====Custom Lid Crafting==== | ====Custom Lid Crafting==== | ||
− | + | A custom lid JSON should be structured as such: | |
{ | { | ||
Line 101: | Line 105: | ||
} | } | ||
− | + | As with the crafting JSON, the only change that would be required would be the NBT line for "PokeBallID". To change the required item to craft the lid, the "key" section would need to be edited. Specifically, the "item" line labeled "pixelmon:ruby" would require a change to the item ID of whatever item is desired. For Minecraft items, this would begin with "minecraft:", followed by the ID for the item. For modded items, the mod ID is needed. An example of adding a modded item would be using the item Blue Glowcane Dust from the mod "Oh The Biomes You'll Go". The ID for this item would be "byg:blue_glowcane_dust". | |
Line 108: | Line 112: | ||
===Results=== | ===Results=== | ||
− | Once properly set up as both a data pack and resource pack, you will have successfully made a custom | + | Once properly set up as both a data pack and resource pack, you will have successfully made a custom Poké Ball have a similar results to this |
[[File:Screenshot 2023-03-25 161809.png|thumb|custom gui sprite]] | [[File:Screenshot 2023-03-25 161809.png|thumb|custom gui sprite]] | ||
[[File:2023-03-25 16.18.33.png|thumb|custom ball and lid]] | [[File:2023-03-25 16.18.33.png|thumb|custom ball and lid]] |
Revision as of 20:52, 27 March 2023
Different aspects of the Pixelmon mod can be tweaked through different types of JSON files for datapacks. This page covers how to tweak the Poké Balls files to create a custom Poké Ball. Poké Ball 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 Poké Balls
Custom Poké Balls can made to suit whatever the user intends. The textures, models, GUI sprites, lids, and recipes can be completely customized.
This will require a custom resource pack. If you are new to resource packs, please check out a tutorial found here.
A custom datapack will also be required. If you are new to datapacks, it is recommended you check out the Minecraft wiki guide found here.
Creating a Custom Poké Ball
Creating a custom Poké Ball will require making JSONs for the ball's information, a custom lid recipe, and the ball's crafting recipe.
Custom Poké Ball JSON
Following the set up of a Poké Ball, 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 }
In this JSON, users can specify the pathing for custom models and model textures, party GUI sprites, ball sprites that appear when in the players inventory, and lid sprites.
This JSON can also be used to modify the modifiers of the ball. For example, a "catchBonus" of 1 is equal to 1x catch bonus. "breakChance", "velocityModifier", and "gravityModifier" are also straightforward and can be modified here.
Custom Poké Ball Crafting
A custom lid JSON should be structure 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" } } }
In this case, all that requires changing is the NBT line "PokeBallID", where "red_demo_ball" would be set to the desired name.
Custom Lid Crafting
A custom lid JSON should be structured as such:
{ "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, the only change that would be required would be the NBT line for "PokeBallID". To change the required item to craft the lid, the "key" section would need to be edited. Specifically, the "item" line labeled "pixelmon:ruby" would require a change to the item ID of whatever item is desired. For Minecraft items, this would begin with "minecraft:", followed by the ID for the item. For modded items, the mod ID is needed. An example of adding a modded item would be using the item Blue Glowcane Dust from the mod "Oh The Biomes You'll Go". The ID for this item 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 Poké Ball have a similar results to this