Posted 03 October 2012 - 01:33 PM
Hello there is an error with my code and i have been stuffing around with it for about an hour trying to get it to work but i have given up
and could use some assistance this is probably simple too so.
My error is its expecting an end to close the function
on line 1
and could use some assistance this is probably simple too so.
My error is its expecting an end to close the function
on line 1
function wallOne()
for i = 1, 14 do
local itemcount
itemcount = turtle.getItemCount(1)
if itemcount == 0 then
turtle.select(2)
else
turtle.select(1)
turtle.place()
turtle.up()
turtle.place()
turtle.up()
turtle.place()
turtle.up()
turtle.select(5)
turtle.place()
turtle.up()
turtle.place()
turtle.up()
turtle.place()
turtle.up()
turtle.place()
turtle.up()
turtle.place()
turtle.back()
turtle.down()
turtle.down()
turtle.down()
turtle.down()
turtle.down()
turtle.down()
turtle.down()
end
end
wallOne()