Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- i = 1
- turtle.up()
- function inventory()
- if turtle.getItemCount(i) == 0 then
- i = i+1
- turtle.select(i)
- end
- function layBrick()
- while turtle.detect() == false do
- inventory()
- turtle.placeDown()
- turtle.forward()
- x = x+1
- if turtle.detect() == true then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- while x > 0 do
- inventory()
- turtle.placeDown()
- turtle.forward()
- x = x-1
- if x == 0 then
- inventory()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
- end
- end
- for y=0,2 do
- layBrick()
- end
Advertisement
Add Comment
Please, Sign In to add comment