The SerialCraft mod adds the ability to interface with Minecraft over a serial port. Messages can be sent to Minecraft from a device such as an Arduino to control your character, trigger redstone signals, send chat messages and more. Messages are also sent from Minecraft to your device, such as health or hunger level changes, redstone signals, nearest creeper distance and more. See the SerialCraft Arduino library for more information about programming an Arduino to communicate with the SerialCraft mod.
The Serial Redstone block can be built with the following recipe:
When you place the block, you must enter an ID or password that is stored on the block. Once set, it cannot be change. Instead, you must break the block, place it again and set a new ID. Once the ID is set, you can activate a redstone signal from that block by sending the message "redstone " and replace with the ID you set on your block and with a number between 0-15. Here is an example using the SerialCraft Arduino library. to trigger a redstone signal on when a button is pressed and turn it off when the button is released.
The Send Serial Message block can be built with the following recipe:
Similar to the Serial Redstone block, when you place the block, you must enter a message. Once set, it cannot be change. Instead, you must break the block, place it again and set a new message. Once the message is set, you can connect the block to a redstone signal to send a message to your serial device. A level, button or pressure plate are the easiest ways to trigger the message, but any LOW to HIGH signal will trigger the message, even by using a Serial Redstone block!