Minecraft wiki entry for Flying_machine_uses, associated text: Automated Lumberjack. Stick slime underneath the flying machine, then send it into a tree. It should then have wood logs stuck to the slime, meaning you can gather wood from the flying machine directly.