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

Posted

Hello!

 

So I was looking into making my mod do something when a fuel item in a furnace is consumed.

Apparently there is currently no way to find out when a fuel item is consumed, since FurnaceFuelBurnTimeEvent is not only fired when a fuel item is consumed, but also when a fuel item is inserted into a furnace (sometimes multiple times).

(If someone knows another way to do this, please enlighten me)

Therefore, I'd like to suggest to add a new event that will fire only when a fuel item is consumed.

This event should at least contain the ItemStack and the burnTime, and maybe also the furnace tile entity so that its location can be determined.

For my personal use the event does not need to be cancelable, but this might be useful to make it very easy to prevent a fuel item from being consumed (for example for an infinite fuel item).

Other uses of this event include adding pollution when an item is burned (like my own mod), rendering special particle effects dependent on fuel item, making a furnace consume multiple fuel items at once, etc.

To be fair, probably not too many people would use this event, but it should not be too hard to implement.

 

Please discuss whether such an event is wanted and the best way to implement it. I'll think of whipping up some sample code in the meantime.

 

Cheers,

Desharin

  • Author

You mean from the perspective of me as modder?

I'm trying to add pollution to the environment when the player uses "unclean" items as fuel in a furnace.

The amount of pollution is dependent on the item used as fuel.

For this I need to have my mod add pollution the moment a fuel item is consumed.

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.