Minecraft wiki entry for Pumpkin_and_melon_farming, associated text: Both melons and pumpkins are broken and dropped when a piston pushes into them. This mechanic can be used to create self harvesting farms. The simplests designs like this push sticky pistons upward into the fruit. Since it is difficult to automatically collect the items when harvested this way, the technique makes for some practical semi automatic designs.