No Creeper Damage - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html) +--- Thread: No Creeper Damage (/thread-2323.html) Pages:
1
2
|
No Creeper Damage - Jammet - 01-18-2016 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. RE: No Creeper Damage - DiamondToaster - 01-18-2016 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. RE: No Creeper Damage - NiLSPACE - 01-18-2016 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 RE: No Creeper Damage - Schwertspize - 01-18-2016 Can't you just block the block destruction? (and btw maybe add to essentials) RE: No Creeper Damage - NiLSPACE - 01-18-2016 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. RE: No Creeper Damage - Schwertspize - 01-19-2016 Ehmmm.... On Block Destroy? Can't you add a "destroyer" who wants to destroy the block, can be player, explosion (creeper?), enderman... RE: No Creeper Damage - Jammet - 01-19-2016 (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. RE: No Creeper Damage - xoft - 01-19-2016 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. RE: No Creeper Damage - DiamondToaster - 01-21-2016 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. RE: No Creeper Damage - Jammet - 01-31-2016 It says "The attachment does not exist". 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 ... . |