Jump to content

Blir

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Blir

  1. This is my first Forge mod, basically it lets you craft ender eyes together with ores into these "Eyes of Prospecting" that when you right click, they fly towards the ore you crafted it with rather than a stronghold. I copied a lot of the code over from ItemEnderEye & EntityEnderEye since I wouldn't know how to do a lot of it. Everything works as expected, except when you right click, the onItemRightClick method is called twice. This creates two Eyes of Prospecting, where one eye just floats there and never goes away and the other eye acts as expected. However, this only happens sometimes.

     

    ItemEyeOfProspecting.java:

    http://paste.minecraftforge.net/view/44e4c778

     

    In the Item file, if you remove lines 74-77, it happens every time, so I'm guessing that's the bit of code that ItemEnderEye uses to prevent this happening, but it doesn't seem to be working for me.

     

    EntityEyeOfProspecting.java:

    http://paste.minecraftforge.net/view/2112fa4c

     

    EnderProspecting.java (main mod class):

    http://paste.minecraftforge.net/view/022bc3cf

     

    Any help is appreciated, thanks in advance.

×
×
  • Create New...

Important Information

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