How to make a no death animation plugin

Im trying to make a wither simply disappear when it dies and not allow it to have the vanilla death animation but sponge is a lot more complicated than bukkit or spigot. What code would i need to do the above?

https://github.com/SpongePowered/SpongeAPI/tree/bleeding/src/main/java/org/spongepowered/api/event/entity

Start here, you’re gonna need a listener, probably gonna want to listen for when a wither dies, and then you’re gonna want to remove it.

Probably, DestructEntityEvent.Death
Will probably be what you want. Then you might be able to get an entity Id from it and be able to make It poof from there.

1 Like