Add entity nametags to hide nametags behind nodes

This commit is contained in:
rubenwardy 2018-01-21 20:40:41 +00:00
parent ff3eb5e49f
commit 526b4fdad3
159 changed files with 179 additions and 9 deletions

View file

@ -48,7 +48,7 @@ local function add_HP_gauge(name)
local pos = player:get_pos()
local ent = minetest.add_entity(pos, "gauges:hp_bar")
if ent ~= nil then
ent:set_attach(player, "", {x = 0, y = 10, z = 0}, {x = 0, y = 0, z = 0})
ent:set_attach(player, "", {x = 0, y = 9, z = 0}, {x = 0, y = 0, z = 0})
ent = ent:get_luaentity()
ent.wielder = player:get_player_name()
end