Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plant() do
- turtle.up()
- turtle.forward()
- turtle.select(16)
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
- function chop() do
- local height = 0
- turtle.dig()
- turtle.forward()
- turtle.dig()
- while turtle.digUp() do
- turtle.up()
- turtle.dig()
- height = height + 1
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- while height > 0 do
- turtle.digDown()
- turtle.down()
- turtle.dig()
- height = height - 1
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.suck(100)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- turtle.refuel(63)
- end
- end
- function dump() do
- turtle.select(2)
- turtle.dropDown()
- turtle.select(3)
- turtle.dropDown()
- turtle.select(4)
- turtle.dropDown()
- turtle.select(5)
- turtle.dropDown()
- turtle.select(6)
- turtle.dropDown()
- turtle.select(7)
- turtle.dropDown()
- turtle.select(8)
- turtle.dropDown()
- turtle.select(9)
- turtle.dropDown()
- turtle.select(10)
- turtle.dropDown()
- turtle.select(11)
- turtle.dropDown()
- turtle.select(12)
- turtle.dropDown()
- turtle.select(13)
- turtle.dropDown()
- turtle.select(14)
- turtle.dropDown()
- turtle.select(15)
- turtle.dropDown()
- end
- end
- plant()
- turtle.down()
- turtle.select(1)
- while true do
- if turtle.compare() then
- chop()
- dump()
- shell.reboot()
- else
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment