Protocol 1.7: Copied Mob Metadata code from 1.2.5.
Protocol 1.7: Fixed using entities.

The mouse buttons were swapped.