Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- local halfslabs = string.lower(tArgs[1] or "") == "true"
- local left = true
- local selected = 1
- turtle.select(selected)
- local function placeDown()
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.placeDown()
- end
- local function place()
- while turtle.getItemCount(selected) == 0 do
- selected = selected + 1
- turtle.select(selected)
- end
- placeDown()
- while turtle.getItemCount(selected) == 0 do
- selected = selected + 1
- turtle.select(selected)
- end
- if halfslabs then placeDown() end
- end
- while true do
- while not turtle.detect() do
- place()
- turtle.forward()
- end
- place()
- if left then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- left = not left
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement