fbMarcel

| farm | pumpkins

Jan 27th, 2021
577
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("######################")
  4. print("##  Farming Turtle  ##")
  5. print("######################")
  6. print("")
  7. print(" farming pumpkins...")
  8. function vor(x)
  9.   for i=1,x do
  10.     turtle.forward()
  11.   end
  12. end
  13. function fd(x)
  14.   for i=1,x do
  15.     turtle.forward()
  16.     turtle.digDown()
  17.   end
  18. end
  19. turtle.turnLeft()
  20. vor(29)
  21. turtle.turnLeft()
  22. vor(11)
  23. turtle.turnRight()
  24. turtle.up()
  25. fd(20)
  26. turtle.turnLeft()
  27. vor(4)
  28. turtle.turnLeft()
  29. turtle.digDown()
  30. fd(19)
  31. turtle.forward()
  32. turtle.down()
  33. turtle.turnLeft()
  34. vor(15)
  35. turtle.turnRight()
  36. vor(29)
  37. for i=1,16 do
  38.   turtle.select(i)
  39.   turtle.drop()
  40. end
  41. turtle.select(1)
  42. turtle.turnLeft()
  43. print("")
  44. print(" DONE!")
  45. sleep(1)
  46. os.shutdown()
RAW Paste Data