You need to have a stone axe at least to start. Without it you can't create a tool? unless your starting inventory consists of stone and sticks.
You may be able to ray trace hits onto a tree, then use some logic to determine if the tree yields bark, leaves, etc. Then use custom object insertion to add the items to the players inventory.