Pyrotech

Pyrotech

897k Downloads

Make anvils, chopping block, etc fire PlayerDestroyItemEvent

ProspectPyxis opened this issue ยท 0 comments

commented

Issue Description

So, what I'm trying to do is pretty specific, but here goes: I have a tool that I want to be able to be used with the chopping block (made in a custom mod, not ContentTweaker or the likes). The unique thing about it is that once the tool breaks, it gives you another item rather than disappearing outright. I'm currently subscribing to PlayerDestroyItemEvent to do this. Problem is, the chopping block doesn't seem to fire it if it breaks the tool used. I'm assuming that this would apply to other tool-based crafting interfaces as well (anvils, compacting bin, etc.).

What Happens

Subscribe to the PlayerDestroyItemEvent event. Once the tool breaks upon interaction with the chopping block, the event does not fire.

What You Expect to Happen

The event should have fired upon the tool breaking.

Affected Versions

  • Minecraft: 1.12.2
  • Forge: 14.23.5.2838
  • Dropt: 1.12.2-1.6.1
  • Pyrotech: 1.12.2-1.3.13
  • Athenaeum: 1.12.2-1.17.4