Posted 12 December 2012 - 11:20 PM
local args = { ... }
if #args >= 1 then
local slot = tonumber(args[1])
if slot and slot >= 1 and slot <= 16 then
turtle.select(slot)
end
end
function prevBlockSlot(curSlot)
for slot=curSlot,2,-1 do
turtle.select(slot)
if turtle.compareTo(1) then
return slot
end
end
end
while true do
if not turtle.place() then
break
end
if not turtle.dig() then
break
end
end
I'm wanting the program to get the block in slot 1 then scan to see if there's other slots with the same type of block, and remember
Then I want it to break and place blocks, when the block in the slot changes go to the next slot with the inital block.
..help? I'm no programmer..