Posted 19 November 2012 - 06:49 AM
I'm just trying to learn crafty turtles since I don't see to many tutorials on them so if you could tell me one of them that would be awesome but what is the error in this program it will always return false where slot 1 and 5 are planks and it should make sticks.
map = {
[1] = true, [2] = false, [3] = false, [4] = false,
[5] = true, [6] = true, [7] = false, [8] = false,
[9] = false, [10]= true, [11]= false, [12] = false,
[13] = false, [14] = false, [15] = false, [16] = false
}
if map == true then
turtle.craft(1,5)
turtle.select(1)
turtle.dropDown()
else
print ("Please clear out the turtle inventory.")
end
map = {
[1] = true, [2] = false, [3] = false, [4] = false,
[5] = true, [6] = true, [7] = false, [8] = false,
[9] = false, [10]= true, [11]= false, [12] = false,
[13] = false, [14] = false, [15] = false, [16] = false
}
if map == true then
turtle.craft(1,5)
turtle.select(1)
turtle.dropDown()
else
print ("Please clear out the turtle inventory.")
end