You cannot modify vanilla blocks such as Dirt or Grass to turn into a mud block. But if you had a modded block you could use it to detect in a 2x2/1x1 radius for water flowing/water still and to change it into mud.
You could try adding a procedure to the "When neighbour block changes" event. This way, if there isn't water next to it now, but water does come into contact with it later, it will still change.
Try making a update tick procedure with if get block at x y + 1 z = water do whatever you want the block to change.
How can I make the earth turn to mud by touching the water?
(This is translated with the google translator)
You cannot modify vanilla blocks such as Dirt or Grass to turn into a mud block. But if you had a modded block you could use it to detect in a 2x2/1x1 radius for water flowing/water still and to change it into mud.
I have the block, but how do I get it to detect the water.
You could try adding a procedure to the "When neighbour block changes" event. This way, if there isn't water next to it now, but water does come into contact with it later, it will still change.
Alright,thanks