use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead