Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toStart() -- Making a function to return to the start of a line
- ts = 0
- repeat
- ts = ts + 1 -- Counts up a number
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- until ts == lenght -- Ending at the start of the line
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Making a wall!")
- print("How high?")
- high = tonumber(read()) -- Deletes the strings, so it becomes a number
- print("Lenght?")
- lenght = tonumber(read()) -- Same as before
- function wallLine() -- Same as before
- wl = 0
- repeat
- wl = wl + 1
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- until wl == lenght
- end
- function wall()
- wa = 0
- repeat
- wa = wa + 1
- wallLine()
- turtle.up()
- toStart()
- until wh == high
- end
- wall()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement