Able to change material type. Also fixed missing semicolon

I thought this would be a cool feature to add. I'm not sure if actually changing the material type affects anything but it could be useful.