Started by
SquidkingInc
on
Topic category: Help with Minecraft modding (Java Edition)
In the procedure editor how do I make something test for a block but ignore all transparent blocks, such as slabs, glass, cobwebs, tall grass, flowers, ect. I know some blocks do this in Minecraft already such as grass blocks when testing to see if they have a solid block on top. ( I am trying to make grass blocks :/ )
Edited by SquidkingInc on Mon, 06/17/2019 - 10:25
You could check the light value on the block location and above it. If the value is the same, the block is transparent.
but that means if two blocks are above it, it will not turn to dirt...
Also then a torch will turn the grass to dirt, this doesn't really solve my problem
Test if the light value of the block above is more than 0. If it is, then your block is fine. If it is 0, then that means the block is solid and it needs to turn to dirt
but when it turns night all the grass will turn to dirt
The sky light value does not change with the day/night cycle, so your precious grass will not turn to dirt when it becomes night if the above procedure is used.
I tried this too in a kind of way, but it doesn't seem to work. I hope i can get some help
Does the image work?