SHOW:
|
|
- or go back to the newest paste.
| 1 | for l=1,10 do | |
| 2 | - | if fs.exists("goto") == false
|
| 2 | + | if fs.exists("sugurapi/gt") == false then do
|
| 3 | - | then do |
| 3 | + | print("downloading goto api")
|
| 4 | - | print("downloading goto")
|
| 4 | + | shell.run("mkdir","sugurapi")
|
| 5 | - | shell.run("pastebin","get","Rj9UiYUJ","goto")
|
| 5 | + | shell.run("cd","sugurapi")
|
| 6 | - | end |
| 6 | + | shell.run("pastebin","get","a3GBewNp","gt")
|
| 7 | - | else do |
| 7 | + | shell.run("cd","..")
|
| 8 | - | while true do |
| 8 | + | if fs.exists("sugurapi/gt") == true then
|
| 9 | - | if turtle.getItemCount(4) ~= 0 |
| 9 | + | print("download complete")
|
| 10 | - | then do |
| 10 | + | elseif fs.exists("sugurapi/gt") == false then
|
| 11 | - | turtle.turnLeft() |
| 11 | + | print("download failed")
|
| 12 | - | shell.run("goto", "303", "67", "330")
|
| 12 | + | end |
| 13 | - | shell.run("goto", "303", "67", "329")
|
| 13 | + | end |
| 14 | - | shell.run("goto", "301", "66", "328")
|
| 14 | + | else do |
| 15 | - | turtle.select(4) |
| 15 | + | os.loadAPI("sugurapi/gt")
|
| 16 | - | turtle.drop() |
| 16 | + | while true do |
| 17 | - | end |
| 17 | + | |
| 18 | - | else do |
| 18 | + | --------------------- |
| 19 | --------------------- | |
| 20 | --------------------- | |
| 21 | - | --------------------- |
| 21 | + | --CHANGE HERE START-- |
| 22 | - | --------------------- |
| 22 | + | --------------------- |
| 23 | - | --------------------- |
| 23 | + | --------------------- |
| 24 | - | --CHANGE HERE START-- |
| 24 | + | --------------------- |
| 25 | - | --------------------- |
| 25 | + | wait_time = 60 / 72 |
| 26 | - | --------------------- |
| 26 | + | wait_time = wait_time / 8 |
| 27 | - | --------------------- |
| 27 | + | |
| 28 | - | wait_time = 45 |
| 28 | + | pieloc = {301, 66, 328, "w"}
|
| 29 | - | ------------------- |
| 29 | + | |
| 30 | - | ------------------- |
| 30 | + | eggloc = {303, 69, 348, "s"}
|
| 31 | - | --CHANGE HERE END-- |
| 31 | + | |
| 32 | - | ------------------- |
| 32 | + | sugurloc = {303, 66, 331, "n"}
|
| 33 | - | ------------------- |
| 33 | + | |
| 34 | pumpkinloc = {305, 65, 327, "w"}
| |
| 35 | ||
| 36 | - | if turtle.getItemCount(1) == 0 |
| 36 | + | ------------------- |
| 37 | - | then do |
| 37 | + | ------------------- |
| 38 | - | turtle.select(1) |
| 38 | + | --CHANGE HERE END-- |
| 39 | - | shell.run("goto", "303", "69", "347")
|
| 39 | + | ------------------- |
| 40 | - | shell.run("goto", "303", "69", "348")
|
| 40 | + | ------------------- |
| 41 | - | print("grab!")
|
| 41 | + | |
| 42 | ||
| 43 | - | while turtle.getItemCount(1) == 0 do |
| 43 | + | |
| 44 | - | turtle.suck() |
| 44 | + | |
| 45 | - | |
| 45 | + | |
| 46 | - | if turtle.getItemCount(1) == 0 then |
| 46 | + | |
| 47 | - | |
| 47 | + | |
| 48 | - | |
| 48 | + | |
| 49 | - | sleep(wait_time) |
| 49 | + | |
| 50 | - | end |
| 50 | + | |
| 51 | - | end |
| 51 | + | |
| 52 | - | end |
| 52 | + | if turtle.getItemCount(4) ~= 0 then do |
| 53 | - | else |
| 53 | + | turtle.turnLeft() |
| 54 | gt.goto(pieloc) | |
| 55 | - | if turtle.getItemCount(2) == 0 |
| 55 | + | turtle.select(4) |
| 56 | - | then do |
| 56 | + | while turtle.getItemCount(4) ~= 0 do |
| 57 | - | shell.run("goto", "303", "66", "333")
|
| 57 | + | turtle.drop() |
| 58 | - | shell.run("goto", "303", "66", "331")
|
| 58 | + | if turtle.getItemCount(4) ~= 0 then |
| 59 | - | turtle.select(2) |
| 59 | + | sleep(wait_time) |
| 60 | end | |
| 61 | - | |
| 61 | + | end |
| 62 | - | |
| 62 | + | end |
| 63 | - | while turtle.getItemCount(2) == 0 do |
| 63 | + | else do |
| 64 | - | turtle.suck() |
| 64 | + | |
| 65 | - | if turtle.getItemCount(2) == 0 then |
| 65 | + | |
| 66 | - | |
| 66 | + | |
| 67 | - | sleep(wait_time) |
| 67 | + | |
| 68 | - | end |
| 68 | + | |
| 69 | - | end |
| 69 | + | if turtle.getItemCount(1) == 0 |
| 70 | - | end |
| 70 | + | then do |
| 71 | - | else |
| 71 | + | turtle.select(1) |
| 72 | gt.goto(eggloc) | |
| 73 | - | if turtle.getItemCount(3) == 0 |
| 73 | + | print("grab!")
|
| 74 | - | then do |
| 74 | + | |
| 75 | while turtle.getItemCount(1) == 0 do | |
| 76 | turtle.suck() | |
| 77 | - | turtle.turnLeft() |
| 77 | + | |
| 78 | - | shell.run("goto", "307", "65", "329")
|
| 78 | + | if turtle.getItemCount(1) == 0 then |
| 79 | - | shell.run("goto", "307", "65", "328")
|
| 79 | + | |
| 80 | - | shell.run("goto", "305", "65", "327")
|
| 80 | + | |
| 81 | - | turtle.select(3) |
| 81 | + | sleep(wait_time) |
| 82 | end | |
| 83 | - | while turtle.getItemCount(3) == 0 do |
| 83 | + | end |
| 84 | - | turtle.suck() |
| 84 | + | end |
| 85 | - | if turtle.getItemCount(3) == 0 then |
| 85 | + | else |
| 86 | - | |
| 86 | + | |
| 87 | - | sleep(wait_time) |
| 87 | + | if turtle.getItemCount(2) == 0 |
| 88 | - | end |
| 88 | + | then do |
| 89 | - | end |
| 89 | + | gt.goto(sugurloc) |
| 90 | - | end |
| 90 | + | turtle.select(2) |
| 91 | - | else |
| 91 | + | |
| 92 | ||
| 93 | - | if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0 |
| 93 | + | |
| 94 | - | then do |
| 94 | + | while turtle.getItemCount(2) == 0 do |
| 95 | - | turtle.select(4) |
| 95 | + | turtle.suck() |
| 96 | - | turtle.craft() |
| 96 | + | if turtle.getItemCount(2) == 0 then |
| 97 | ||
| 98 | - | end |
| 98 | + | sleep(wait_time) |
| 99 | - | else |
| 99 | + | end |
| 100 | - | os.reboot() |
| 100 | + | end |
| 101 | - | end |
| 101 | + | end |
| 102 | - | end |
| 102 | + | else |
| 103 | - | end |
| 103 | + | |
| 104 | - | end |
| 104 | + | if turtle.getItemCount(3) == 0 |
| 105 | - | end |
| 105 | + | then do |
| 106 | - | end |
| 106 | + | |
| 107 | - | end |
| 107 | + | |
| 108 | - | end |
| 108 | + | --turtle.turnLeft() |
| 109 | - | end |
| 109 | + | gt.goto(pumpkinloc) |
| 110 | - | end |
| 110 | + | turtle.select(3) |
| 111 | ||
| 112 | while turtle.getItemCount(3) == 0 do | |
| 113 | turtle.suck() | |
| 114 | if turtle.getItemCount(3) == 0 then | |
| 115 | ||
| 116 | sleep(wait_time) | |
| 117 | end | |
| 118 | end | |
| 119 | end | |
| 120 | else | |
| 121 | ||
| 122 | if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0 | |
| 123 | then do | |
| 124 | turtle.select(4) | |
| 125 | turtle.craft() | |
| 126 | ||
| 127 | end | |
| 128 | else | |
| 129 | os.reboot() | |
| 130 | end | |
| 131 | end | |
| 132 | end | |
| 133 | end | |
| 134 | end | |
| 135 | end | |
| 136 | end | |
| 137 | end | |
| 138 | end | |
| 139 | end |