Replies: 1 comment
|
Duplicate of #10541, I think calling EntityDropItemEvent is doable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
There's no API to change drops when Item Frame is destroyed, while also having access to the ItemFrame entity to e.g., read its PDC.
Describe the solution you'd like.
EntityDropItemEventcalled for Item Frame and the item inside of it.HangingBreakEvent#getItemsorHangingBreakEvent#getDropsDescribe alternatives you've considered.
Marking frame location on
HangingBreakEventthen retrieving it onItemSpawnEventand handling the rest of the logic.Other
Let me know if there's a cleaner solution. Basically trying to apply
item_modelcomponent to a dropped item frame if the entity was invisible.All reactions