From the Super Mario Wiki, the Mario encyclopedia
A watermelon block (or melon block) is a large watermelon shaped like a cube, and is one of many kinds of blocks found throughout Super Mario Sunshine, along with brick blocks and sand blocks. They are green with dark stripes on the outside and red on the inside; they likely derive their appearance from Japanese watermelons, some of which are grown cubed.
Mario can only destroy these blocks by ground pounding them, making them the "opposite" of brick blocks, which can only be destroyed by jumping underneath them. They make a splashing noise when destroyed, and sometimes drop a single coin.
Names in other languages