Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lua
- =
- print("How many times?")
- a=tonumber(read())
- x=1
- while x<=a do
- turtle.digDown()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- x=x+1
- end
- if x>=a then
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward(a)
- end
Advertisement
Add Comment
Please, Sign In to add comment