ngl this took me like 20 mins cuz i like icosos vid where he did the same in his "I made infinite worlds for silly little guys" vid
this generates a radom island by checking the block to the left and above the current block, sand can be next to grass and water, water cant be next to grass, and grass cant be next to water