How do I get the block that's touching STILL_WATER block? For instances, I wanna work on sugarcane generation, how do I get the block that's touching 'STILL_WATER'?
PHP: $isRiverbank = false;for($side = 2; $side <= 5; $side++){ if($block->getSide($side)->getId() === Block::STILL_WATER){ $isRiverbank = true; break; }}if($isRiverbank){ ...}