Advertisement
Ignius12

harvest

Jul 17th, 2021
1,083
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement