Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- term.clear()
- term.write ("Please Specify Height: ")
- userInput = read()
- term.clear()
- term.write ("Please Specify Width: ")
- userInputTwo = read()
- userInput = userInput - 1
- userInputTwo = userInputTwo - 1
- function pillar()
- if turtle.getItemCount(1) ~= 0 then
- for i = 1, userInput do
- turtle.place()
- turtle.up()
- turtle.place()
- end
- for h = 1, userInput do
- turtle.down()
- end
- else
- term.write ("Unable to build a pillar.(NotEnoRes)")
- end
- end
- function sideways()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function wall()
- for j = 1, userInputTwo do
- pillar()
- sideways()
- end
- end
- function rturn()
- turtle.turnLeft()
- for l = 1, userInputTwo do
- turtle.forward()
- end
- turtle.turnRight()
- end
- wall()
- pillar()
- rturn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement