Posted 15 December 2012 - 05:17 AM
Sorry if im just stupid for asking this but i cant figure it out, becouse im new with lua.
i have "written" an turtle program:
But after the last end i want the turtle to do something more. how do i do that?
i have "written" an turtle program:
local args = { ... }
local times = args[1]
local nTimes = tonumber(args[1])
local slotNum = 2
local function checkslot()
turtle.select(slotNum)
if turtle.getItemCount(slotNum) < 1 then
slotNum = slotNum + 1
end
end
for i = 1, nTimes do
checkslot()
turtle.forward()
turtle.placeDown()
end
But after the last end i want the turtle to do something more. how do i do that?