Posted 21 December 2012 - 07:06 PM
I am new to Lua and I'm trying to explore different options in what I can do with computercraft. Right now I am trying to make a small wheat farm.
Again, I am new to Lua and this may be completely wrong. Help is appreciated!
Thanks! :D/>
num = turtle.getItemCount(3)
while num ~= 32 do
turtle.place()
turtle.select(2)
turtle.place()
turtle.select(1)
turtle.dig()
end
What I thought this would do was place the seeds in slot 1, select slot 2 with the bonemeal, use the bonemeal, select the seeds again and break it. This part works but the while loop goes on until the bonemeal runs out when I thought it would only go until the item count in slot 3 (where the wheat goes) was 32.Again, I am new to Lua and this may be completely wrong. Help is appreciated!
Thanks! :D/>