Posted 14 March 2012 - 10:35 PM
Okay so I apparently have a picky turtle expecting an "=" on line 10… Problem is I've no idea how to fix it…
local digsleft = 0
local maxdigs = 16
local digs = 0
local slots = 16
local exc = 0
local tun = 0
lua
print("Activating Submarine Tunnel Construction…")
end
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.select(1)
turtle.place(1)
turtle.down(1)
turtle.place(1)
turtle.right(1)
turtle.forward(1)
turtle.forward(1)
turtle.forward(1)
turtle.left(1)
turtle.place(1)
turtle.up(1)
turtle.place(1)
turtle.up(1)
turtle.left(1)
turtle.forward(1)
turtle.right(1)
turtle.place(1)
turtle.left(1)
turtle.forward(1)
turtle.right(1)
turtle.place(1)
turtle.down(1)
turtle.down(1)
turtle.down(1)
turtle.place(1)
turtle.right(1)
turtle.forward(1)
turtle.left(1)
turtle.place(1)
turtle.up(1)
turtle.select(3)
turtle.place(1)
turtle.up(1)
turtle.place(1)
turtle.left(1)
turtle.forward(1)
turtle.right(1)
turtle.place(1)
turtle.down(1)
turtle.place(1)
end
slots = slots -1
end
if slots == 8 then
turtle.select(2)
print ("Switching To Slot #2…")
end
digs = digs + 1
digsleft = digsleft - 1
end
if digs == maxdigs then
turtle.dig(1)
turtle.forward(1)
exc = exc + 1
if exc == maxdigs then
turtle.right(1)
turtle.forward(1)
turtle.right(1)
tun = tun + 1
turtle.dig(1)
turtle.forward(1)
exc = exc + 1
if exc == maxdigs then
turtle.right(1)
turtle.up(1)
turtle.right(1)
tun = tun + 1
turtle.dig(1)
turtle.forward(1)
exc = exc + 1
if exc == maxdigs then
turtle.left(1)
turtle.forward(1)
turtle.left(1)
tun = tun + 1
if tun == 4 then
turtle.right(1)
turtle.forward(1)
turtle.right(1)
turtle.up(1)
turtle.up(1)
turtle.up(1)
turtle.up(1)
turtle.up(1)
turtle.up(1)
turtle.up(1)
print("Done.")
end
exit()