Posted 13 December 2015 - 06:04 AM
Ok, so it's not the turtle, it's the code. Which is me. I'm being a jerk to myself. I need help.
So here's the code:
the turtle is telling me:
farm:127: attempt to index ? (a nil value)
what's wrong with it? I'm pretty sure I have everything right.
So here's the code:
125 function isWheat()
126 success, data = turtle.inspectDown()
127 if data[metadata] == 7 then
128 turtle.digDown()
129 for i = 1, 15 do
130 seedget, isseed = turtle.getItemdetail(i)
131 if isseed[name] == "minecraft:wheat_seeds" then
132 turtle.select(i)
133 seed = turtle.place()
134 if seed == false then
135 turtle.down()
136 turtle.digDown()
137 turtle.up()
138 turtle.place()
139 end
140 end
141 end
142 end
143 lwcheck()
144 end
the turtle is telling me:
farm:127: attempt to index ? (a nil value)
what's wrong with it? I'm pretty sure I have everything right.