So I've been learning how to use Optifine to create biome-specific colormaps. I want to make a flower (I used the White Tulip) change color based on the biome it's in. It worked great, the correct colors display in the correct biomes. However, it changes the entire flower's texture. For example, in the desert, the whole flower is tinted red, even the stem, and it looks awful. I'm wondering if there's any way to add an overlay of the flower stem to the block. Grass blocks do this, the dirt on the sides act as an overlay, and keep the sides of the grass block from changing colors. If I can add an overlay, that would be very helpful. I have a collection of blocks I want to try this with other than this tulip. I tried mimicking existing block's .json's in the model folder, but it just displays that black-and-purple missing texture. I'm playing 1.16.4 and I am unsinging Optifine. Anybody have and ideas?
So I turn the flower stem grayscale? Won't that make it still colors more? I'm trying to get the stem to overlay on top of the color changing texture, kinda like potions, how the bottle is colorized and unchanging, but the contents are grayscale so the colormap can display over the top. That way the flower bulb will only be colored, and the stem will remain green no matter what biome they're in.
I have the flower named as "white_tulip" and the green stem as "white_stem_overlay", maybe that's the issue and I need to change them around? Is it even possible to add an overlay to a block that doesn't usually have one?
the colormap changes the entire flower. I just was wondering if I can keep those color changes to only specific portions of the texture. In this case, that's the bulb of the flower. I just want to know if I can put the second image I uploaded, the flower's stem, overlayed on top of the first so the color map effects the flower bulb and not the stem. The little bit of coding I did in the .json file I attached doesn't work, I just tried something on a hunch and wondered if you guys had any guidance for me. So, to your knowledge, is it possible for me to give this tulip a second overlaid layer that is not effected by the biome specific colormap?
Okay, so I figured that maybe I should try something that's easier to understand first, and then come back to the tulip after I know what I'm doing. So I used the same colormap and gave it to the birch planks. The goal is to make it so only two of the four 'boards' on the texture are effected by the colormap. This would make it so the other two are unchanging no matter what biome they are in. That's what I want to do with the tulip as well, I want to learn how to make textures that are only partially effected by biome colormaps. I tried to copy what I saw happening with the grass block as best I could to see if I could figure it out. So down below I attached the birch plank texture and the overlay I created. I want to make it so the overlay, the two boards, is the only part of the block effected by the biome colormap. Then I copied what I saw in the grass.json model file into the birch_planks.json also in models. That's down below too. This worked decently well, the only issue is that the overlay texture still covers the whole block. For example, in the screenshot I uploaded, the plains biome makes the texture light green. My issue now is that the overlay doesn't let the texture beneath it show, like grass blocks do. Instead it covers the blank sections with just the plains green color. I attached a link to a similar thread that had the same issue, if that helps make what I need help with more clear. I currently have the exact same problem GoopyXXV did. If I can figure out how to do this on the birch planks, my hope is that I can take what I learn and apply it to the tulip later. Any suggestions?