Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- front = read(16)
- shell.run("clear")
- right = read(8)
- shell.run("clear")
- print("ok, will do master!")
- front = front - 1
- right = right - 1
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- function line()
- for i=1,front do
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- end
- end
- LR = 0
- function square()
- for i=1,right do
- LR = LR + 1
- if LR == 1 then
- line()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.digDown()
- turtle.placeDown()
- elseif LR == 2 then
- line()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.digDown()
- turtle.placeDown()
- LR = 0
- end
- end
- end
- square()
- line()
- turtle.turnRight()
- if LR == 0 then
- turtle.turnRight()
- for i=1,front do
- turtle.forward()
- end
- turtle.turnRight()
- end
- for i=1,right do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- m = 1
- for i=1,15 do
- m = m + 1
- turtle.select(m)
- turtle.dropDown()
- end
- turtle.select(1)
- shell.run("clear")
- print("I'm done master!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement