MCInteractive
This is a simple plugin I wrote after attending MakerFaire. At the Java booth, a computer running Minecraft was set up to control strings of electric lights and a small robot. This plugin is for people who want do do the same. A simple command turns any block into a trigger. When the trigger receives a redstone signal, the plugin prints a customizable message to a serial port, which can be connected to a microcontroller. The plugin now listens for incoming messages, and logs the message to the console when a configurable stop signal is recieved.
Requirements
This plugin requires the Java RXTX library in order to function. The library is available at http://mfizz.com/oss/rxtx-for-java for free. Installation instructions are included in the download.
Commands
Create a trigger block (/breakout)
- Description: Turns the targeted block into a trigger block
- Usage: /breakout <Parameters>
- Parameters:
- on: StateOnMessage
- off: StateOffMessage
- Example: /breakout on:The block is powered off:The block is not powered
- Permissions: mcinteractive.trigger.create
Remove a trigger block (/removetrigger)
- Description: Remove a trigger block
- Usage: /removetrigger
- Example: /removetrigger
- Permissions: mcinteractive.trigger.remove
Manage serial connections (/serial)
- Description: Connect or disconnect from a serial port, send a message to the port, or list the available ports
- Usage: /serial <Parameters>
- Parameters:
- connect | disconnect | list | sendmessage
- Example: /serial connect com3
- Example: /serial connect com3 9600
- Example: /serial disconnect
- Example: /serial list
- Example: /serial sendmessage This message will be written to the serial port
- Permissions: mcinteractive.serial
Player movement tracking (/trackplayer)
- Description: Toggle whether a player's movement is tracked and logged to the port
- Usage: /trackplayer <player>
- Example: /trackplayer John_Doe
- Permissions: mcinteractive.trigger.player
Examples
See an example of an Arduino sketch that can communicate with this plugin here!
Source & Documentation
WARNING
This plugin interacts with the host machine's serial ports. This has the potential to damage hardware. It does not affect the client machines in any way. Only allow people you trust to use this plugin. If you are not the owner of the physical server (i.e. if you are renting the server from a hosting company), do not use this plugin.
@Cannafix
I had a system where redstone would trigger command blocks to print a message, which was recorded to chat logs. I set up a python script to check the logs, and write to the serial port. I decided to upgrade to allow all players access, even if they can't access command blocks.
Thats crazy. i was talking about this yesterday with a friend. he would like to make his house in minecraft and be able to turn his light on and off from ingame. And now he can :-)