Posted 29 June 2015 - 08:41 PM
I am using the computercraft mod in the Feed the Beast modpack, TechWorld2.
Every time I try to run my code in the file farm, I get error farm:28: attempt to call nil.
Line 28 is the line
Am I doing something completely wrong here? I've stared at this for about an hour and can't see the problem.
Every time I try to run my code in the file farm, I get error farm:28: attempt to call nil.
if turtle.detectDown() then
local suc, t = turtle.inspectDown()
if suc and t.name == "minecraft:wheat" and t.metadata == 7 then
turtle.digDown()
...
end
end
Line 28 is the line
local suc, t = turtle.inspectDown()
Am I doing something completely wrong here? I've stared at this for about an hour and can't see the problem.
Edited on 29 June 2015 - 09:25 PM