if not minetest.registered_nodes[minetest.env:get_node(pt).name].buildable_to or not minetest.registered_nodes[minetest.env:get_node(pt2).name].buildable_to or not placer or not placer:is_player() then return itemstack end