Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Creating plot")
- local dir = 1
- local curl = 1
- local curt = 15
- local dirt = 0
- turtle.select(curl)
- turtle.digDown()
- turtle.down()
- for i = 1, 4 do
- if i > 1 then
- turtle.turnLeft()
- end
- for i = 1, 21 do
- if turtle.getItemCount(curl) == 0 then
- curl = curl + 1
- end
- if turtle.detect() then
- turtle.dig()
- end
- if not turtle.detectDown() then
- turtle.placeDown()
- end
- turtle.forward()
- end
- end
- turtle.turnLeft()
- turtle.up()
- turtle.select(curt)
- for i = 1, 4 do
- if i > 1 then
- turtle.turnLeft()
- end
- for t = 1, 21 do
- if turtle.getItemCount(curt) == 0 then
- turtle.select(curt + 1)
- end
- if not turtle.detectDown() or not turtle.compareDown() then
- turtle.digDown()
- turtle.placeDown()
- end
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.down()
- turtle.select(curl)
- for i = 1, 19 do
- for t = 1, 19 do
- if turtle.compareDown(1) == false then
- turtle.digDown()
- end
- if turtle.detectDown() == false then
- if turtle.getItemCount(curl) == 0 then
- curl = curl + 1
- turtle.select(curl)
- end
- turtle.placeDown()
- end
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- end
- if dir == 1 then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- dir = 2
- elseif dir == 2 then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- dir = 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement