More work on magic and a few bug fixes to other blocks (Items disappearing when moved from machine to inventory should now be fixed and a few blocks now have shift-click support)