Posted 02 March 2016 - 12:02 AM
I'm making a farming program and I can't figure out how to get metadata to work with pullevent.
local success, t = turtle.inspectDown() it will return the name of the plant and the metadata for how grown it is. But I'm trying to get os.pullEvent to check and wait for t.metadata to equal 7 then start the farming program.
Sorry if I'm confusing just not sure how to explain it fully but it would be like wait for wheat to grow once metadata hits 7 turtle starts farming it's strips then returns and waits again.
local success, t = turtle.inspectDown() it will return the name of the plant and the metadata for how grown it is. But I'm trying to get os.pullEvent to check and wait for t.metadata to equal 7 then start the farming program.
Sorry if I'm confusing just not sure how to explain it fully but it would be like wait for wheat to grow once metadata hits 7 turtle starts farming it's strips then returns and waits again.