Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local steps = 0
- local left = 0
- local back = 0
- local right = 0
- local z = true
- local long = 0
- local torchslot = 2
- local fuelslot = 1
- print"Fuel in slot 1"
- print"64 Torches in slot 2"
- print"Important! 64 torches!"
- print"It will go for 190 meters!"
- print"Because than the torches"
- print"will run out"
- print"Press enter to start!"
- read(input)
- while z == true do
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- steps = steps + 1
- until steps == 3
- steps = 0
- turtle.turnLeft()
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- left = left + 1
- until left == 6
- left = 0
- turtle.turnRight()
- turtle.turnRight()
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- back = back + 1
- until back == 6
- back = 0
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- right = right + 1
- until right == 6
- right = 0
- turtle.turnLeft()
- turtle.turnLeft()
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- back = back + 1
- until back == 6
- back = 0
- turtle.turnRight()
- long = long + 1
- if turtle.getFuelLevel() < 80 then
- turtle.select(fuelslot)
- turtle.refeul()
- end
- turtle.select(torchslot)
- turtle.placeDown()
- end
- if(long == 64) then
- z = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement