I'm very new to coding and stuck on a problem with tables. I'm trying to code a Minecraft turtle form the Computercraft mod to check the state of wheat. I need to find the age number that is in a table inside of a table.
This is what I have.
--inspect test
local success data = turtle.inspectDown() --gets the first table
if (success) then
print("block inspected")
for k,v in pairs(data) do
print(k, ": ", v)
end
else
print(data)
end
Output:
state : table: 1e2bb4c
name : minecraft:wheat
tags : table: 24b41937
I want to print the tables state and tags to see what is in them but I cant figure out how to do it.