An IEntityDropFunction is called whenever the associated entity is killed. Leave it up to your imagination what you can do with this:
Importing the pacakge
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
The IEntityDropFunction is a function with the following parameters:
- IEntity entity → The entity that just died.
- IDamageSource dmgSourve → The source of the entitie’s death.
The Function needs to return an IItemStack, or