Page 1 of 1
Toggle pvp mod

Posted:
Thu Mar 27, 2014 01:52
by mcfan
Im looking for a toggle pvp mod that works with the protector mod where you could do /togglepvp to turn pvp off and again to turn it on again. It would also only toggle pvp in the space that the protector covered. Is this possible?

Posted:
Thu Mar 27, 2014 09:19
by 4aiman
Hmmm... maybe this thing should be introduced into protector mod...
Remote deactivation of a given protector node for a certain person for specified amount of time (0=eternity) invoked on chat command sounds like a good idea :)

Posted:
Thu Mar 27, 2014 23:55
by mcfan
Is this something you can do?

Posted:
Fri Mar 28, 2014 08:54
by 4aiman
Probably I can, but it's better to ask protector mod authors.
I have my own privacy mod called shared_autoban and if I'm to write/rewrite a protection mod, I'm likely to add features there. But there's no pvp disabler at all in my mod. It only forbids placing and destroying nodes within defined areas if there's a node placed by someone else. Also the version that's publicly available is broken.
Just search the forums, you'll find protection mods as well as their respectable authors.

Posted:
Fri Mar 28, 2014 14:04
by mcfan
I PM the guy who made the protector mod but I haven't got a reply yet.

Posted:
Fri Mar 28, 2014 14:19
by Krock
mcfan wrote:I PM the guy who made the protector mod but I haven't got a reply yet.
I looked through the minetest lua api and couldn't find any function which gets used when a player gets hurt by "object".
Function status: not integrated, your project/idea seems to be currently impossible.

Posted:
Fri Mar 28, 2014 18:44
by mcfan
That is too bad. I hope we can find something sometime. Thanks for looking though.

Posted:
Sat Mar 29, 2014 01:20
by mcfan
Where is the programming for turning off enable damage? Any way to make it turn off enable damage upon entering a area?

Posted:
Sat Mar 29, 2014 01:39
by minermoder27
To disable damage, just keep setting any players within the area to 20 hp / 10 hearts. I think there is also a way to remove the health bar from the head-up display.

Posted:
Sat Mar 29, 2014 12:00
by mcfan
But then people could still irritate you by making your screen red all the time.
Re: Toggle pvp mod

Posted:
Sat Jun 25, 2016 15:58
by Cristal
hi