codetaylor / dropt-1.12

Flexible block drop strategies.
https://minecraft.curseforge.com/projects/dropt
Other
6 stars 2 forks source link

Drops of falling entity #35

Closed mobeonsa closed 6 years ago

mobeonsa commented 6 years ago

Is there a way to config drop from falling entity? (Then sand fall on torch)

codetaylor commented 6 years ago

Unfortunately, that is something that Dropt doesn't handle.

Falling blocks use ...

public EntityItem entityDropItem(ItemStack stack, float offsetY)

... to ultimately spawn the dropped item directly into the world. This bypasses the harvest event that Dropt uses to match and replace. Spawning the dropped item in the world does fire an EntityJoinWorldEvent, but it can't be used by Dropt because it doesn't deliver enough information. The join world event only notifies of the entity joining the world, not where it came from.