ChiriVulpes / soulus

A Minecraft mod. You must sift through the ashes of the dead to restore life to the world.
https://soulus.info
Other
3 stars 3 forks source link

Prevent creeper explosion lingering effects for summoned creepers #38

Closed ChiriVulpes closed 5 years ago

ChiriVulpes commented 6 years ago

There is no official way to disable this functionality.

https://github.com/MinecraftForge/MinecraftForge/issues/4724

ChiriVulpes commented 6 years ago

From the linked issue:

this is fishy but since Explosion events can be caught by your mod and Explosions have the source as a field (private, so AT or reflect the field) you could clear the potion effects of creepers (specifically you can remove the potion effects with infinite duration, or only ambient, or whatever you want) when they explode. Since the explosion happens before the cloud is produced this should stop the cloud from being created.

ChiriVulpes commented 5 years ago

Lingering effects are removed from creeper explosions if the creeper was spawned by a Summoner (as those effects last forever, which is passed onto the lingering potion effect).

ChiriVulpes commented 5 years ago

Fixed as of v4.0.0