The purple Magic Block will upgrade all strawbies and pies to the purple bonus value. In order to use Magic, you will need to have a full magic meter. Fill it by collecting Stars. After activating Magic, the meter will decrease with every command that you play.
For more information, see our PDF guide to Coding Awbie.