Advertisement
Guest User

Drone

a guest
Aug 6th, 2015
2,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.61 KB | None | 0 0
  1. rednet.open("back")
  2. os.loadAPI("button")
  3. local droneControlID = 15
  4. local m = term
  5. local areaShown = false
  6.  
  7. local setx = 0
  8. local sety = 0
  9. local setz = 0
  10. local setx2 = 0
  11. local sety2 = 0
  12. local setz2 = 0
  13. local currx = 0
  14. local curry = 0
  15. local currz = 0
  16.  
  17. local importChest = {}
  18. importChest["x"] = 0
  19. importChest["y"] = 0
  20. importChest["z"] = 0
  21.  
  22. local exportChest = {}
  23. exportChest["x"] = 0
  24. exportChest["y"] = 0
  25. exportChest["z"] = 0
  26.  
  27. local home = {}
  28. home["x"] = 0
  29. home["y"] = 0
  30. home["z"] = 0
  31.  
  32. --local homex = 0
  33. --local homey = 0
  34. --local homez = 0
  35. --local chestx = 0
  36. --local chesty = 0
  37. --local chestz = 0
  38.  
  39. local menuType = "mainMenu"
  40. local areaType = "Filled"
  41. local moveMode = "Normal"
  42.  
  43. local teleportMode = false
  44. local autoApply = true
  45.  
  46.  
  47. function sendMessage(message)
  48.     rednet.send(droneControlID, message)
  49. end
  50.  
  51. function mainMenu()
  52.     m.clear()
  53.     button.clearTable()
  54.     button.setTable("Come Here", comeHere, "", 3, 13, 1, 1)
  55.     button.setTable("Go Home", goHome, "", 15, 25, 1, 1)
  56.     button.setTable("Set Area", setXYZMenu, "", 3, 13, 3, 3)
  57.     button.setTable("GoTo", goTo, "", 15, 25, 3, 3)
  58.     button.setTable("Dig", dig, "", 3, 13, 5, 5)
  59.     button.setTable("Build", place, "", 15, 25, 5, 5)
  60.     button.setTable("ItemPickup", pickup, "", 3, 13, 7, 7)
  61.     button.setTable("Attack", attack, "", 15,25,7,7)
  62.     button.setTable("Ent Pickup", entityPickup, "", 3, 13, 9, 9)
  63.     button.setTable("Ent Drop", entityDrop, "", 15, 25, 9, 9)
  64.     button.setTable("GetItems", getItems, "", 3, 13, 11,11)
  65.     button.setTable("Get Pick", getPickaxe, "", 15, 25, 11, 11)
  66.     button.setTable("ItemsChest", dropItems, "", 3, 13, 13, 13)
  67.     button.setTable("Stop", stopAction, "", 3, 13, 16, 16)
  68.     button.setTable("Teleport", toggleTeleport, "", 15, 25, 16, 16)
  69.     button.setTable("Favorites", setFavoritesMenu, "", 3, 13, 18, 18)
  70. --  button.setTable("Set Home", setHome, "", 15, 25, 18, 18)   
  71.     button.setTable("Show Area", showAreaToggle, "", 15, 25, 20, 20)
  72.     button.setTable("Status", setStatusMenu, "", 3, 13, 20, 20)
  73.    
  74.     if teleportMode then
  75.         button.toggleButton("Teleport")
  76.     end
  77.     button.setButton("Show Area", areaShown)
  78.     button.screen()
  79. end
  80.  
  81. function statusMenu()
  82.     local x,y,z = getPosition()
  83.     m.clear()
  84.     button.clearTable()
  85.     button.setTable("Back", setMainMenu, "", 1, 6, 1, 1)
  86.     button.setTable("Refresh", displayScreen, "", 2, 25, 20,20)
  87.     button.label(1,3,"Pressure: "..getPressure())
  88.     button.label(1,4,"Position: "..math.floor(x)..","..math.floor(y)..","..math.floor(z))
  89.     button.label(1,5,"Action:   "..tostring(not isDone()))
  90.     button.label(1,6,"Last Act: "..getAction())
  91.     button.label(1,7,"Home:     "..home["x"]..", "..home["y"]..", "..home["z"])
  92.     button.label(1,8,"Imp Chest "..importChest["x"]..", "..importChest["y"]..", "..importChest["z"])
  93.     button.label(1,9,"Exp Chest "..exportChest["x"]..", "..exportChest["y"]..", "..exportChest["z"])
  94. --  button.setTable("ShowHome", showHome, "", 3,13,18,18)
  95. --  button.setTable("ShowImportChest", showImportChest, "", 15, 25, 18,18)
  96. --  button.label(1,6,"Pickaxe:  "..tostring(hasPickaxe()))
  97.     button.screen()
  98. end
  99.  
  100. function favoritesMenu()
  101.     m.clear()
  102.     button.clearTable()
  103.     button.setTable("Back", setMainMenu, "", 1, 6, 1, 1)
  104.     button.label(1,2, "Show Favorites")
  105.     button.setTable("Home.", showHome, "", 3,13,3,3)
  106.     button.label(1,4, "Chests")
  107.     button.setTable("Import.", showImportChest, "", 3, 13, 5,5)
  108.     button.setTable("Export.", showExportChest, "", 15, 25, 5,5)
  109.     button.label(1,15,"Set Favorites")
  110.     button.setTable("Home", setHome, "", 3, 13, 16, 16)
  111.     button.label(3,17,"Chests")
  112.     button.setTable("Import", setImportChest, "", 3, 13, 18, 18)
  113.     button.setTable("Export", setExportChest, "", 15, 25, 18, 18)
  114.    
  115.     button.screen()
  116. end
  117.  
  118. function xyzMenu()
  119.     m.clear()
  120.     button.clearTable()
  121.     button.label(1,1,"Position: "..currx..","..curry..","..currz)
  122.     button.setTable("Back", setMainMenu, "", 1, 6, 2, 2)
  123.     button.setTable(moveMode, toggleMoveMode, "", 10, 20, 2, 2)
  124.     button.label(1,4,"X: ")
  125.     button.setTable("x-10", changeX, -10, 4, 7, 4, 4)
  126.     button.setTable("x-1", changeX, -1, 9, 11, 4, 4)
  127.     button.label(15, 4, setx)
  128.     button.setTable("x+1", changeX, 1, 18, 20, 4, 4)
  129.     button.setTable("x+10", changeX, 10, 22, 25, 4, 4)
  130.     button.label(1,6,"Y: ")
  131.     button.setTable("y-10", changeY, -10, 4, 7, 6, 6)
  132.     button.setTable("y-1", changeY, -1, 9, 11, 6, 6)
  133.     button.label(15, 6, sety)
  134.     button.setTable("y+1", changeY, 1, 18, 20, 6, 6)
  135.     button.setTable("y+10", changeY, 10, 22, 25, 6, 6)
  136.     button.label(1,8,"Z: ")
  137.     button.setTable("z-10", changeZ, -10, 4, 7, 8, 8)
  138.     button.setTable("z-1", changeZ, -1, 9, 11, 8, 8)
  139.     button.label(15, 8, setz)
  140.     button.setTable("z+1", changeZ, 1, 18, 20, 8, 8)
  141.     button.setTable("z+10", changeZ, 10, 22, 25, 8, 8)
  142.     if moveMode == "Normal" then
  143.         button.label(1,10,"X2: ")
  144.         button.setTable("a-10", changeX2, -10, 4, 7, 10, 10)
  145.         button.setTable("a-1", changeX2, -1, 9, 11, 10, 10)
  146.         button.label(15, 10, setx2)
  147.         button.setTable("a+1", changeX2, 1, 18, 20, 10, 10)
  148.         button.setTable("a+10", changeX2, 10, 22, 25, 10, 10)
  149.         button.label(1,12,"Y2: ")
  150.         button.setTable("b-10", changeY2, -10, 4, 7, 12, 12)
  151.         button.setTable("b-1", changeY2, -1, 9, 11, 12, 12)
  152.         button.label(15, 12, sety2)
  153.         button.setTable("b+1", changeY2, 1, 18, 20, 12, 12)
  154.         button.setTable("b+10", changeY2, 10, 22, 25, 12, 12)
  155.         button.label(1,14,"Z2: ")
  156.         button.setTable("c-10", changeZ2, -10, 4, 7, 14, 14)
  157.         button.setTable("c-1", changeZ2, -1, 9, 11, 14, 14)
  158.         button.label(15, 14, setz2)
  159.         button.setTable("c+1", changeZ2, 1, 18, 20, 14, 14)
  160.         button.setTable("c+10", changeZ2, 10, 22, 25, 14, 14)
  161.     end
  162.     button.setTable("Reset", resetXYZ, "", 10, 20, 16, 16)
  163.     button.setTable(areaType, toggleAreaType, "", 3, 13, 18, 18)
  164.     button.setTable("Show Area", showAreaToggle, "", 15, 25, 18, 18)
  165.     button.setTable("Auto Apply", setAutoApply, "", 3, 13, 20, 20)
  166.     button.setTable("Apply", refreshArea, "", 15, 25, 20, 20)
  167.     button.setButton("Show Area", areaShown)
  168.     button.setButton("Auto Apply", autoApply)
  169.     button.screen()
  170. end
  171.  
  172. function getAction()
  173.     local data = {}
  174.     data[0] = "getAction"
  175.     sendMessage(textutils.serialize(data))
  176.     local id, message, distance, protocol = rednet.receive(5)
  177.     if message then
  178.         return(message)
  179.     else
  180.         return("Nothing")
  181.     end
  182. end
  183.  
  184. function showHome()
  185.     button.toggleButton("Home.")
  186.     setArea(home["x"], home["y"], home["z"], home["x"], home["y"], home["z"], "Filled")
  187.     showArea(true)
  188.     sleep(2)
  189.     button.toggleButton("Home.")
  190.     refreshArea()
  191. end
  192.  
  193. function showImportChest()
  194.     button.toggleButton("Import.")
  195.     setArea(importChest["x"], importChest["y"]-1, importChest["z"], importChest["x"], importChest["y"]+1, importChest["z"], "Filled")
  196.     showArea(true)
  197.     sleep(2)
  198.     button.toggleButton("Import.")
  199.     refreshArea()
  200. end
  201.  
  202. function showExportChest()
  203.     button.toggleButton("Export.")
  204.     setArea(exportChest["x"], exportChest["y"]-1, exportChest["z"], exportChest["x"], exportChest["y"]+1, exportChest["z"], "Filled")
  205.     showArea(true)
  206.     sleep(2)
  207.     button.toggleButton("Export.")
  208.     refreshArea()
  209. end
  210.  
  211. function setAutoApply()
  212.     autoApply = not autoApply
  213. end
  214.  
  215. function toggleMoveMode()
  216.     if moveMode == "Normal" then
  217.         moveMode = "Move"
  218.     elseif moveMode == "Move" then
  219.         moveMode = "Expand"
  220.     elseif moveMode == "Expand" then
  221.         moveMode = "Normal"
  222.     end
  223. end
  224.  
  225. function toggleTeleport()
  226.     teleportMode = not teleportMode
  227. end
  228.  
  229. function getPressure()
  230.     local data = {}
  231.     data[0] = "getPressure"
  232.     sendMessage(textutils.serialize(data))
  233.     local id, message, distance, protocol = rednet.receive(5)
  234.     return(message)
  235. end
  236.  
  237. function getPosition()
  238.     local data = {}
  239.     data[0] = "getPosition"
  240.     sendMessage(textutils.serialize(data))
  241.     local id, message, distance, protocol = rednet.receive(5)
  242.     local returnData = textutils.unserialize(message)
  243.     return returnData[1], returnData[2], returnData[3]
  244. end
  245.  
  246. function toggleAreaType()
  247.     if areaType == "Filled" then
  248.         areaType = "Frame"
  249.     elseif areaType == "Frame" then
  250.         areaType = "Walls"
  251.     elseif areaType == "Walls" then
  252.         areaType = "Filled"
  253.     else
  254.         areaType = "Filled"
  255.     end
  256.     refreshArea()
  257. end
  258.  
  259. function resetXYZ()
  260.     setx = 0
  261.     sety = 0
  262.     setz = 0
  263.     setx2 = 0
  264.     sety2 = 0
  265.     setz2 = 0
  266.     currx,curry,currz = gpsLocate()
  267.     refreshArea()
  268. end
  269.  
  270. function setXYZMenu()
  271.     if curry==0 then
  272.         currx,curry,currz = gpsLocate()
  273.     end
  274.     menuType = "xyzMenu"
  275. end
  276.  
  277. function setMainMenu()
  278.     menuType = "mainMenu"
  279. end
  280.  
  281. function setStatusMenu()
  282.     menuType = "statusMenu"
  283. end
  284.  
  285. function setFavoritesMenu()
  286.     menuType = "favoritesMenu"
  287. end
  288.  
  289. function refreshArea()
  290.     setAreaGlobal()
  291.     showArea(false)
  292.     showArea(true)
  293.     areaShown = true
  294. end
  295.  
  296. function setImportChest()
  297.     button.flash("Import")
  298.     importChest["x"] = currx+setx
  299.     importChest["y"] = curry+sety
  300.     importChest["z"] = currz+setz
  301.     writeImportChest()
  302. end
  303.  
  304. function setExportChest()
  305.     button.flash("Export")
  306.     exportChest["x"] = currx+setx
  307.     exportChest["y"] = curry+sety
  308.     exportChest["z"] = currz+setz
  309.     writeExportChest()
  310. end
  311.  
  312. function setHome()
  313.     button.flash("Home")
  314.     home["x"] = currx+setx
  315.     home["y"] = curry+sety
  316.     home["z"] = currz+setz
  317.     writeHome()
  318. end
  319.  
  320. function writeHome()
  321.     file = io.open("homeCoords", "w")
  322.     file:write(textutils.serialize(home))
  323.     file:close()
  324. end
  325.  
  326. function readHome()
  327.     file = io.open("homeCoords", "r")
  328.     if file then
  329.         home = textutils.unserialize(file:read("*a"))
  330.         file:close()
  331.     end
  332. end
  333.  
  334. function writeImportChest()
  335.     file = io.open("chestImportCoords", "w")
  336.     file:write(textutils.serialize(importChest))
  337.     file:close()
  338. end
  339.  
  340. function readImportChest()
  341.     file = io.open("chestImportCoords", "r")
  342.     if file then
  343.         importChest = textutils.unserialize(file:read("*a"))
  344.         file:close()
  345.     end
  346. end
  347.  
  348. function writeExportChest()
  349.     file = io.open("chestExportCoords", "w")
  350.     file:write(textutils.serialize(exportChest))
  351.     file:close()
  352. end
  353.  
  354. function readExportChest()
  355.     file = io.open("chestExportCoords", "r")
  356.     if file then
  357.         exportChest = textutils.unserialize(file:read("*a"))
  358.         file:close()
  359.     end
  360. end
  361.  
  362. function setAreaGlobal()
  363.     clearArea()
  364.     local data = {}
  365.     data[0] = "setArea"
  366.     data[1] = currx+setx
  367.     data[2] = curry+sety
  368.     data[3] = currz+setz
  369.     data[4] = currx+setx2
  370.     data[5] = curry+sety2
  371.     data[6] = currz+setz2
  372.     data[7] = areaType
  373.     sendMessage(textutils.serialize(data))
  374. end
  375.  
  376. function showAreaToggle()
  377.    areaShown = not areaShown
  378.    showArea(areaShown)
  379. end
  380.  
  381. function changeX(change)
  382.     setx = setx + change
  383.     if moveMode == "Move" then
  384.         setx2 = setx2 + change
  385.     elseif moveMode == "Expand" then
  386.         setx2 = setx2 - change
  387.     end
  388.     if autoApply then
  389.         refreshArea()
  390.     end
  391. end
  392.  
  393. function changeY(change)
  394.    sety = sety+change
  395.    if moveMode == "Move" then
  396.         sety2 = sety2 + change
  397.     elseif moveMode == "Expand" then
  398.         sety2 = sety2 - change
  399.     end
  400.     if autoApply then
  401.         refreshArea()
  402.     end
  403. end
  404.  
  405. function changeZ(change)
  406.     setz = setz+change
  407.     if moveMode == "Move" then
  408.         setz2 = setz2 + change
  409.     elseif moveMode == "Expand" then
  410.         setz2 = setz2 - change
  411.     end
  412.     if autoApply then
  413.         refreshArea()
  414.     end
  415. end
  416.  
  417. function changeX2(change)
  418.    setx2 = setx2 + change
  419.    if autoApply then
  420.         refreshArea()
  421.     end
  422. end
  423.  
  424. function changeY2(change)
  425.    sety2 = sety2+change
  426.    if autoApply then
  427.         refreshArea()
  428.     end
  429. end
  430.  
  431. function changeZ2(change)
  432.     setz2 = setz2+change
  433.     if autoApply then
  434.         refreshArea()
  435.     end
  436. end
  437.  
  438. function gpsLocate()
  439.    local x,y,z = gps.locate()
  440.    return math.floor(x), math.floor(y), math.floor(z)
  441. end
  442.  
  443. function comeHere()
  444.     button.flash("Come Here")
  445.     local data = {}
  446.     local x,y,z = gpsLocate()
  447.     if teleportMode then
  448.         data[0] = "teleport"
  449.     else
  450.         data[0] = "goto"
  451.     end
  452.     data[1] = x
  453.     data[2] = y
  454.     data[3] = z
  455.     sendMessage(textutils.serialize(data))
  456.     setAreaGlobal()
  457. end
  458.  
  459. function setSpot(x,y,z)
  460.     clearArea()
  461.     local data = {}
  462.     data[0] = "setSpot"
  463.     data[1] = x
  464.     data[2] = y
  465.     data[3] = z
  466.     sendMessage(textutils.serialize(data))
  467. end
  468.  
  469. function setArea(x1,y1,z1,x2,y2,z2, areaType)
  470.     clearArea()
  471.     local data = {}
  472.     data[0] = "setArea"
  473.     data[1] = x1
  474.     data[2] = y1
  475.     data[3] = z1
  476.     data[4] = x2
  477.     data[5] = y2
  478.     data[6] = z2
  479.     data[7] = areaType
  480.     sendMessage(textutils.serialize(data))
  481. end
  482.  
  483. function hasItem(itemName)
  484.     local data = {}
  485.     data[0] = "hasItem"
  486.     data[1] = itemName
  487.     sendMessage(textutils.serialize(data))
  488.     local id, message, distance, protocol = rednet.receive(5)
  489.     return(message)
  490. end
  491.  
  492. function inventoryImport(itemName)
  493.     local data = {}
  494.     data[0] = "inventoryImport"
  495.     data[1] = itemName
  496.     sendMessage(textutils.serialize(data))
  497. end
  498.  
  499. function inventoryExport(itemName)
  500.     local data = {}
  501.     data[0] = "inventoryExport"
  502.     data[1] = itemName
  503.     sendMessage(textutils.serialize(data))
  504. end
  505.  
  506. function showArea(show)
  507.     local data = {}
  508.     data[0] = "showArea"
  509.     data[1] = show
  510.     sendMessage(textutils.serialize(data))
  511. end
  512.  
  513. function clearArea()
  514.     local data = {}
  515.     data[0] = "clearArea"
  516.     sendMessage(textutils.serialize(data))
  517.     areaShown = false
  518.     showArea(areaShown)
  519. end
  520.  
  521. function pickup()
  522.     button.flash("ItemPickup")
  523.     local data = {}
  524.     data[0] = "pickup"
  525.     sendMessage(textutils.serialize(data))
  526. end
  527.  
  528. function dig()
  529.     button.flash("Dig")
  530.     local data = {}
  531.     data[0] = "dig"
  532.     sendMessage(textutils.serialize(data))
  533. end
  534.  
  535. function entityPickup()
  536.     button.flash("Ent Pickup")
  537.     local data = {}
  538.     data[0] = "entityImport"
  539.     sendMessage(textutils.serialize(data))
  540. end
  541.  
  542. function stopAction()
  543.     button.flash("Stop")
  544.     local data = {}
  545.     data[0] = "exitPiece"
  546.     sendMessage(textutils.serialize(data))
  547. end
  548.  
  549. function entityDrop()
  550.     button.flash("Ent Drop")
  551.     local data = {}
  552.     data[0] = "entityExport"
  553.     sendMessage(textutils.serialize(data))
  554. end
  555.  
  556. function place()
  557.     button.flash("Build")
  558.     local data = {}
  559.     data[0] = "place"
  560.     sendMessage(textutils.serialize(data))
  561. end
  562.  
  563. function attack()
  564.     button.flash("Attack")
  565.     local data = {}
  566.     data[0] = "attack"
  567.     sendMessage(textutils.serialize(data))
  568. end
  569.  
  570.  
  571. function isDone()
  572.     local data = {}
  573.     data[0] = "isDone"
  574.     sendMessage(textutils.serialize(data))
  575.     local id, message, distance, protocol = rednet.receive(5)
  576.     return(message)
  577. end
  578.  
  579. function waitDone()
  580.     while not isDone() do
  581.         sleep(1)
  582.     end
  583. end
  584.  
  585. function hasPickaxe()
  586.     return(hasItem("minecraft:diamond_pickaxe"))
  587. end
  588.  
  589. function getPickaxe()
  590.     button.flash("Get Pick")
  591.     if importChest["y"] ~= 0 then
  592.         setSpot(importChest["x"], importChest["y"], importChest["z"])
  593.         inventoryImport("minecraft:diamond_pickaxe")
  594.         setAreaGlobal()
  595.     else
  596.         button.label(1,20,"No importChest Location Set.")
  597.         sleep(1)
  598.     end
  599. end
  600.  
  601. function getItems()
  602.     button.flash("GetItems")
  603.     if importChest["y"] ~= 0 then
  604.         setSpot(importChest["x"], importChest["y"], importChest["z"])
  605.         inventoryImport("")
  606.         setAreaGlobal()
  607.     else
  608.         button.label(1,20,"No importChest Location Set.")
  609.         sleep(1)
  610.     end
  611. end
  612.  
  613. function dropItems()
  614.     button.flash("ItemsChest")
  615.     if importChest["y"] ~= 0 then
  616.         setSpot(exportChest["x"], exportChest["y"], exportChest["z"])
  617.         inventoryExport("")
  618.         setAreaGlobal()
  619.     else
  620.         button.label(1,20,"No exportChest Location Set.")
  621.         sleep(1)
  622.     end
  623. end
  624.  
  625. function tempShowArea()
  626.     showArea(true)
  627.     sleep(3)
  628.     showArea(false)
  629. end
  630.  
  631. function setRadius(xRad, zRad, yUp, yDown)
  632.    local x,y,z = gpsLocate()
  633.    x = x
  634.    y = y
  635.    print(x..y..z)
  636.    setArea(x-xRad, y-yDown, z-zRad, x+xRad, y+yUp, z+zRad)
  637.    tempShowArea()
  638. end
  639.  
  640. function setXYZ()
  641.    local x,y,z = gpsLocate()
  642.    x = x
  643.    y = y
  644.    
  645.    setArea(x-xRad, y-yDown, z-zRad, x+xRad, y+yUp, z+zRad)
  646.    
  647. end
  648.  
  649. function goHome()
  650.     local data = {}
  651.     button.flash("Go Home")
  652.     if teleportMode then
  653.         data[0] = "teleport"
  654.     else
  655.         data[0] = "goto"
  656.     end
  657.     data[1] = home["x"]
  658.     data[2] = home["y"]
  659.     data[3] = home["z"]
  660.     sendMessage(textutils.serialize(data))
  661.     setAreaGlobal()
  662. end
  663.  
  664. function goTo()
  665.     button.flash("GoTo")
  666.     local data = {}
  667.     if teleportMode then
  668.         data[0] = "teleport"
  669.     else
  670.         data[0] = "goto"
  671.     end
  672.     data[1] = currx+setx
  673.     data[2] = curry+sety
  674.     data[3] = currz+setz
  675.     sendMessage(textutils.serialize(data))
  676. end
  677.  
  678. function teleport()
  679.     local data = {}
  680.     data[0] = "teleport"
  681.     data[1] = currx+setx
  682.     data[2] = curry+sety
  683.     data[3] = currz+setz
  684.     sendMessage(textutils.serialize(data))
  685. end
  686.  
  687. function displayScreen()
  688.     if menuType == "mainMenu" then
  689.         mainMenu()
  690.     elseif menuType == "xyzMenu" then
  691.         xyzMenu()
  692.     elseif menuType == "statusMenu" then
  693.         statusMenu()
  694.     elseif menuType == "favoritesMenu" then
  695.         favoritesMenu()
  696.     end
  697.     local event, side, x, y
  698.     event, side, x, y = os.pullEvent()
  699.     while event ~= "mouse_click" do
  700.         event, side, x, y = os.pullEvent()
  701.     end
  702.     button.checkxy(x,y)
  703. end
  704.  
  705. readHome()
  706. readImportChest()
  707. readExportChest()
  708. while true do
  709.     displayScreen()
  710. end
  711.  
  712. --clearArea()  
  713. --dropItems()
  714. --getPickaxe()
  715. --setRadius(3,3,1,2)
  716. --dig()
  717. --waitDone()
  718. --clearArea()
  719. --setRadius(5,5,2,3)
  720. --pickup()
  721. --waitDone()
  722. --dropItems()
  723.  
  724. --comeHere()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement