Jump to content



Recommended Posts

I'm trying to make a crafting recipe for an enchanted book that has an enchantment already applied like sharpness or something.  But when I do .addEnchantment(Enchantment.sharpness, 1) to the item that I'm crafting then all it does is apply it like it's a sword or something, thus making it where I can't use it as an enchanting book, but as a weapon. any help?


public static void registerCraftingRecipes() {
	ItemStack sharp1 = new ItemStack(Items.enchanted_book);
	sharp1.addEnchantment(Enchantment.sharpness, 1);
	GameRegistry.addRecipe(new ItemStack(Items.enchanted_book), new Object[] {"F  ", " PP", " PI", 'F',Items.flint,'P',Items.paper,'I',Items.iron_sword});


This gives me the incorrect output.

Edited by MCRM
Link to comment
Share on other sites

  • Guest locked this topic
This topic is now closed to further replies.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.