First of all, since this is my first post, I would like to say a big congrats to the dev team of OpenComputers. For me it's definitely one of the most interesting mods for Minecraft and I like the idea behind it a lot.
Now for my question. Over the past few days, I've been working on my first program. I never programmed in Lua, so this was quite a challenge for me. I managed to get my program working the way I want it to, but I would like to make one more improvement for it.
The program is supposed to do one thing when it receives a wireless redstone signal on a certain frequency, and another thing when it receives a signal on a different frequency. The way I have it set up right now is with two Wireless Receivers from Wireless Redstone - CBE. One is connected on the left side of the computer and the other is connected on the right side of the computer.
I would like to use the Redstone Card Tier 2 that sits in my computer. I want to get rid of my Wireless Receivers. As I understand, the Redstone Card Tier 2 should be able to handle wireless redstone natively, but I can't figure out how to use the API correctly. I want to learn how to use this, as I'm sure I will use it a lot in my future programs.
Can someone help me by posting some code snippets I can implement? To reiterate, the computer needs to listen for a redstone signal on a certain frequency, do one thing if it receives a signal from one frequency and another thing if it receives a signal from another frequency.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hello everyone.
First of all, since this is my first post, I would like to say a big congrats to the dev team of OpenComputers. For me it's definitely one of the most interesting mods for Minecraft and I like the idea behind it a lot.
Now for my question. Over the past few days, I've been working on my first program. I never programmed in Lua, so this was quite a challenge for me. I managed to get my program working the way I want it to, but I would like to make one more improvement for it.
The program is supposed to do one thing when it receives a wireless redstone signal on a certain frequency, and another thing when it receives a signal on a different frequency. The way I have it set up right now is with two Wireless Receivers from Wireless Redstone - CBE. One is connected on the left side of the computer and the other is connected on the right side of the computer.
I would like to use the Redstone Card Tier 2 that sits in my computer. I want to get rid of my Wireless Receivers. As I understand, the Redstone Card Tier 2 should be able to handle wireless redstone natively, but I can't figure out how to use the API correctly. I want to learn how to use this, as I'm sure I will use it a lot in my future programs.
Can someone help me by posting some code snippets I can implement? To reiterate, the computer needs to listen for a redstone signal on a certain frequency, do one thing if it receives a signal from one frequency and another thing if it receives a signal from another frequency.
Thank you.
Link to post
Share on other sites