Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plant()
- turtle.dig()
- turtle.forward()
- turtle.select(1)
- turtle.place()
- turtle.suck()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.suck()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(1)
- turtle.place()
- turtle.suck()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(1)
- turtle.place()
- turtle.suck()
- turtle.select(2)
- turtle.place()
- turtle.suck()
- end
- function fuel()
- if turtle.getFuelLevel() < 50 then
- turtle.select(16)
- turtle.refuel(5)
- end
- print( turtle.getFuelLevel() .. " fuel left.")
- end
- function boom()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- turtle.suck()
- end
- while turtle.detectDown() == false do
- turtle.down()
- turtle.suck()
- end
- end
- function boom2()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- turtle.suck()
- end
- while turtle.detectDown() == false do
- turtle.down()
- turtle.suck()
- end
- end
- function boom3()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- turtle.suck()
- end
- while turtle.detectDown() == false do
- turtle.down()
- turtle.suck()
- end
- end
- function boom4()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- turtle.suck()
- end
- while turtle.detectDown() == false do
- turtle.down()
- turtle.suck()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.drop(3)
- turtle.drop(4)
- turtle.drop(5)
- turtle.turnRight()
- turtle.turnRight()
- end
- fuel()
- plant()
- fuel()
- boom()
- fuel()
- boom2()
- fuel()
- boom3()
- fuel()
- boom4()
- fuel()
Advertisement
Add Comment
Please, Sign In to add comment