Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seconds = 1
- minutes = 60
- hours = 120
- toolSlot = 1
- fuelSlot = 16
- function fuelUp()
- turtle.select(fuelSlot)
- turtle.refuel(1)
- turtle.select(toolSlot)
- end
- function wait(time, interval)
- delay = time * interval
- sleep(delay)
- end
- grid = {x = 2, y = 1}
- turtle.select(toolSlot)
- while true do
- if turtle.getFuelLevel() < 1 then
- fuelUp()
- end
- for i=0, grid.y do
- for i=0, grid.x do
- turtle.forward()
- _, data = turtle.inspectDown()
- if data.metadata == 3 then
- turtle.placeDown()
- end
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- wait(30, seconds)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement