Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w = 22 --width
- local r = 26 --row
- local i = 1
- x = 0
- print(x)
- repeat
- x = x + 1
- repeat
- local success, data = turtle.inspectDown()
- if success then
- if (data["state"]["age"] == 7) then --has been changed from data.metadata/ if this doesnt work try data.stage.age
- turtle.digDown()
- turtle.placeDown()
- end
- end
- turtle.forward()
- i = i + 1
- until i == w
- turtle.digDown()
- if (x % 2 == 0) then
- turtle.turnLeft()
- if success then
- if (data["state"]["age"] == 7) then
- turtle.digDown()
- end
- end
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- i = 1
- else
- turtle.turnRight()
- if success then
- if (data["state"]["age"] == 7) then
- turtle.digDown()
- turtle.placeDown()
- end
- end
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- i = 1
- end
- print(x)
- until x == r
- turtle.dropDown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement