Solved Furnace Light Event

Discussion in 'Plugin Development' started by 0ct0berBkkitPlgins, Dec 22, 2015.

Thread Status:
Not open for further replies.
  1. Anyone know a good way of getting a furnace turning on as a cancellable event? Note: I'm familiar with furnace smelting and all. I'm talking about the moment a fuel item is consumed to turn a furnace on.
     
  2. Offline

    567legodude

    @0ct0berBkkitPlgins You could try using the inventory click event for when someone puts something in, but I can't think of anything off hand for when a hopper feeds items into it.
     
  3. Offline

    pie_flavor

    @0ct0berBkkitPlgins Check for FurnaceBurnEvent, and add a cooldown dependent on the fuel so that you don't register multiple items being burned in a stack as multiple events.
     
    0ct0berBkkitPlgins likes this.
  4. @567legodude thanks but what I really needed was just a way that I can disable furnaces from even activating...

    @pie_flavor Thanks a lot! The event was all I needed :) Although I won't be needing a cooldown. I'm simply going to be disabling furnaces if some conditions aren't met.
     
    Last edited: Dec 23, 2015
Thread Status:
Not open for further replies.

Share This Page