Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xr=read()
- x=xr
- x=x-1
- xc=0
- ct=0
- turtle.select(16)
- count = turtle.getItemCount(16)
- if count > 0 then
- while xc<x do
- turtle.dig()
- ok = turtle.forward()
- if ok then
- turtle.digDown()
- if ct >= 8 then
- tok = turtle.placeDown()
- if tok then
- ct = 0
- end
- else
- ct=ct+1
- end
- xc=xc+1
- end
- end
- turtle.turnLeft() turtle.turnLeft()
- while xc>0 do
- ok = turtle.forward()
- if ok then xc=xc-1 end
- end
- end
Add Comment
Please, Sign In to add comment