TheKojent

exampleTree

Feb 5th, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. --Sample tree program using my tree2 API
  2.  
  3. os.loadAPI("tree2")
  4.  
  5. local tArgs = {...}
  6. count = tonumber(tArgs[1]) --0<count<65
  7. for i = 1,count do
  8.   replant()
  9.   dig()
  10.   turtle.turnLeft()
  11.   turtle.turnLeft()
  12.   turtle.forward()
  13.   clearInv()
  14.   restock()
  15.   turtle.turnLeft()
  16.   turtle.turnLeft()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment