function on(type)
>insert code here
end
while true do
print("Check farms' Statuses or toggle them On and Off")
print("Press any key to input")
local e, i, msg = os.pullEvent()
if e == "char" then
print("Oak, Rubber, Animals, Cactus?")
local tInput[1] = tonumber(read())
print("Status, On, Off?")
local tInput[2] = tonumber(read())
tInput[2](tInput[1])
end
end
trying to have it on rednet while not in use, and if someone hits a key it will take 2 inputs. These will then run as a function and its parameter
Also, how would I make it so that there is a 10 second window for all the input to happen, and if it does not happen within this time it will just go back to the initial while loop?











