diff --git a/assets/redstone_io.xcf b/assets/redstone_io.xcf new file mode 100644 index 000000000..59bae6f60 Binary files /dev/null and b/assets/redstone_io.xcf differ diff --git a/src/main/resources/assets/opencomputers/doc/en_US/block/redstone.md b/src/main/resources/assets/opencomputers/doc/en_US/block/redstone.md index 8978fc884..f963e5ee9 100644 --- a/src/main/resources/assets/opencomputers/doc/en_US/block/redstone.md +++ b/src/main/resources/assets/opencomputers/doc/en_US/block/redstone.md @@ -4,6 +4,6 @@ The redstone I/O block can be used to remotely read and emit redstone signals. It behaves like a hybrid of a tier 1 and 2 [redstone card](../item/redstoneCard1.md): it can read and emit simple analog as well as bundled signals, but cannot read or emit wireless redstone signals. -When providing a side to the methods of the component exposed by this block, the directions are the global principal directions, i.e. it is recommended to use `sides.north`, `sides.east` and so on. +When providing a side to the methods of the component exposed by this block, the directions are the global principal directions of the world. The block's texture features subtle indentations corresponding to the numeric value of each side. Another way is to use the global values `sides.north`, `sides.east` and so on. Like the [redstone cards](../item/redstoneCard1.md), this block injects a signal into connected [computers](../general/computer.md) when the state of a redstone signal changes - both for analog as well as for bundled signals. This block can also be configured to wake up connected [computers](../general/computer.md) when a certain input strength is exceeded, allowing automated booting of [computers](../general/computer.md). diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneBottom.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneBottom.png new file mode 100644 index 000000000..31b32ebad Binary files /dev/null and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneBottom.png differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneEast.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneEast.png new file mode 100644 index 000000000..fb32b021e Binary files /dev/null and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneEast.png differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneNorth.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneNorth.png new file mode 100644 index 000000000..f13c64dec Binary files /dev/null and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneNorth.png differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSide.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSide.png deleted file mode 100644 index c74056a4f..000000000 Binary files a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSide.png and /dev/null differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSouth.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSouth.png new file mode 100644 index 000000000..d867c6311 Binary files /dev/null and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneSouth.png differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneTop.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneTop.png index d0058d9ec..9195df08e 100644 Binary files a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneTop.png and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneTop.png differ diff --git a/src/main/resources/assets/opencomputers/textures/blocks/RedstoneWest.png b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneWest.png new file mode 100644 index 000000000..3a0883634 Binary files /dev/null and b/src/main/resources/assets/opencomputers/textures/blocks/RedstoneWest.png differ diff --git a/src/main/scala/li/cil/oc/common/block/Redstone.scala b/src/main/scala/li/cil/oc/common/block/Redstone.scala index 126f1ee82..de013ba60 100644 --- a/src/main/scala/li/cil/oc/common/block/Redstone.scala +++ b/src/main/scala/li/cil/oc/common/block/Redstone.scala @@ -11,12 +11,12 @@ import net.minecraft.world.World class Redstone extends RedstoneAware { override protected def customTextures = Array( + Some("RedstoneBottom"), Some("RedstoneTop"), - Some("RedstoneTop"), - Some("RedstoneSide"), - Some("RedstoneSide"), - Some("RedstoneSide"), - Some("RedstoneSide") + Some("RedstoneNorth"), + Some("RedstoneSouth"), + Some("RedstoneWest"), + Some("RedstoneEast") ) // ----------------------------------------------------------------------- //