Cuberite Forum
Block damage - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Block damage (/thread-1336.html)

Pages: 1 2


Block damage - Antonio - 01-30-2014

How do i disable the following globally?

- TNT block damage.
- Creeper block damage.
- Endermen block damage.
- Wither block damage.
- Ghast block damage.

Is there a plugin that can do this? On bukkit i know that worldguard can disable these things. I also noticed that the integrated SpawnProtect doesn't protect the spawn from creeper block damage.


RE: Block damage - NiLSPACE - 01-30-2014

Enderman do not pickup any blocks yet. Somebody could maybe create a plugin that uses the OnExploding hook to block the explosions, but I think the server would crash when a creeper explodes because the cCreeper class isn't exported to the Lua API yet.


RE: Block damage - Antonio - 01-30-2014

Sad This way anyone can grief my spawn with the creepers and anyone can ruin the world with the TNT easily. I hope this API and plugin gets developed because it is not possible to run a production server without these features.


RE: Block damage - NiLSPACE - 01-30-2014

I quickly created it. Surprisingly it didn't crash when a creeper exploded.


RE: Block damage - Antonio - 01-30-2014

Yay thanksBig Grin I will test it out now.


RE: Block damage - NiLSPACE - 01-30-2014

Maybe you can try programming yourself? Lua is realy easy and you have enough examples you can use. It's realy exciting to see your first plugin up and running Smile
EDIT:
Oops I just discovered I left a debug message in the plugin. Here is a new version:
.zip   ExplosionSpawnProt.zip (Size: 981 bytes / Downloads: 238)


RE: Block damage - Antonio - 01-30-2014

I have no idea how to spawn a creeper >.<
Also can you make it globally instead of spawn only? To disable TNT and creeper block damange globally everywhere on the server.


RE: Block damage - NiLSPACE - 01-30-2014

SpawnEgg Smile
Here is an update. If you set the radius to -1 or lower it "should" always block the explosion.


RE: Block damage - Antonio - 01-30-2014

Oh i forgot about the egg. I thought i could spawn with a commandBig Grin
Thanks for the update, it doesn't crash btw i only get few lines like these:
19.027230196641
32.924725098506
30.939503717705
31.881172306132
31.068301399531


RE: Block damage - NiLSPACE - 01-30-2014

https://forum.cuberite.org/showthread.php?tid=1336&pid=11992#pid11992

Quote:EDIT:
Oops I just discovered I left a debug message in the plugin. Here is a new version:
Smile

It should also be gone here though: https://forum.cuberite.org/attachment.php?aid=438