Posted 03 January 2013 - 02:03 AM
-This program is meant to evenly arrange items among slots 13-16, any help appreciated…
and help with posting etiquette…
and help with learn to write CC Lua well…
and thats all.
[Fixed code tags. -L]
and help with posting etiquette…
and help with learn to write CC Lua well…
and thats all.
total=0
each=0
for i=13, 16 do
turtle.select(i)
total=total+turtle.getItemCount(i)
print(total)
end
g=13
for g=13, 16 do
turtle.select(g)
turtle.transferTo(g+1)
g=g+1
end
--The main problem IS HERE
turtle.getItemCount(16) = sharenum*4
for k=13, 16 do
turtle.select(16)
turtle.transferTo(k, sharenum)
end
[Fixed code tags. -L]