My friends and I play on a Minecraft server together and talk on Fluxer, and we wanted the two connected. None of the existing integrations we found worked with Fluxer, so I built a two-way chat bridge over a weekend and handed it to the friend who runs the server.
Messages go both ways. When a player chats in game, the message appears in Fluxer under their name with their Minecraft skin as the avatar. This works because it's sent through a webhook rather than the bot account. Fluxer replies show up in game as [Fluxer] Diego: anyone online?. Typing !players in the channel lists who is online. Joins and leaves, deaths, advancements, /say and datapack messages can be turned on in the config, but they're off by default so the channel only shows the chat people asked for.
The project has three Java modules, built so that the Minecraft side and the Fluxer side don't need to know anything about each other:
- Fabric mod: runs only on the server, so players install nothing. It decides what a server sends, and it has no Fluxer token or channel settings.
- Bridge service: runs in Docker beside the server. It holds the bot token and a routing table that maps servers and message types to channels. One bridge can handle any number of servers and channels.
- Shared protocol: sends one JSON message per WebSocket frame. Each server logs in with a server ID and a shared secret. If the bridge goes down, the mod reconnects on its own and keeps a short queue of messages until it's back.
This split is what made the handoff work. Hosts, ports and channel IDs all live in config, so my friend could set it up on a machine I'd never seen and run it without me. The group was using it the same weekend. The bridge only connects to Fluxer for now, but because the mod never deals with Fluxer directly, adding Discord or another platform would only mean changing the bridge, not rebuilding the mod. The project has unit and end-to-end tests and a CI build on GitHub Actions.