View difference between Paste ID: G0rrui8L and j2L5VMAd
SHOW: | | - or go back to the newest paste.
1
local sucess, data = turtle.inspectDown()
2
local pos = vector.new(gps.locate())
3
local modem = peripheral.find("modem")
4
rednet.open("left")
5
while true do
6
    rednet.send(6, os.getComputerLabel() .. " | " .. turtle.getFuelLevel() .. " | (" .. pos.x .. ", " .. pos.y ..", " .. pos.z .. ") | " .. "Running", "miners")
7
    sucess, data = turtle.inspectDown()
8
    if(data.metadata == 7) then
9
        turtle.digDown()
10
        turtle.select(1)
11
        turtle.placeDown()
12
    end
13
    
14
    if(turtle.getItemCount(16) > 63) then
15
        rednet.send(6, os.getComputerLabel() .. " | " .. turtle.getFuelLevel() .. " | (" .. pos.x .. ", " .. pos.y ..", " .. pos.z .. ") | " .. "Inventory Full", "miners")
16
        break
17
    end
18
end