Advertisement
jschuldes

tmkflr

Feb 11th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. -- turtle makes flowers in petal apothacary
  2.  
  3. -- pastebin get FfjWVrYq tmkflr
  4.  
  5. -- seeds in 2
  6. -- petals in 3 - 16
  7. -- water buckets in 1
  8. -- water bucket chest right side of turtle
  9.  
  10. local tArgs = { ... }
  11.  
  12. -- local function printUsage()
  13. if #tArgs < 1 then
  14.   print("Usage: tmkflr <x> ")
  15.   print("Petals in slots 2-15; Seeds in slot 16.")
  16.   print("Water Buckets in chest on right")
  17.   return
  18. end
  19.  
  20. local x = tArgs[1]
  21.  
  22. for i = 1, x do
  23.   -- get water bucket
  24.   turtle.turnRight()
  25.   turtle.select(1)  
  26.   turtle.suck()
  27.   turtle.turnLeft()
  28.   os.sleep(.25)
  29.  
  30.   -- fill apothecary
  31.   turtle.select(1)
  32.   turtle.drop()
  33.   os.sleep(.25)
  34.  
  35.   -- drop petals and seed
  36.   for s = 2, 16 do
  37.     turtle.select(s)
  38.     turtle.drop(1)  
  39.     os.sleep(.25)
  40.   end
  41.  
  42.   -- hopperhock gets empty buckets and flowers
  43.   os.sleep(.25)
  44.  
  45. end
  46.  
  47. -- eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement