I wanted to make a block texture that had a second overlayed texture, that i could change the color of later on. I based my json file for the block model off of the grass_block.json, because it is one of the few blocks that does this (changing the grass color depending on the biome).
It more or less works as intended, but when I look at the block from more than 6 or 7 blocks away, some sides of the block turn almost black. The side that turns black depends on the angle I am looking at it from.
I've messed with the light value of the block, I have tried tampering with the tintindexes and cullface parameters,as well as tried "parent": "block/block" instead of "parent": "block/cube_all"
Also, the only reason the stone texture underneath was showing instead of just a solid white or black color, was because when I created the texture I just took the default lapis ore texture and erased all the stone parts and grayscaled it. Then when I saved it, even though it was 100% transparent, it still saved the color values of the erased pixels, and so I was just overlaying an entire texture over the stone block texture.
I wanted to make a block texture that had a second overlayed texture, that i could change the color of later on. I based my json file for the block model off of the grass_block.json, because it is one of the few blocks that does this (changing the grass color depending on the biome).
It more or less works as intended, but when I look at the block from more than 6 or 7 blocks away, some sides of the block turn almost black. The side that turns black depends on the angle I am looking at it from.
I've messed with the light value of the block, I have tried tampering with the tintindexes and cullface parameters,as well as tried "parent": "block/block" instead of "parent": "block/cube_all"
Here is my json file:
Any Ideas as to what's going on would be appreciated
Finally worked out what was wrong!
I created a class for my block:
The BlockRenderLayer function is the most important bit
Then when I register the block I create a new RNG_Ore, rather than a Block
Also, the only reason the stone texture underneath was showing instead of just a solid white or black color, was because when I created the texture I just took the default lapis ore texture and erased all the stone parts and grayscaled it. Then when I saved it, even though it was 100% transparent, it still saved the color values of the erased pixels, and so I was just overlaying an entire texture over the stone block texture.