Posted 06 October 2012 - 07:32 PM
First hello everyone :D/>/> , I'm new to the forum and newbie in programming, so I need your help.
Recently I use a lot of features in computercraft and I need a program, but unfortunately I do not know how to compose it by myself.
Just as the subject it relates to item detector.
Here is my code, but it is only about to receive the input signal from detector
if os.pullEvent () == "redstone" then
redstone.testBundledInput if ("bottom", colors.black) == true then
print ("")
This program satisfy me, but I need two things:
1.Sometimes happens that there is no signal input, cause no items going through detector and the program is waiting, so I need function:
"If the signal will not be for ex. 30 sec then …."
2.It will be good if the computer gets the information about amount items go through the detector, how many signals inputed during ex. 30 sec.
Is it possible?
Recently I use a lot of features in computercraft and I need a program, but unfortunately I do not know how to compose it by myself.
Just as the subject it relates to item detector.
Here is my code, but it is only about to receive the input signal from detector
if os.pullEvent () == "redstone" then
redstone.testBundledInput if ("bottom", colors.black) == true then
print ("")
This program satisfy me, but I need two things:
1.Sometimes happens that there is no signal input, cause no items going through detector and the program is waiting, so I need function:
"If the signal will not be for ex. 30 sec then …."
2.It will be good if the computer gets the information about amount items go through the detector, how many signals inputed during ex. 30 sec.
Is it possible?