Difference between revisions of "Custom textures"
m (Text replacement - "Pixelmon Reforged" to "Pixelmon Mod") |
Lord Samosa (talk | contribs) m (moved around a few of the steps) |
||
Line 1: | Line 1: | ||
− | The Custom Textures feature is for mapmakers and server admins who want to add custom textures to Pokémon or [[Statues]] via resource packs in a similar way that Pixelmon adds [[Special textures]]. Check out [https://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack this page] on how to create a resource pack | + | The Custom Textures feature is for mapmakers and server admins who want to add custom textures to Pokémon or [[Statues]] via resource packs in a similar way that Pixelmon adds [[Special textures]]. Check out [https://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack this page] on how to create a resource pack to get started. |
− | |||
− | |||
Custom textures are loaded from <code>assets/pixelmon/textures/pokemon/custom-%value%/</code> Where <code>%value%</code> is a string value loaded from the nbt tag "CustomTexture" of a Pokémon or a Statue. These folders are to be made in your resource pack. | Custom textures are loaded from <code>assets/pixelmon/textures/pokemon/custom-%value%/</code> Where <code>%value%</code> is a string value loaded from the nbt tag "CustomTexture" of a Pokémon or a Statue. These folders are to be made in your resource pack. | ||
The "CustomTexture" nbt tag's value must be lowercase, but can otherwise be anything you like. For example, if you have a [[Ivysaur]] with the CustomTexture nbt tag value of "shadow" then the full texture path will be <code>assets/pixelmon/textures/pokemon/custom-shadow/ivysaur.png</code>. Or if you have a [[shiny]] [[Tyranitar]] with the CustomTexture tag value of "ghost" then the full path of the texture would be <code>assets/pixelmon/textures/pokemon/custom-ghost/shinytyranitar.png</code>. | The "CustomTexture" nbt tag's value must be lowercase, but can otherwise be anything you like. For example, if you have a [[Ivysaur]] with the CustomTexture nbt tag value of "shadow" then the full texture path will be <code>assets/pixelmon/textures/pokemon/custom-shadow/ivysaur.png</code>. Or if you have a [[shiny]] [[Tyranitar]] with the CustomTexture tag value of "ghost" then the full path of the texture would be <code>assets/pixelmon/textures/pokemon/custom-ghost/shinytyranitar.png</code>. | ||
+ | |||
+ | Once your textures are loaded and the resource pack is enabled, to use this feature, you can use the [[Pokémon spec]] <code>customtexture</code> to give/spawn a Pokémon with the texture, use an NBTEditor, a [[sidemod]] or the <code>/entitydata</code> command. | ||
For example, to use the [[Pokémon spec]] <code>customtexture</code>, you would do <code>/pokespawn Zapdos customtexture:galaxy</code>. This command would spawn a Zapdos with the custom texture <code>galaxy</code>. | For example, to use the [[Pokémon spec]] <code>customtexture</code>, you would do <code>/pokespawn Zapdos customtexture:galaxy</code>. This command would spawn a Zapdos with the custom texture <code>galaxy</code>. |
Revision as of 17:34, 22 November 2021
The Custom Textures feature is for mapmakers and server admins who want to add custom textures to Pokémon or Statues via resource packs in a similar way that Pixelmon adds Special textures. Check out this page on how to create a resource pack to get started.
Custom textures are loaded from assets/pixelmon/textures/pokemon/custom-%value%/
Where %value%
is a string value loaded from the nbt tag "CustomTexture" of a Pokémon or a Statue. These folders are to be made in your resource pack.
The "CustomTexture" nbt tag's value must be lowercase, but can otherwise be anything you like. For example, if you have a Ivysaur with the CustomTexture nbt tag value of "shadow" then the full texture path will be assets/pixelmon/textures/pokemon/custom-shadow/ivysaur.png
. Or if you have a shiny Tyranitar with the CustomTexture tag value of "ghost" then the full path of the texture would be assets/pixelmon/textures/pokemon/custom-ghost/shinytyranitar.png
.
Once your textures are loaded and the resource pack is enabled, to use this feature, you can use the Pokémon spec customtexture
to give/spawn a Pokémon with the texture, use an NBTEditor, a sidemod or the /entitydata
command.
For example, to use the Pokémon spec customtexture
, you would do /pokespawn Zapdos customtexture:galaxy
. This command would spawn a Zapdos with the custom texture galaxy
.
Another example would be /entitydata @e[type=pixelmon:pixelmon,name=Ivysaur] {CustomTexture:"shadow"}
. This command will change every Ivysaur out of its Poké Ball to the custom texture "shadow
", placed in the example above.
Loading a Custom Texture with NBTEdit
Step | Example |
---|---|
Create your custom textures and load them into a resource pack as specified above.
Download NBTEdit and put it in your mods folder. |
|
Create the Pokémon or Statue you want to apply the custom texture to. | |
While looking at the Pokémon/Statue you want to apply the texture to, type in the chat the command /nbtedit . A GUI will pop up.
|
|
Select ROOT then select the icon in the top left labelled String .
|
|
Click the icon in the top left labelled Edit . In the box that says Name input CustomTexture . In the box that says Value input the name that you put after custom- for the folder your custom texture is in.
|
|
Select Save and then Save in the bottom left. You will now have your custom texture applied to that Pokémon/Statue.
|
Special note to server owners
This feature was added in Pixelmon Mod 6.2.0 without a fallback implementation, though it was later changed to show the base skin instead if anything goes wrong.
If you have people capable of making or editing textures, please consider volunteering their time or skills to help the Pixelmon mod. The less the core team has to do the more they can work on development of the mod.