Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- start = tArgs[1]
- size = 2
- turtle.select(1)
- for i=1,2 do
- turtle.digDown()
- turtle.down()
- end
- for y=start/3,93/3 do
- for i=1,size do
- for j=1,size do
- while j ~= size and turtle.detect() do
- turtle.dig()
- end
- turtle.digUp()
- turtle.digDown()
- if turtle.getItemCount(16) > 0 then
- turtle.place()
- for slot=3,16 do
- turtle.select(slot)
- turtle.drop()
- end
- turtle.select(1)
- turtle.dig()
- end
- if j ~= size then
- while not turtle.forward() do
- turtle.attack()
- end
- end
- end
- turtle.select(2)
- fixWall()
- if i ~= size then
- if (i % 2 == 1) then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- if (i % 2 == 1) then
- turtle.turnLeft()
- fixWall()
- turtle.turnRight()
- turtle.turnRight()
- else
- turtle.turnRight()
- fixWall()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
- turtle.select(1)
- end
- turtle.turnRight()
- for i=1,size-1 do
- while not turtle.forward() do
- turtle.attack()
- end
- end
- turtle.turnLeft()
- fixWall()
- turtle.turnRight()
- for i=1,3 do
- turtle.digDown()
- turtle.down()
- end
- turtle.turnRight()
- end
- for i=1,93 do
- turtle.up()
- end
- function fixWall()
- turtle.dig()
- turtle.forward()
- turtle.placeUp()
- turtle.placeDown()
- turtle.back()
- turtle.place()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement