Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plant()
- for i = 1, 8 do
- turtle.placeDown()
- turtle.forward()
- end
- turtle.placeDown()
- end
- function harvest()
- for i = 1, 8 do
- turtle.digDown()
- turtle.forward()
- end
- turtle.digDown()
- end
- function comeback()
- turtle.turnLeft()
- for i = 1, 8 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1, 9 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function seed()
- turtle.select(1)
- turtle.suckDown(64)
- turtle.suckDown(16)
- turtle.forward()
- for i = 1, 4 do
- plant()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- plant()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.select(2)
- turtle.transferTo(1,16)
- turtle.select(1)
- end
- plant()
- comeback()
- end
- function click()
- for i = 1, 4 do
- turtle.placeDown()
- end
- end
- function bonemeal()
- for i = 1, 8 do
- click()
- turtle.forward()
- end
- click()
- end
- run = 0
- k = 0
- t = 0
- while t == 0 do
- if turtle.detectUp() == true and turtle.detectDown() == true and turtle.getItemCount(1) == 0 and turtle.getItemCount(2) == 0 then
- t = 1
- else if turtle.getItemCount(1) == 4 and turtle.getItemCount(2) == 4 and turtle.detectUp() == false and tuetle.detectDown() == false then
- turtle.select(1)
- turtle.placeUp()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- turtle.select(2)
- turtle.place("FUEL")
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.place("BONEMEAL")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- turtle.place("SEEDS")
- turtle.up()
- turtle.up()
- turtle.place("PRODUCTS")
- turtle.down()
- turtle.forward()
- turtle.forward()
- t = 1
- else print("Chests and signs already placed")
- else
- term.getBackgroundColor(colors.blue)
- print("Missing items!")
- print("Plase put 4 chests and 4 sign to slot 1 and slot 2")
- print("Then press Enter")
- t = read()
- if t == "" then t = 0 end
- end
- end
- end
- turtle.select(1)
- term.clear()
- while true do
- term.write("Round: ")
- run = read()
- if turtle.getFuelLevel() <= run * 392 then
- k = run * 392
- k = k / 80
- k = k + 1
- turtle.turnRight()
- turtle.suck(k)
- turtle.refuel(k)
- turtle.turnLeft()
- end
- turtle.forward()
- for i = 1, 4 do
- for i = 1,8 do
- turtle.digDown()
- turtle.forward()
- end
- turtle.digDown()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i = 1, 8 do
- turtle.digDown()
- turtle.forward()
- end
- turtle.digDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- for i = 1, 8 do
- turtle.digDown()
- turtle.forward()
- end
- turtle.digDown()
- comeback()
- for i = 1, run do
- seed()
- os.sleep(1)
- turtle.turnLeft()
- turtle.select(1)
- for i = 1, 4 do
- turtle.suck(64)
- end
- turtle.turnRight()
- turtle.forward()
- for i = 1, 4 do
- bonemeal()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- bonemeal()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i = 1, 4 do
- turtle.select(i)
- turtle.transferTo(1,64)
- end
- turtle.select(1)
- end
- bonemeal()
- comeback()
- turtle.turnLeft()
- for i = 1, 4 do
- turtle.select(i)
- turtle.drop(64)
- end
- turtle.select(1)
- turtle.turnRight()
- turtle.forward()
- for i = 1, 4 do
- harvest()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- harvest()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- harvest()
- comeback()
- turtle.select(1)
- turtle.dropUp(64)
- turtle.select(5)
- turtle.dropUp(64)
- turtle.select(2)
- turtle.dropDown(64)
- turtle.select(3)
- turtle.dropDown(64)
- turtle.select(4)
- turtle.dropDown(64)
- turtle.select(6)
- turtle.dropDown()
- turtle.select(7)
- turtle.dropDown()
- end
- turtle.select(1)
- term.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement