Jump to content

elementalvenom

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by elementalvenom

  1. 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?
  2. Hey so I'm able to use player.getItemInUse() when I run it in single player. But when I connect to a server the server crashes when the code is run. This code is only allowed to run server side and I saw another forum post that said this cant be run server side. If I cant then how do I get what item the player has out?
  3. Thank you that helped greatly, but now I have another problem: Its called the arrow event twice even though I only have the code in there once.
  4. yea I found a "onPlayerShootArrow" event and put it in my main class and put "@SubscribeEvent" Above it but the function never gets called
  5. Hey so I want to simply change the default minecraft bows damage to be double whenever my mods chestplate it equipt. I cant find ANY way to do this(After a little over a hour of searching) Any help is appreciated, thank you!
×
×
  • Create New...

Important Information

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