One way to do this is to firstly teach the workerbot how to make an axe, then create a Repeat loop to chop trees until hands are empty - and then wrap that in a Forever loop; this means the bot makes a new axe when its hands are empty (ie: axe is broken).