Been trying for the last ninety minutes to get this to work, but whatever I try, it just won't.
I am trying to check if a dirt block is over the water level & if it doesn't have another block on itself, and then if it doesn't have one, set the block to animation frame 1 (to a grass block).
Code >
This is what happens when the code runs. No block becomes grassy (that one in the image was set by me).