Sorry for being such a noob. This is the first time I've messed with computer craft within tekkit.
I know nothing about about Lua except for about 30 minutes worth of tutorials (the basics) on youtube.
I have a turtle that uses my own tunnel code and I want it to check each of it's slots. If the slot is full I want the turtle to throw it out then check the next slot.
in slot 1 I have a stack of torches. placing a torch every 10 blocks is part of the tunnel code.
Ive tested the tunnel code and it all works perfectly. I need help figuring out why my test code for the item dump is not working.
When I get it working I will move it over into the main tunnel code and I'll be a happy camper.
this is what I have:
turtle.select(2) if turtle.getItemCount(2) = 64 then turtle.drop(64) end turtle.select(3) if turtle.getItemCount(3) = 64 then turtle.drop(64) end turtle.select(4) if turtle.getItemCount(4) = 64 then turtle.drop(64) end
and this is the error code it gives me:
bios:206: [string "test"]:2: 'then' expected
I've looked at the turtle API on the wiki. and it seems that everything checks out. but apparently not.
Thanks