Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- function replace()
- turtle.digDown()
- item = turtle.getItemDetail()
- if item ~= nil then
- if item.name ~= "minecraft:stone" or item.damage ~= 5 then
- turtle.select(turtle.getSelectedSlot()+1)
- end
- else
- turtle.select(turtle.getSelectedSlot()+1)
- end
- turtle.placeDown()
- end
- for x = 1, 12 do
- for y = 1, 12 do
- a, b = turtle.inspectDown()
- if a then
- if b.state.variant ~= "andesite" then
- replace()
- end
- else
- replace()
- end
- turtle.forward()
- end
- if x % 2 == 1 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement