Advertisement
rdalkire

cc farm HOWTO.md

Jul 4th, 2014
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. # farm.lua 1.2.x
  2. for computercraft 1.63 and above
  3.  
  4. ## Basic Usage
  5.  
  6. I assume that you're lazy like me, and
  7. have dowloaded this as a file called
  8. "frm".
  9.  
  10. Place the robot at the field's lower
  11. left corner, and put a chest behind it.
  12.  
  13. Put wheat seeds, carrots and/or
  14. potatoes in the turtle's first few
  15. inventory slots, some fuel in its 9th
  16. slot, launch with:
  17.  
  18. frm length [rows]
  19.  
  20. For example for a 10 x 10 field, type:
  21.  
  22. frm 10
  23.  
  24. If you want to use a rectangular field
  25. without blocking, also specify rows:
  26.  
  27. frm 10 12
  28.  
  29. Or you can use 0 as the sole parameter
  30. if you block the robot at the corners.
  31. Note: Make the blocks two-high, since
  32. the robot now works from there.
  33.  
  34. frm 0
  35.  
  36. If it isn't blocked, the program will
  37. estimate the width of the largest
  38. square field that it can harvest and
  39. re-plant, given the amount of fuel.
  40. This may not be appropriate for worlds
  41. where fuel is not needed/unlimited.
  42.  
  43. If you only use one crop and only the
  44. first slot, the robot will leave a gap
  45. of farmland between rows, since the
  46. crops grow more quickly that way.
  47.  
  48. ## Somewhat More Advanced Usage
  49.  
  50. If you don't want the gaps, just put
  51. the same kind of seeds in the the first
  52. two slots. Otherwise when you
  53. alternate seed types in the inventory
  54. slots, the robot will alternate crops
  55. accordingly. After those first few,
  56. leave a gap in the inventory to tell
  57. the turtle where the references stop.
  58.  
  59. If you need more clarity, below is a
  60. table-grid of the robot's inventory.
  61. First, the symbols:
  62.  
  63. - S1, S2, S3: Alternating wheat seeds,
  64. carrots or potatoes. Slot one must
  65. have at least one item; the other
  66. slots are optional. They're
  67. "reference" seeds.
  68. - F: Fuel
  69. - b: blank. The point is, there must be
  70. a blank right after the reference
  71. seeds.
  72. - w: Anything or nothing. whatever.
  73.  
  74. The inventory should look like this.
  75.  
  76. | S1 | S2*| S3*| b |
  77. |----|----|----|---|
  78. | w | w | w | w |
  79. | F | w | w | w |
  80. | w | w | w | w |
  81.  
  82. After working the field, if there's
  83. fuel remaining, it will wait 40 minutes
  84. from when it began then repeat the
  85. cycle.
  86.  
  87. See http://computercraft.info for more
  88. about robot turtles.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement