From a2fbbe9c42e30c878d265f06898e28f7e0b6a533 Mon Sep 17 00:00:00 2001 From: rnd1 Date: Mon, 21 Nov 2016 12:54:51 +0100 Subject: [PATCH] .. --- init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 5b2b649..8b8e6c7 100644 --- a/init.lua +++ b/init.lua @@ -122,8 +122,12 @@ minetest.register_node("basic_protect:protector", { pos.y=pos.y+1; minetest.set_node(pos, {name = "air"}); minetest.set_node(p, {name = "basic_protect:protector"}); - local meta = minetest.get_meta(p);meta:set_string("owner",name); - minetest.chat_send_player(name, "#PROTECTOR: protected new area, protector placed at(" .. p.x .. "," .. p.y .. "," .. p.z .. "), area size " .. protector.radius "x" .. protector.radius .. " , 2x more in vertical direction"); + local meta = minetest.get_meta(p); + meta:set_string("owner",name); + meta:set_int("xt",p.x);meta:set_int("yt",p.y);meta:set_int("zt",p.z); + meta:set_string("tpos", "0 0 0"); + + minetest.chat_send_player(name, "#PROTECTOR: protected new area, protector placed at(" .. p.x .. "," .. p.y .. "," .. p.z .. "), area size " .. protector.radius .. "x" .. protector.radius .. " , 2x more in vertical direction"); meta:set_string("infotext", "property of " .. name); minetest.add_entity({x=p.x,y=p.y,z=p.z}, "basic_protect:display") local shares = "";