/
<a href="/mod/mc-matrix-bridge">
</a>
Bridges chat between a Minecraft server and one Matrix room (unencrypted only).
m.text room messages into Minecraft server chat.en_us and zh_cn).mods/ folder (pick the jar matching your loader + Minecraft major).Edit config/minecraftmatrixbridge.toml:
matrix.homeserver (required) e.g. https://matrix.example.commatrix.roomId (required) room ID !abcdef:example.com or room alias #myroom:example.com (the room should not be encrypted)matrix.accessToken (required, or use env variable MATRIX_ACCESS_TOKEN)Optional:
bridge.enableMcToMatrix (default true)bridge.enableMatrixToMc (default true)bridge.announceConnected (default true) announces Matrix room connected: {roomIdOrAlias}bridge.enableJoinLeaveToMatrix (default false) sends {player} joined/left the game to Matrixbridge.enableServerLifecycleToMatrix (default false) sends Server started/stopping to Matrixbridge.mcToMatrixPrefix (default [MC] )bridge.matrixToMcPrefix (default [Matrix] )bridge.matrixBotPrefix (default !mc) Matrix bot command prefix; messages starting with this prefix are treated as bot commands and are not forwarded to Minecraft chatbridge.syncTimeoutMs (default 30000)bridge.timelineLimit (default 20)bridge.maxQueueSize (default 1000)bridge.dedupSize (default 512)Sync state is stored at:
<world>/data/minecraftmatrixbridge/state.jsonOP-only:
/matrix status: show bridge status/matrix reload: reload bridge config/matrix test: send a test message to MatrixMatrix room bot commands (requires bridge.enableMatrixToMc=true):
!mc help (or replace !mc with bridge.matrixBotPrefix)!mc list (replies with online player names; command messages are not forwarded into Minecraft chat)Codex and cursor are used to develop this project.
I appreciate the great mod projects (e.g. Matrix Bridge) that have inspired me to create this project.
The mod is licensed under the AGPL-3.0 license.

A forge mod that bridges chat between a Minecraft server and a matrix room.