This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
component:redstone [2018/11/04 07:42] payonel |
component:redstone [2021/09/29 06:54] hawk777 Fix redstone orientation |
||
---|---|---|---|
Line 27: | Line 27: | ||
Note that the table returned is zero based. That is because the keys of the table are the ordinal values of the sides, and `sides.bottom` is 0. | Note that the table returned is zero based. That is because the keys of the table are the ordinal values of the sides, and `sides.bottom` is 0. | ||
- | Note also 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. | + | For a computer or server, the side is relative to the computer's orientation, i.e. `sides.front` should be used for *in front of the computer*. 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. For robots and redstone I/O blocks, the side is absolute, i.e. `sides.north` should be used for the north face of the block, regardless of how the block has been rotated. |
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]. |