Added metadata support for blocks and items. Removed some useless things.