Tutorials/Texture replacement: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
'''Preface'''
== Preface ==
This tutorial will teach you how to make texture replacements for Cobblemon into a resource pack. Knowledge of resource packs is recommended.


This tutorial will teach you how to make texture replacements for cobblemon into a resource pack. Knowledge of resource packs is recommended.  
=== Step 1: Creating your replacement texture ===
You will need a copy of the Pokémon's texture file so you can make edits to it. You can obtain a Pokémon's texture .png by searching for it on the [https://gitlab.com/cable-mc/cobblemon/-/tree/main/common/src/main/resources/assets/cobblemon/textures Gitlab] or the mod's .jar file. Make sure you are grabbing the texture that is meant for the model currently in the mod.  


Once your target Pokémon's texture .png is obtained, you can make desired color changes using Blockbench or other art creation apps. Make sure the dimensions of the png stay the same. When finished editing, save your png and make sure it has the exact same name as the original png.


=== Step 2: Arranging folders and files ===
The only two file requirements for texture replacements are textures and a '''pack.mcmeta''' file.<!--(link to page on how to make pack.mcmeta)--> You need to create and arrange folders so your new textures can replace the ones from the mod. Below is an example of how to arrange resource pack folders and files.


'''Step 1: Creating your replacement texture'''
:'''Folder Structure:'''
 
You will need a copy of the pokemon's texture file so you can make edits to it. You can obtain a Pokemon's texture png by searching for it on the Gitlab(link gitlab texture section or something) or the mod's .jar file. Make sure you are grabbing the texture that is meant for the model currently in the mod.
 
 
Once your target Pokemon's texture png is obtained, you can make desired color changes using blockbench or other art creation apps. Make sure the dimensions of the png stay the same. When finished editing, save your png and make sure it has the exact same name as the original png.
 
 
 
'''Step 2: Arranging folders and files'''
 
The only two file requirements for texture replacements are textures and a pack.mcmeta file. (link on how to make pack.mcmeta) You need to create and arrange folders so your new textures can replace the ones from the mod. Below is an example of how to arrange resource pack folders and files.
 
Folder Structure:
  <div class="treeview">
  <div class="treeview">
*(name of your resource pack)
* [name of your resource pack]
**assets
** assets
***cobblemon
*** cobblemon
****textures
**** textures
*****pokemon
***** pokemon
******(target pokemon)
****** [target pokemon]
*******'''(pokemon).png'''
******* '''[pokemon].png'''
**'''pack.mcmeta'''
** '''pack.mcmeta'''
**'''pack.png'''(optional)
** '''pack.png''' (optional)




The target pokemon folder should include the pokedex number and the name of the pokemon.</div>
The target Pokémon folder should include the Pokédex number and the name of the Pokémon.</div>
Example: <code>0001_bulbasaur</code>
Example: <code>0001_bulbasaur</code>


Ensure that your pack.mcmeta contains the correct data inside or this pack wont be detected as a resource pack.  
Ensure that your pack.mcmeta contains the correct data inside or this pack wont be detected as a resource pack.  


 
=== Step 3: Test your pack in game ===
 
'''Step 3: Test your pack in game'''
 
Provided your resource pack is arranged correctly, it should be ready to work in game. The folder does not need to be a .zip to be recognized by Minecraft. It's recommended to keep packs unzipped in case any edits need to be made.  
Provided your resource pack is arranged correctly, it should be ready to work in game. The folder does not need to be a .zip to be recognized by Minecraft. It's recommended to keep packs unzipped in case any edits need to be made.  


<div>1. Copy your pack and place it in the resourcepacks folder in the Minecraft root directory.</div>
# Copy your pack and place it in the '''resourcepacks''' folder in the Minecraft root directory.
<div>2. Start up Minecraft and then go to Options ➜ Resource Packs. Select your pack to load it.</div>
# Start up Minecraft and then go to Options ➜ Resource Packs. Select your pack to load it.
<div>3. Load/create a world save that contains Cobblemon</div>
# Load/create a world save that contains Cobblemon</div>
<div>4. Once in the world, you can run the command <code>/pokespawn (target pokemon)</code></div>
# Once in the world, you can run the command <code>/pokespawn <target pokemon></code></div>
<div>5. Ensure your new textures are properly replacing the old ones.</div>
# Ensure your new textures are properly replacing the old ones.</div>
 
 


'''Step 4: Zip and share your resource pack''' (optional)
=== Step 4: Zip and share your resource pack <small>(optional)</small> ===


After confirming your pack is functioning properly, it can now be converted to a zip file using your preferred compression software. Be sure the file extension is specifically <code>.zip</code>
After confirming your pack is functioning properly, it can now be converted to a zip file using your preferred compression software. Be sure the file extension is specifically <code>.zip</code>


This zip file may now be uploaded somewhere and shared with others.
This zip file may now be uploaded somewhere and shared with others.

Revision as of 10:21, 2 July 2023

Preface

This tutorial will teach you how to make texture replacements for Cobblemon into a resource pack. Knowledge of resource packs is recommended.

Step 1: Creating your replacement texture

You will need a copy of the Pokémon's texture file so you can make edits to it. You can obtain a Pokémon's texture .png by searching for it on the Gitlab or the mod's .jar file. Make sure you are grabbing the texture that is meant for the model currently in the mod.

Once your target Pokémon's texture .png is obtained, you can make desired color changes using Blockbench or other art creation apps. Make sure the dimensions of the png stay the same. When finished editing, save your png and make sure it has the exact same name as the original png.

Step 2: Arranging folders and files

The only two file requirements for texture replacements are textures and a pack.mcmeta file. You need to create and arrange folders so your new textures can replace the ones from the mod. Below is an example of how to arrange resource pack folders and files.

Folder Structure:
  • [name of your resource pack]
    • assets
      • cobblemon
        • textures
          • pokemon
            • [target pokemon]
              • [pokemon].png
    • pack.mcmeta
    • pack.png (optional)


The target Pokémon folder should include the Pokédex number and the name of the Pokémon.

Example: 0001_bulbasaur

Ensure that your pack.mcmeta contains the correct data inside or this pack wont be detected as a resource pack.

Step 3: Test your pack in game

Provided your resource pack is arranged correctly, it should be ready to work in game. The folder does not need to be a .zip to be recognized by Minecraft. It's recommended to keep packs unzipped in case any edits need to be made.

  1. Copy your pack and place it in the resourcepacks folder in the Minecraft root directory.
  2. Start up Minecraft and then go to Options ➜ Resource Packs. Select your pack to load it.
  3. Load/create a world save that contains Cobblemon
  4. Once in the world, you can run the command /pokespawn <target pokemon>
  5. Ensure your new textures are properly replacing the old ones.

Step 4: Zip and share your resource pack (optional)

After confirming your pack is functioning properly, it can now be converted to a zip file using your preferred compression software. Be sure the file extension is specifically .zip

This zip file may now be uploaded somewhere and shared with others.