Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local z = 1
- turtle.select(z)
- print("Length?")
- local l = tonumber(read())
- print("Width?")
- local w = tonumber(read())
- function itemcheck()
- s = turtle.getItemCount(z)
- if s < 1 then
- print("Slot Empty, Switching...")
- z = z + 1
- turtle.select(z)
- end
- end
- function placefront()
- for p = 0, l do
- turtle.placeDown()
- turtle.forward()
- itemcheck()
- turtle.placeDown()
- end
- end
- for i = 0, w / 2 do
- placefront()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- placefront()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement