Player Heads

Player Heads

897k Downloads

Add mob spawner config option

TerdyTheTerd opened this issue ยท 3 comments

commented

Describe the solution you'd like
Add a config option to not drop mob heads from mobs that were spawned from a mob spawner. This is to prevent mob heads from losing rarity easily with mob spawner farms, especially when using SilkSpawners or other such plugins.

Additional context
CreatureSpawnEvent store PersistentData via PersistentDataContainer class from Spigot-API if spawn reason is SPAWNER.
EntityDeathEvent check for PersistentData key that was set, return if set

I was implementing this myself, but I honestly cannot for the LIFE of me, get maven to behave and get spigot api added correctly. Build always fails because it cannot find the methods used in the above mentioned class.

commented

noting your downstream issue crashdemons#77

commented

Closing as this was implemented downstream I believe?

commented

implemented, but hasn't been rigorously tested.