This commit is contained in:
debiankaios 2022-10-06 14:26:51 +02:00
parent f73e32da6f
commit 3aab7b8520

View File

@ -15,7 +15,7 @@ function tnttag.add_tnthead(p_name)
local player = minetest.get_player_by_name(p_name)
if player then
local tnthead = minetest.add_entity(minetest.get_player_by_name(p_name):get_pos(), "tnttag:tnt_if_tagged", nil)
tnthead:set_attach(minetest.get_player_by_name(p_name), "Head", {x=0, y=2, z=0})
tnthead:set_attach(minetest.get_player_by_name(p_name), "Head", {x=0, y=10, z=0})
end
end
-- removes the tnt entity