No Creeper Damage
#1
Self explanatory. Creepers can still hurt players, but not damage structures or make craters. Now that mobs go to school, and can be used, some of us want this. Smile
Reply
Thanks given by:
#2
Pretty easy, I'm pretty sure I can make something like this in 30 minutes if there isn't already a plugin for this. I have to wait until tomorrow morning here to use my PC though.
Reply
Thanks given by:
#3
Little harder then you'd think. You either block the whole explosion or don't block anything. You'd have to simulate the player-damage yourself
Reply
Thanks given by:
#4
Can't you just block the block destruction? (and btw maybe add to essentials)
Reply
Thanks given by:
#5
I'm afraid not. You block either everything or nothing. Perhaps we could change the hook. You could return multiple values. If the first returned value is true the entity damage is blocked, and if the second value is true the world destruction is blocked.

If the first is true, but the second is nil we'd block everything so we don't break the existing plugins.
Reply
Thanks given by:
#6
Ehmmm.... On Block Destroy? Can't you add a "destroyer" who wants to destroy the block, can be player, explosion (creeper?), enderman...
Reply
Thanks given by:
#7
(01-19-2016, 03:38 AM)Schwertspize Wrote: Ehmmm.... On Block Destroy? Can't you add a "destroyer" who wants to destroy the block, can be player, explosion (creeper?), enderman...

Chances a good that many also do not want endermen to slowly but surely destroy buildings, over the course of months, so taking into account what is doing damage might be a good idea.
Reply
Thanks given by:
#8
With the API cWorld:SetBlock(), there's just too much information flowing through and any hook could seriously hinder the server's performance. Not to mention that sometimes the "what" is not addressable by Lua - for example the fluid simulator, or natural growth don't have a corresponding Lua object type.
Reply
Thanks given by:
#9
Well, here's a thing of a plugin I guess. Also disables all explosion damage cause I was having trouble with the esXXX constants not really doing anything.


Attached Files
.zip   NoCreeperDamage.zip (Size: 899 bytes / Downloads: 470)
Reply
Thanks given by:
#10
It says "The attachment does not exist". Sad

It would be a start, I guess. Not totally excited about people using TNT, not that it happens a lot, but I'd still permit them using it because I know sometimes it just really saves them a lot of digging ... Smile.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)