hafarooki / ExplosionReversal

A lightweight plugin for Minecraft servers which makes blocks destroyed by explosions regenerate.
MIT License
8 stars 7 forks source link

No way of ignoring bed explosions #34

Open Acervans opened 4 years ago

Acervans commented 4 years ago

Beds aren't considered entities and therefore their explosions cannot be ignored.

hafarooki commented 4 years ago

I'm hesitant to solve this by simply checking if the block is a bed, because it could be a plugin-induced explosion on a bed

Acervans commented 4 years ago

I'm hesitant to solve this by simply checking if the block is a bed, because it could be a plugin-induced explosion on a bed

That would be enough I think. Same issue with respawn anchors outside of the Nether

hafarooki commented 4 years ago

It would work, but again, it would interfere with e.g. projectiles from a plugin that has explosive projectiles whenever they hit an excluded block.

Acervans commented 4 years ago

Could you detect the radius of the explosion? Because the only explosions with radius 5 are beds and respawn anchors, they could be detected and then verify the block maybe?