Block damage
#1
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.
Reply
Thanks given by:
#2
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.
Reply
Thanks given by: Antonio
#3
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.
Reply
Thanks given by:
#4
I quickly created it. Surprisingly it didn't crash when a creeper exploded.


Attached Files
.zip   ExplosionSpawnProt.zip (Size: 988 bytes / Downloads: 298)
Reply
Thanks given by: Antonio
#5
Yay thanksBig Grin I will test it out now.
Reply
Thanks given by: NiLSPACE
#6
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: 272)
Reply
Thanks given by: Antonio
#7
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.
Reply
Thanks given by:
#8
SpawnEgg Smile
Here is an update. If you set the radius to -1 or lower it "should" always block the explosion.


Attached Files
.zip   ExplosionSpawnProt.zip (Size: 992 bytes / Downloads: 332)
Reply
Thanks given by:
#9
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
Reply
Thanks given by:
#10
https://forum.cuberite.org/showthread.ph...2#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
Reply
Thanks given by:




Users browsing this thread: 8 Guest(s)