Jump to content

Can add enchants to armor in single player, but not multiplayer


Recommended Posts

Hey so I made some armor and everything seemed fine in single player as I was able to add every enchant to it(and still am)

but I installed the mod on a server and try to add the enchant and the red X on the anvil just stays there. It doesn't say anything about levels or anything AND being in creative mode doesn't help. Any ideas?


UPDATE: So it only does that for enchants I craft(I added crafting of a few of them) the code I use is this:


ItemStack magicBook = new ItemStack(Items.enchanted_book);

magicBook.addEnchantment(MainItems.finalStandEnchant, 2);

GameRegistry.addRecipe(magicBook,new Object[]{"XXX","XZX","XXX",'X',Items.diamond,'Z',Items.book});


It doesn't let me apply the crafted one, but when I spawn the exsact same enchant in it lets me apply it. What am I doing wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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