Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --!excavate
- --This clears a fully customizable area
- print("This code clears a customizable room that is one block above and below the turtle")
- print("I need an enderchest in slot one")
- sleep(1)
- print("")
- print("I dig down boss")
- sleep(1)
- print("I dig layers 3 blocks high")
- print("How many layers am I digging?")
- z=tonumber(read())
- print("Left or Right from where I'm facing? (L/R)?")
- u=read()
- b=0
- print("How many blocks forward?")
- x=tonumber(read())-1
- print("How many blocks wide?")
- y=tonumber(read())
- for k=1, z, 1 do
- if k==1 then
- t.down()
- t.down()
- t.digDown()
- b=b+2
- else
- t.down()
- t.down()
- t.down()
- t.digDown()
- b=b+3
- end
- if u=="L" or "l" then
- u=2
- elseif u=="R" or "r" then
- u=1
- else
- print("Incorrect input, restart and try again!")
- break
- end
- if (x*y*z+4*z)<=turtle.getFuelLevel() then
- modem.transmit(channel, 128, "Minion "..os.getComputerLabel().." has started strip mining!")
- v=1
- for j=1, y do
- for i=1, x do
- t.forward()
- t.digUp()
- t.digDown()
- end
- if turtle.getItemCount(16)~=0 then
- shell.run("ender")
- end
- if j==y then
- t.right()
- t.right()
- else
- if u==1 then
- t.right()
- t.forward()
- t.digUp()
- t.digDown()
- t.right()
- u=2
- elseif u==2 then
- t.left()
- t.forward()
- t.digUp()
- t.digDown()
- t.left()
- u=1
- end
- end
- modem.transmit(128, channel, "Minion "..os.getComputerLabel().." has finished layer "..j.." of "..z.." sir!")
- end
- else
- print("Not enough fuel Boss!, refuel me please!")
- end
- end
- for o=1, b, 1 do
- t.up()
- end
- modem.transmit(channel, 128, "Minion "..os.getComputerLabel().." has finished chunk stripping!")
Advertisement
Add Comment
Please, Sign In to add comment