Blir
-
Posts
3 -
Joined
-
Last visited
Posts posted by Blir
-
-
That fixed it! Thanks guys.
-
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.
[1.16.3] Need help attaching Eclipse Debugger
in ForgeGradle
Posted
In case someone stumbles upon this same issue looking for a solution, in my case the problem was that I needed to run:
And then refresh the project in eclipse. (Maybe this is the step that used to be step 5 at the time of this post, but it is now step 6.)