#Item Model using Potion Overlay

32 messages · Page 1 of 1 (latest)

pallid stream
#

Been racking my brain over how to use a _overlay variant for when the item_model is used for a potion.

I've tried renaming the model to potion, using layers, emissive layers, but it's doesn't seem to change based on the potions colour
Is there ANY way that this is possible when using item_models?

floral warrenBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

pallid stream
#

Literally all I want is 6 pixels to change colour matching the potions contents

floral warrenBOT
# past nebula !faq tint
FAQ
Java: Tint

Tint is an option on Minecraft: Java Edition, which tells the game to tint certain faces of a model depending on the (hardcoded) assigned color map of the item/block. For example, leaves and grass get a color depending on the biome the block is placed in, leather armor gets a color depending on the color applied to it etc. Tinting can only be applied to items and blocks that support tinting. See https://minecraft.fandom.com/wiki/Color for a full list.

How to enable tint on multiple faces in Blockbench:

pallid stream
past nebula
#

at least assuming you want it colored based on the potion_contents component

pallid stream
#

Added that too and it's the exact same, is there a certain colour I have to use?

#
{
  "model": {
    "type": "minecraft:model",
    "model": "template:item/beer",
    "tint": {
      "type": "minecraft:potion",
      "default": "[0, 1, 0]"
    }
  }
}    
#

Does my overlay png have to be named beer_overlay or potion_overlay?

past nebula
#

the tinted part doesn't even need to be its own texture in theory

#

so the name of hte texture does not matter

#

the only thing determining whether something gets tinted by a respective color or not is whether or not the face has a tintindex applied (and the item itself has a tint color specified)

#

I just chose green as default color for your case as default color (in case there is no potion_contents color)

pallid stream
#

So, how do I get it set to certain pixels then? Based on colour?

past nebula
#

you can't change the UV based on a color value

#

you can only tell a face to be tinted or to not be tinted

pallid stream
#

So then how does tint work?
I've added the code and made the face have a tint but it doesnt change

past nebula
#

does your beer have a potion effect?

pallid stream
#

I currently have water, fire res, and regen

#

They all appear black

#

/give _Tegg_ potion[minecraft:potion_contents="water",minecraft:item_model="template:beer"]

past nebula
#

well, black tinted in any color will always look black

pallid stream
#

Well even in white it still appeared white

#

I've taken the colours from minecraft potion overlay and they haven't changed either

past nebula
#

hmm, try replacing the tint part in the item definition file to this

    "tints": [
      {
        "type": "minecraft:potion",
        "default": -13083194
      }
    ]```
past nebula
#

though idk if it needs an array or an object, so you can try that thing I sent too (that's from the default potion item definition file)

pallid stream
#

tints has made it the cursed pink and black cube