added /protector_show /protector_hide feature
This commit is contained in:
parent
db932e676c
commit
c147242c7d
5 changed files with 106 additions and 7 deletions
2
hud.lua
2
hud.lua
|
|
@ -24,7 +24,7 @@ minetest.register_globalstep(function(dtime)
|
|||
local protectors = minetest.find_nodes_in_area(
|
||||
{x = pos.x - radius , y = pos.y - radius , z = pos.z - radius},
|
||||
{x = pos.x + radius , y = pos.y + radius , z = pos.z + radius},
|
||||
{"protector:protect","protector:protect2"})
|
||||
{"protector:protect","protector:protect2", "protector:protect_hidden"})
|
||||
|
||||
if #protectors > 0 then
|
||||
local npos = protectors[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue