Structures with above and below ground portions

I have an idea for a traps structure datapack, I am trying to figure out how to make a tree have a mine underneath.
Continue to help post