Im new to this mod and to lua. Im trying to start with a simple program that can read redstone signals and detect their levels.
I have basic lua knowledge, knowing commands like [do], [if], [if else], [read] and [while]. A bit of boolean [True, false] and create variables.
I made a small computer with the redstone card (and the essentials like EEPROM, GPU, CPU and RAM). Its connected with red wires from red power that are connceted to a lever. I have the compat module from redpower installed.
My main question is what I need to write in the .lua file to be able to use the redstone card and what commands I need to the program detect the signal and use it for a boolean variable or something else?
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.
Im new to this mod and to lua. Im trying to start with a simple program that can read redstone signals and detect their levels.
I have basic lua knowledge, knowing commands like [do], [if], [if else], [read] and [while]. A bit of boolean [True, false] and create variables.
I made a small computer with the redstone card (and the essentials like EEPROM, GPU, CPU and RAM). Its connected with red wires from red power that are connceted to a lever. I have the compat module from redpower installed.
My main question is what I need to write in the .lua file to be able to use the redstone card and what commands I need to the program detect the signal and use it for a boolean variable or something else?
Thank you
Mr. Stairs
Link to post
Share on other sites