Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Harvest()
- while turtle.detect()==false do
- while turtle.detectDown()==true do
- turtle.digDown()
- turtle.down()
- turtle.digDown()
- turtle.up()
- end
- turtle.forward()
- end
- end
- function Lefty()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- function Righty()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- function Empty()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(10)
- turtle.drop()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.select(13)
- turtle.drop()
- turtle.select(14)
- turtle.drop()
- turtle.select(15)
- turtle.drop()
- turtle.select(16)
- turtle.drop()
- turtle.select(1)
- end
- while true do
- term.clear()
- term.setCursorPos(0,0)
- print("Space Check")
- if turtle.getItemCount(16)>1 then
- print("No Space Going back to Sleep")
- Empty()
- os.sleep(240)
- else
- print("Space in Chest")
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.forward()
- turtle.forward()
- print("Measuring Cactus")
- if turtle.detectDown()==true then
- os.sleep(3)
- print("Cactus Mature Harvesting")
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- turtle.down()
- turtle.forward()
- turtle.turnRight()
- while turtle.detect()==false do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- Empty()
- else
- print("Cactus Still Immature")
- turtle.back()
- turtle.back()
- turtle.down()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- os.sleep(90)
- end
- end
- end
- function Harvest()
- while turtle.detect()==false do
- while turtle.detectDown()==true do
- turtle.digDown()
- turtle.down()
- turtle.digDown()
- turtle.up()
- end
- turtle.forward()
- end
- end
- function Lefty()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- function Righty()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- function Empty()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(10)
- turtle.drop()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.select(13)
- turtle.drop()
- turtle.select(14)
- turtle.drop()
- turtle.select(15)
- turtle.drop()
- turtle.select(16)
- turtle.drop()
- turtle.select(1)
- end
- while true do
- term.clear()
- term.setCursorPos(0,0)
- print("Space Check")
- if turtle.getItemCount(16)>1 then
- print("No Space Going back to Sleep")
- Empty()
- os.sleep(240)
- else
- print("Space in Chest")
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.forward()
- turtle.forward()
- print("Measuring Cactus")
- if turtle.detectDown()==true then
- os.sleep(30)
- print("Cactus Mature Harvesting")
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- Righty()
- Harvest()
- Lefty()
- Harvest()
- turtle.down()
- turtle.forward()
- turtle.turnRight()
- while turtle.detect()==false do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- Empty()
- else
- print("Cactus Still Immature")
- turtle.back()
- turtle.back()
- turtle.down()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- os.sleep(90)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment