Minecraft 1.17 how to create custom coloured potion texture pack

Minecraft 1.17 how to create custom coloured potion texture pack - Rectangular White Color Painting Palette Beside Eyeglasses

I would like to design a texture pack with custom more distinguishable potion colours for each potion type. How do I go about doing this?

I've been able to unpack the .jar file, find the \assets\minecraft\textures\item directory, but I've only found the following potion texture files: potion.png, potion_overlay.png, splash_potion.png, and lingering_potion.png

There doesn't seem to be any textures specific to each type of potion. Is the colouration of each potion type designated in the game code or a json file somewhere? Is a data pack required as opposed to a texture pack?



Best Answer

this unfortunately is impossible...

...because of the way the textures are handled. like ExpertCoder said, you can create your own custom in-game colors, likewise with leather armor. because of that, Minecraft takes the potion textures (which have a transparent gray texture by default) and applies an "overlay" of sorts to give it the colors it wants. since those colors are coded into the game itself, and not accessible by the player (in a way that doesn't class as a mod), you can't directly edit it.




Pictures about "Minecraft 1.17 how to create custom coloured potion texture pack"

Minecraft 1.17 how to create custom coloured potion texture pack - Top view of various pieces of colorful plastic construction toys scattered on wooden floor as abstract background
Minecraft 1.17 how to create custom coloured potion texture pack - Abstract background texture of blue and brown color
Minecraft 1.17 how to create custom coloured potion texture pack - Green leaf with brush in white paint



How do you change the color of a potion in Minecraft texture pack?

You need to create a resource pack (Shown in my youtube channel) then, create a potions folder and find a picture of a cool potion bottle on line that you want to use. After that, just save the picture, copy it, paste it 4 times, and name them: potion_bottle_drinkable.

How do you make a custom texture pack in Minecraft?

Go to Finder>Library>Application Support>minecraft>Texture Packs, and drag your . zip in. Now you can use your texture pack by selecting the button "mods and texture packs" in the main menu of Minecraft, and clicking on your pack.

How do you make different colored potions in Minecraft?

If you open the assets folder, and then the minecraft folder, and then select textures, you will find yourself presented with several folders containing Minecraft's textures, which you can copy and edit to your heart's content.



Minecraft - Change Hardcoded Colors! (Resource Pack Tutorial)




More answers regarding minecraft 1.17 how to create custom coloured potion texture pack

Answer 2

Unfortunately, the default potion colours are used by adding colour filters to the potion texture you found. The default potion colours are hardcoded into the game. The only way to change the way the colour filter works is to put an NBT tag on the potion item with a number representing the colour of the potion. The game automatically changes the colour of the texture to match the number you select.

This tag is called CustomPotionColor, and the formula to find the correct value is (R << 16) + (G << 8) + B.

Sample:

give @p minecraft:potion{CustomPotionColor:16777215}

The only way to make a colour as the default colour is to set up a system that can detect a potion in your inventory and automatically replace it.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Craig Adderley, Enric Cruz López, Karolina Grabowska, Tatiana Syrikova