Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- local height = tonumber(tArgs[1])
- local length = tonumber(tArgs[2])
- local up = true
- local slot = 1
- turtle.select(slot)
- for j = 1, length, 1 do
- for i = 1,height,1 do
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- turtle.select(slot)
- turtle.place()
- else
- turtle.place()
- end
- if i < height then
- if up == true then
- turtle.up()
- else
- turtle.down()
- end
- else
- if j < length then
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- if up == false then
- up = true
- else
- up = false
- end
- else
- if up == true then
- for i = 1, height - 1, 1 do
- turtle.down()
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment