Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local distance = 0
- local rings = 80
- local function placeitup()
- turtle.dig()
- turtle.place()
- turtle.digUp()
- turtle.up()
- end
- local function roofit()
- turtle.dig()
- turtle.place()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- local function placeitdown()
- turtle.dig()
- turtle.place()
- turtle.digDown()
- turtle.down()
- end
- local function floorit()
- turtle.dig()
- turtle.place()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- local function next_ring()
- for i = 1,2 do turtle.turnRight() end
- turtle.dig()
- for i = 1,2 do turtle.turnRight() end
- turtle.back()
- end
- local function manage_inventory()
- slot = turtle.getSelectedSlot()
- inv_ = turtle.getItemCount(slot)
- if inv_ > 1 then
- turtle.select(slot)
- else
- slot = slot + 1
- turtle.select(slot)
- end
- end
- local counter = 0
- slot = 1
- while distance < rings do
- manage_inventory()
- for i = 1,5 do placeitup(); counter = counter + 1 end
- for i = 1,3 do roofit(); counter = counter + 1 end
- for i = 1,5 do placeitdown(); counter = counter + 1 end
- for i = 1,3 do floorit() ; counter = counter + 1 end
- next_ring()
- distance = distance + 1
- -- manage inventory some how
- end
Add Comment
Please, Sign In to add comment