Posted January 18, 201510 yr It wrong or I noob. -.- In this picture : http://puu.sh/eGwqR/764ed7c409.png
January 18, 201510 yr What? We have a hoe event but no ItemEaten event? What exactly does not work? Do you get an error or does the event simply never work? Here could be your advertisement!
January 18, 201510 yr Are you actually firing a HoeEvent anywhere? You should fire it in the onItemUse of your custom hoe, unless you are making a call to super, Forge doesn't know that there was an event. Are you doing something with the event result after you fire it?
January 18, 201510 yr To add to what Darkona said, why do you even use the Event when it's your own Hoe item? That's redundant. I agree is redundat, except in the rare case when you'd like other mods to notice that you used a hoe, for example. By the looks of it, though, he uses a custom hoe on a custom block, so it doesn't appear to be necessary at all.
January 18, 201510 yr To add to what Darkona said, why do you even use the Event when it's your own Hoe item? That's redundant. What? We have a hoe event but no ItemEaten event? We do, actually. Take a look at PlayerUseItemEvent. I think i looked at that event, but it fired before i finished eating --> player could stop eating, get the effect and still keep the item. Maybe he wants to create multiple items that use this code. Then it could be faster to use this instead of adding this to every single one of his items. Here could be your advertisement!
January 19, 201510 yr Author Oh! How to do it? Changing UseHoeEvent to PlayerUseItemEvent??? My modding knowledge is very baddd.
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.