Minetest engine no longer handles tree growth internally
imported the necessary code from minetest_game to facilitate it