Page 1 of 1

"invincible" priv

PostPosted: Wed Feb 26, 2014 21:41
by cheapie
It's already possible to disable damage on a server-wide basis, but it would be nice to have an "invincible" priv that could be given to certain users, so that, for example, server admins could easily fix lava spills.

PostPosted: Thu Feb 27, 2014 01:40
by twoelk
maybe diamond armour?

... as in this other voxel based game

PostPosted: Thu Feb 27, 2014 09:04
by TenPlus1
Lava damage can be fixed easily without the need for invincibility...

PostPosted: Thu Feb 27, 2014 23:39
by Novacain
wouldn't be too hard. simply add a priv that, when enabled, sets armor to 0. then nothing would hurt, except lava and drowning.

PostPosted: Fri Feb 28, 2014 06:25
by sfan5
Novacain wrote:sets armour to 0

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local armour = 0

I don't think that'll work.

PostPosted: Fri Feb 28, 2014 17:30
by Novacain
fine, armor. but I still think armour looks cooler :P

PostPosted: Fri Feb 28, 2014 17:49
by sfan5
Novacain wrote:fine, armor. but I still think armour looks cooler :P

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local armor = 0

will not do anything either.

PostPosted: Fri Feb 28, 2014 18:18
by Novacain
what about:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
armor_level = 0

PostPosted: Fri Feb 28, 2014 18:54
by sfan5
You don't get it, do you?
Setting a variable in Lua without using any Minetest-related functions is not going to do anything.