Resin is produced in the furnace, starting from level 17. You need logs and fir cones for it.
It also can be found after cutting down baobab trees.