[SPIGOT-6401] FurnaceExtractEvent does not fire after player right clicks furnace output Created: 24/Mar/21 Updated: 29/Mar/21 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Ben Swartzlander | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None |
Attachments: |
![]() |
Version: | This server is running CraftBukkit version 3028-Spigot-79d53c2-7eb3564 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT) |
Plugin: | FurnaceExtractLogger (see attached) |
Guidelines Read: | Yes |
Description |
If a player right clicks on the output of a furnace, the player receives half of the items in that stack, and a FurnaceExtractEvent fires. However after this happens, the next click on the same furnace output does not cause any event to fire unless the furnace has updated the output by burning more items. To reproduce:
If you smelt 3 items, and remove one of them after the second completes smelting, then remove the remaining 2 after the third completes smelting, both events fire. Something strange occurs after right clicking the furnace output though. It does not matter if you close the furnace window and reopen it. |
Comments |
Comment by Ben Swartzlander [ 29/Mar/21 ] |
I will try to accomplish it with InventoryClickEvent. I suppose it's fine to close this bug. |
Comment by md_5 [ 29/Mar/21 ] |
Or InventoryClickEvent? |
Comment by Black Hole [ 29/Mar/21 ] |
You could use the Minecraft statistics to keep track of this. |
Comment by Ben Swartzlander [ 28/Mar/21 ] |
Thanks for an explanation of why this is. This creates a problem for me because I want to write a plugin that counts how many items each player smelts and how many items each player crafts. Are these things not possible with the current event API? |
Comment by md_5 [ 28/Mar/21 ] |
FurnaceExtractEvent fires when the experience is given. |