Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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!

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?

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.

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!

  • 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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.