Posted 25 January 2015 - 09:29 PM
So, I am trying to have a turtle check if a wood block is in front of it, and I know that turtle.inspect() returns a table with two items, one of which is the name, and another which is the ID. How would I get the value from turtle.inspect into a single variable?
However, when I run that code, it returns the attempt to index ? error.
local block = turtle.inspect()
print(block[1])
However, when I run that code, it returns the attempt to index ? error.