TehNoiseBomb_

ComputerCraft 1.75 - 9x9 Farming - moveLine

Apr 13th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. --@Author: Zach Combs aka TehNoiseBomb
  2. --@Version: 1.1
  3.  
  4. local inputs = {...}
  5.  
  6. local farm = assert(loadfile("farm")) --Load the farm code as a variable that can be called as a function
  7. local seed --A table of details about the seed in the turtle's inventory, the amount of seeds is returned to the main farm9x9 file
  8.  
  9. --Starting above the first crop block, repeat the following eight times:
  10. -- Move forward one block
  11. -- Call the farm code
  12. seed = farm(...)
  13. for i = 0, 7 do
  14.  print("Moving forward...")
  15.  turtle.forward()
  16.  seed = farm(...)
  17. end
  18.  
  19. --Return the amount of seeds in the turtle
  20. return seed.count
Add Comment
Please, Sign In to add comment