Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Practice build:
- function Place1()
- turtle.select(1)
- turtle.place(1)
- turtle.turnRight(1)
- turtle.forward(1)
- turtle.turnLeft(1)
- end
- function Place2()
- turtle.turnLeft(1)
- turtle.forward(1)
- turtle.turnRight(1)
- turtle.select(1)
- turtle.place()
- end
- term.write("How many across?"..": ")
- local howMany = read()
- print("You entered: "..howMany)
- term.write("How high?"..": ")
- local howMany2 = read()
- print("You entered: "..howMany2)
- for i = 1, howMany do
- Place1()
- if i == howMany then
- turtle.up(1)
- end
- end
- for h = 1,howMany2 do
- Place2()
- end
Advertisement
Add Comment
Please, Sign In to add comment