Forestry Tree modhelper

Feel free to move the code into the Forestry modhelper. Tested in 2.2.6.X and 2.2.8.X Forestry.