Updated to new metadata system for blocks. Converted code to use
materials instead of block IDs.