Hello World in Minecraft

This is a short flow to demonstrate how to communicate from Node-RED with Minecraft. It uses a TCP request to push "chat.post( )\n" with an injected message into Steve's world. Note that you have to run Minecraft and enter a world before triggering this flow.

[{"id":"945e5f77.182da8","type":"function","z":"a59a50d2.5a65b","name":"function","func":"msg.payload = \"chat.post(\"+msg.payload+\"\\n\"+\")\";\nreturn msg;","outputs":1,"noerr":0,"x":124,"y":152,"wires":[["ec2d4ccc.7365b"]]},{"id":"c5a42bac.ef9ba","type":"debug","z":"a59a50d2.5a65b","name":"","active":true,"console":"false","complete":"false","x":374,"y":53,"wires":[]},{"id":"f1098e71.8eb9d","type":"inject","z":"a59a50d2.5a65b","name":"inject","topic":"","payload":"Hello World","payloadType":"string","repeat":"","crontab":"","once":false,"x":86,"y":53,"wires":[["945e5f77.182da8","c5a42bac.ef9ba"]]},{"id":"ec2d4ccc.7365b","type":"tcp request","z":"a59a50d2.5a65b","server":"127.0.0.1","port":"4711","out":"time","splitc":"0","name":"","x":356,"y":151,"wires":[[]]}]

Flow Info

Created 9 years, 1 month ago
Updated 6 years, 8 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • function (x1)
  • inject (x1)
  • tcp request (x1)

Tags

  • Minecraft
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option