TehNoiseBomb_

ComputerCraft 1.75 - 9x9 Farming - startup

Apr 13th, 2016
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | None | 0 0
  1. --@Author: Zach Combs aka TehNoiseBomb
  2. --@Version: 1.1
  3.  
  4. crop = "magicalcrops:MinicioCrop" --Change to the unlocalized name of the crop you want to farm with the turtle
  5. seed = "magicalcrops:MinicioSeeds" --Change to the unlocalized name of the seed for the crop you want to farm with the turtle
  6. fullyGrown = 7 --This is the metadata of the crop block when it is fully grown
  7. sleepTime = 300 --time to wait between cycles in seconds (default: 300 -> 5 minutes)
  8.  
  9. --Starts the main file for the farming turtle
  10. --Variables: blank table, string file name of the main farming file, crop, seed, fullyGrown, sleepTime
  11. os.run({}, "farm9x9", crop, seed, fullyGrown, sleepTime)
  12.  
  13. --------------------------------------------------------------
  14. --ReadMe.txt
  15.  
  16. --This startup file along with the other eight files on my pastebin page
  17. --(http://pastebin.com/u/TehNoiseBomb_) titled "ComputerCraft 1.75 - 9x9 Farming - (insert file name here)"
  18. --need to be installed onto the turtle for this program to fully work.
  19. --Each file should be named with the last word in the title of the file, as seed above by the "(insert file name here)."
  20. --On bootup, the turtle may error out, this will be because you need to put the seeds in the turtles inventory.
  21. --Also to start the turtle off with fuel the first time, I would suggest using the following code:
  22. --lua > turtle.select(slot of your fuel) > turtle.refuel() > exit() > reboot().
  23. --After you know the turtle has fuel and seeds, type "reboot" to get your turtle working.
  24.  
  25. -- 'C' is a crop
  26. -- 'W' is the water block
  27. -- 'S' is the starting position of the turtle, ABOVE the crop
  28. -- 'D' is the dump chest
  29. -- 'F' is the fuel chest
  30.  
  31. --                       --
  32. --   C C C C C C C C C   --
  33. --   C C C C C C C C C   --
  34. --   C C C C C C C C C   --
  35. --   C C C C C C C C C   --
  36. --   C C C C W C C C C   --
  37. --   C C C C C C C C C   --
  38. --   C C C C C C C C C   --
  39. --   C C C C C C C C C   --
  40. --D  C C C C C C C C C   --
  41. --F                      --
  42. --------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment