Posted 16 December 2014 - 03:52 AM
I am looking to use two computers to work together to crate a counter.
One computer 1, I have a small program that loops every 7 seconds. at the end of that loop, I would like it to send a message to the second computer. something like "+1" or similar.
Then I want the second computer to take that "+1" and count up to 100, and at that point, send out a REDSTONE signal on one side.
Basically, I want a counter on the second computer to run every 700 seconds, but don't want the counter to get reset when the server gets reset, which is what would happen if I just add a sleep(700) command to the original program. I also would like this other program to run only once for every 100 operations of the other program.
Hopefully this makes sense, as I have no idea where to start with rednet programming.
Thanks in advance :)/>
One computer 1, I have a small program that loops every 7 seconds. at the end of that loop, I would like it to send a message to the second computer. something like "+1" or similar.
Then I want the second computer to take that "+1" and count up to 100, and at that point, send out a REDSTONE signal on one side.
Basically, I want a counter on the second computer to run every 700 seconds, but don't want the counter to get reset when the server gets reset, which is what would happen if I just add a sleep(700) command to the original program. I also would like this other program to run only once for every 100 operations of the other program.
Hopefully this makes sense, as I have no idea where to start with rednet programming.
Thanks in advance :)/>