Minecraft wiki entry for Pumpkin_and_melon_farming, associated text: This design uses sticky pistons to push the block the pumpkin or melon is sitting on upward. To save redstone, it is possible to waterlog slabs so that the redstone line can be underneath the water without being washed out.