1. Changed block change functions to Material types instead of ids.
2. Fixed broken wrench right-click and cleaned up a bit.