#Item Model using Potion Overlay
32 messages · Page 1 of 1 (latest)
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.
Literally all I want is 6 pixels to change colour matching the potions contents
!faq 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:
I've just enabled that but nothing seems to have changed?
If you use an item_model component you might need to specify it like this in the item definition file:
{
"model": {
"type": "model",
"model": "...",
"tint": {
"type": "minecraft:potion",
"default": "[0, 1, 0]"
}
}
}```
at least assuming you want it colored based on the potion_contents component
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?
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)
So, how do I get it set to certain pixels then? Based on colour?
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
So then how does tint work?
I've added the code and made the face have a tint but it doesnt change
does your beer have a potion effect?
I currently have water, fire res, and regen
They all appear black
/give _Tegg_ potion[minecraft:potion_contents="water",minecraft:item_model="template:beer"]
well, black tinted in any color will always look black
Well even in white it still appeared white
I've taken the colours from minecraft potion overlay and they haven't changed either
hmm, try replacing the tint part in the item definition file to this
"tints": [
{
"type": "minecraft:potion",
"default": -13083194
}
]```
oh, I wrote tint, not tints, that might have been the problem
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)
tints has made it the cursed pink and black cube
This worked!