This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
component:redstone [2014/07/10 00:13] sangar created |
component:redstone [2015/04/05 15:18] rashy |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | This component represents a [[Redstone card|Items]]. | + | Component: Redstone |
+ | ================== | ||
+ | This component represents a [[item:redstone_card|Redstone card]]. | ||
As of OC 1.3 there is a tier two redstone card. The tier one Redstone Card only supports vanilla redstone functionality (single-line analog redstone). Tier two provides interoperation with other mods' redstone systems (bundled, wireless). For bundled input/output the following mods are supported: RedLogic, Project Red (with Version 1.1), MineFactory Reloaded. For wireless redstone, the following mods are supported: WR-CBE, SlimeVoid's WR. | As of OC 1.3 there is a tier two redstone card. The tier one Redstone Card only supports vanilla redstone functionality (single-line analog redstone). Tier two provides interoperation with other mods' redstone systems (bundled, wireless). For bundled input/output the following mods are supported: RedLogic, Project Red (with Version 1.1), MineFactory Reloaded. For wireless redstone, the following mods are supported: WR-CBE, SlimeVoid's WR. | ||
Line 7: | Line 9: | ||
- `getInput(side: number): number` | - `getInput(side: number): number` | ||
- | Gets the current ingoing redstone signal from the specified [[side|API/Sides]]. Note that the side is relative to the computer's orientation, i.e. `sides.south` is *in front of the computer*, not south in the world. Likewise, `sides.left` is to the left of the computer, so when you look at the computer's front, it'll be to your right. | + | Gets the current ingoing redstone signal from the specified [[api:sides|side]]. Note that the side is relative to the computer's orientation, i.e. `sides.south` is *in front of the computer*, not south in the world. Likewise, `sides.left` is to the left of the computer, so when you look at the computer's front, it'll be to your right. |
If you use mods such as RedLogic the input may exceed the vanilla values of [0, 15]. | If you use mods such as RedLogic the input may exceed the vanilla values of [0, 15]. | ||
- `getOutput(side: number): number` | - `getOutput(side: number): number` | ||
Line 38: | Line 40: | ||
Set the wireless redstone frequency to use.\\ | Set the wireless redstone frequency to use.\\ | ||
//Added in OC 1.3. Only available on tier two redstone cards.// | //Added in OC 1.3. Only available on tier two redstone cards.// | ||
+ | - `getWakeThreshold():number` | ||
+ | Gets the current wake-up threshold. | ||
+ | - `setWakeThreshold(threshold:number):number` | ||
+ | Sets the wake-up threshold to the specified number. | ||
Note that for mods such as ProjectRed, low values (such as the vanilla maximum of 15) may not function as expected for simple on/off values (opening a door for example), because they have a larger value range. You may need to use a higher value, such as 255. | Note that for mods such as ProjectRed, low values (such as the vanilla maximum of 15) may not function as expected for simple on/off values (opening a door for example), because they have a larger value range. You may need to use a higher value, such as 255. |