Page 1 of 1

Need help with getting grass on a block to render tint

Posted: 13 Nov 2016, 17:42
by mrbysco
I am the author of the mod "Random Decorative Things" and am currently working on adding all regular village structures to Minecraft as miniature blocks.
I just made the butcher's structure and can't seem to figure out how to do the tint on the grass.

https://sketchfab.com/models/fb955ca51 ... 96a4c3623 (currently don't have time to do the sketchfab bbcode


Following is link to the Json code
https://github.com/Mrbysco/Random-Deco ... cher.json

if anyone could help me that would be great.

-Mrbysco

Re: Need help with getting grass on a block to render tint

Posted: 13 Nov 2016, 18:12
by HanFox
Tint is hard-coded in Minecraft for certain blocks/items.

You would either need to somehow get your mod to fetch the tint for the object (which would be a question better asked on the Forge forum/IRC) or provide a specific texture that is already tinted that you can use.

Re: Need help with getting grass on a block to render tint  [Solved]

Posted: 13 Nov 2016, 18:32
by Sphax
You'll probably need to set faces of your model with grey texture with tint index to 0 and then in your mod set the tint index 0 to a green for your block.

That's how grass and leaves are working in vanilla Minecraft.