Minecraft wiki entry for Pumpkin_and_melon_farming, associated text: These farms send redstone power through the space where a pumpkin or melon can grow. When the block there is opaque, redstone power can pass to next component, triggering a piston to harvest the pumpkin or melon.