This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheSwiftVlogger's profile picture

tunnel mine -3x2 places chest when full

Started by TheSwiftVlogger, 25 February 2014 - 07:14 AM
TheSwiftVlogger #1
Posted 25 February 2014 - 08:14 AM
Hey guys this is only my second code, (not sure if my first has been approved yet (im only new to this) basically, it mines a 3x1 tunnel continuously until it gets full, turns to the left places a chest and puts all items into it, then turns right and continues tunneling.

feedback welcome

Link: http://pastebin.com/We1gzev1
jakemg #2
Posted 27 February 2014 - 01:40 AM
  • I was just reviewing your code and there seems to be one part of it that can cause u some issues in the future, the only problem is that if there is gravel above the block your turtle dries to dig out he is going to have issues placing the chest so I would advise adding while not turtle.place() do turtle.dig() end =) good luck
    • if turtle.getItemCount(16) ~= 0 then
    • turtle.turnLeft()
    • turtle.dig()
    • turtle.select(1)
    • turtle.place()
    • for i = 2,16 do
    • turtle.select(i)
    • turtle.drop()
    • end
TheSwiftVlogger #3
Posted 27 February 2014 - 11:35 PM
  • I was just reviewing your code and there seems to be one part of it that can cause u some issues in the future, the only problem is that if there is gravel above the block your turtle dries to dig out he is going to have issues placing the chest so I would advise adding while not turtle.place() do turtle.dig() end =) good luck
    • if turtle.getItemCount(16) ~= 0 then
    • turtle.turnLeft()
    • turtle.dig()
    • turtle.select(1)
    • turtle.place()
    • for i = 2,16 do
    • turtle.select(i)
    • turtle.drop()
    • end
thanks mate this i did run into this problem I now have fixed it :)/>.
Jim #4
Posted 02 March 2014 - 08:50 AM
Wow this program is exactly like my first program ever.
MostwantedRBX #5
Posted 09 March 2014 - 02:42 AM
I'd like to try it, but it says the paste has been removed.