You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forge provides an event (HarvestDropsEvent) that allows modification of the drops of a harvested block. See this function and where it is called in Minecraft code.
To add support for this event to BlockArray and classes that extend from it (like TreeReader), you'd need to add a ForgeEventFactory.fireBlockHarvesting call after this Block.getDrops call in BlockArray.getAllDroppedItems, which would also mean that the player would need to be passed to getAllDroppedItems.
Forge provides an event (
HarvestDropsEvent) that allows modification of the drops of a harvested block. See this function and where it is called in Minecraft code.To add support for this event to
BlockArrayand classes that extend from it (likeTreeReader), you'd need to add aForgeEventFactory.fireBlockHarvestingcall after thisBlock.getDropscall inBlockArray.getAllDroppedItems, which would also mean that the player would need to be passed togetAllDroppedItems.Related: bspkrs/Treecapitator#33 and squeek502/VeganOption#30
The text was updated successfully, but these errors were encountered: