1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Added plate runes

- Added plate template for runes
 - Added on_punch API's handler's function
 - Added popper rune
This commit is contained in:
LeMagnesium 2015-04-26 15:45:04 +02:00
parent 01c6adb660
commit 275fbd4e09

View File

@ -85,6 +85,14 @@ end
set_manamax = function(itemstack, user, pointed_thing)
if user and user:is_player() then
mana.set(user:get_player_name(),mana.getmax(user:get_player_name()))
if not minetest.get_player_privs(user:get_player_name()).server then
-- Violent reaction if not admin
user:set_hp(1)
user:set_breath(1)
local userpos = user:getpos()
local useritem = user:get_wielded_item()
user:setpos({x=userpos.x+math.random(-50,50),y = userpos.y + math.random(1,20),z = userpos.z + math.random(-50,50)})
end
end
end