Rewrite for 1.7 of EnchantingPlus