79

6 0 0
                                    

While I'm at it! Here's the comment necessary to automatically enchant items once crafted instead of separately!

You would put this in the item folder. Not the output folder.

"

/** Makes your Item Enchanted when it is crafted */

        public void onCreated(ItemStack item, World world, EntityPlayer player)
        {
            item.addEnchantment(Enchantment.knockback, 5);
            // Replace the "." after "Enchantment" to see options
            // The number is the Enchantment Level
        }

"

101 Minecraft Facts!!! Where stories live. Discover now