Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c=peripheral.wrap("right")
- while true do
- if turtle.detect()== true then
- if c.getFacing()== 3 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- if c.getFacing()==1 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
- end
- if turtle.getItemCount(1)>=1 then
- turtle.select(1)
- turtle.placeDown()
- turtle.forward()
- end
- if turtle.getItemCount(1)<=0 then
- turtle.select(2)
- turtle.placeUp()
- turtle.select(1)
- turtle.suckUp()
- turtle.select(2)
- turtle.digUp()
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement