Advertisement
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)
- data = turtle.inspect()
- if not data.name ~= "Stone" or not data.name ~= "Glass" then
- turtle.dig()
- turtle.place()
- end
- else
- data = turtle.inspect()
- if data.name ~= "Stone" or data.name ~= "Glass" then
- turtle.dig()
- turtle.place()
- end
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement