All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Matrix Bridge

Matrix Bridge

by SoftlySophie • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

🎉 Beta versions for 26.1, 26.2 and 26.3 now available

👉 If you need any assistance, please reach out in our Matrix Room

🔥 Need a version for Forge? Check out MC Matrix Bridge!

⚠️ Fabric Language Kotlin (FLK) is NO LONGER REQUIRED for v1.5 & up. v1.4 & prior are incompatible with FLK versions newer than 1.13.3+kotlin.2.1.21

☕ 'Better Than Adventure' versions require Java 11 or newer. Dependency override for Fabric Language Kotlin (FLK) is necessary for v1.4 & prior. More information available below.

Matrix Bridge

Matrix Bridge allows users to bridge a Minecraft server's chat with a Matrix room. This mod enables Matrix users to talk with Minecraft players, without logging into the Minecraft world.

This bridge will send server start, server stop, player join, player leave, player death and player chat messages. This bridge also includes bridge commands '!list', '!ping' and '!invite', which allows Matrix-side users to retrieve a player list, ping the server and whitelist a player respectively.

This mod uses password-based login, and supports encrypted rooms and session verification. Additionally, a YAML-based configuration file is available, alongside support for various databases including H2 (default), MariaDB and PostgreSQL.

This mod will be ported to different game versions as requested. Should you wish to submit feedback, request a new port or otherwise need general assistance, please join our support room.

Matrix Bridge is built on MatrixSDK, which uses Trixnity.

Configuration

Spoiler

config.yaml

# +---------------------------------------------------+
# |                                                   |
# |            Matrix Bridge Configuration            |
# |                                                   |
# +---------------------------------------------------+
# Please ensure that all values follow the YAML standard.
# Indentation is important! Tabs are not allowed.
# Refer to "https://www.tutorialspoint.com/yaml/" for a detailed explanation.
# 
# Improperly set values will default. Integers -> 0, Booleans -> false, Verify Type -> DISABLED, Database Type -> H2.
# Please ensure your values are set properly!
# 
# This file is never modified. This file is only written to when it is being generated.
# This file is comment-safe. They will not disappear.
# 
# If you need assistance, please join our Matrix room "https://matrix.to/#/#sophie.projects:aenead.net".
# Thank you! <3

# DO NOT MODIFY. Used to detect when you need to update config.
version: 2

# Reveals Trixnity log messages. Useful for debugging.
verbose: false





# +---------------------------------------------------+
# |                                                   |
# |                      Account                      |
# |                                                   |
# +---------------------------------------------------+
# Settings used to sign in to the bot account.
account:

  # Synapse URL. Supports delegation.
  homeserver: "https://matrix.example.org"

  # Account login username. Localpart of user's MXID.
  username: "user"

  # Account login password. Does not support tokens or SSO.
  password: "pass"

  # Bridge session device name.
  device_name: "Matrix-Minecraft Bridge"

  # Internal ID of room to send messages to.
  room: "!sdfDsdfsA:matrix.example.org"





# +---------------------------------------------------+
# |                                                   |
# |                    Verification                   |
# |                                                   |
# +---------------------------------------------------+
# Settings used to enable session verification and encryption.
verification:

  # Either KEY, PASSPHRASE or DISABLED. All other values will be rejected.
  type: "KEY"

  # Token (either a key or passphrase) to verify bridge session.
  token: "AaAA aaAa AAaa..."





# +---------------------------------------------------+
# |                                                   |
# |                      Database                     |
# |                                                   |
# +---------------------------------------------------+
# Settings used for database configuration.
database:

  # Either H2, SQLITE, MARIADB or POSTGRESQL. All other values will be rejected. Default is H2.
  type: "H2"

  # Name of database. If type is H2 or SQLITE, represents file name. Otherwise, represents database to connect to.
  name: "database"

  # Host and port to connect to database.
  hostname: "localhost:3306"

  # Database login username. Only used with MARIADB and POSTGRESQL.
  username: "user"

  # Database login password. Only used with MARIADB and POSTGRESQL.
  password: "pass"





# +---------------------------------------------------+
# |                                                   |
# |                      Commands                     |
# |                                                   |
# +---------------------------------------------------+
# Settings for bridge commands.
commands:

  # '!list' command. Lists online players. Supported placeholders: %players%
  list:
    format: "📜 Online players: %players%"
    enabled: true

  # '!ping' command. Bridge prints message to ensure connection.
  ping:
    format: "🏓 Pong!"
    enabled: true

  # '!invite' command. Whitelists a player. Supported placeholders: %player%
  invite:
    format:
      success: "🔵 '%player%' has been whitelisted!"
      error: "🔵 '%player%' could not be found. Usage: !invite <username>"
      already: "🔵 '%player%' is already whitelisted!"
    enabled: false

  # Message sent to Matrix when a performed command is invalid. Supported placeholders: %commands%
  invalid_command: "⛔ Command not found! Available commands: %commands%"

  # Message sent to Matrix when a performed command is disabled.
  disabled_command: "⛔ Command disabled! Please contact an administrator."





# +---------------------------------------------------+
# |                                                   |
# |                      Messages                     |
# |                                                   |
# +---------------------------------------------------+
# Message formats! Some messages use placeholders. Available placeholders are stated in the comments.
# Available placeholders: %player%, %message%, %commands%
messages:

  # Message sent when the server starts.
  start:
    format: "❇ Server started"
    enabled: true

  # Message sent when the server stops.
  stop:
    format: "🛑 Server stopped"
    enabled: true

  # Chat message format as viewed in Minecraft. Supported placeholders: %player%
  chat_matrix_to_minecraft:
    format: "[§e%player%§r] "
    enabled: true

  # Chat message format as viewed on Matrix. Supported placeholders: %player%
  chat_minecraft_to_matrix:
    format: "<%player%> "
    enabled: true

  # Message sent to Matrix when a player joins the server. Supported placeholders: %player%
  player_join:
    format: "🔹 %player% joined the game"
    enabled: true

  # Message sent to Matrix when a player quits the server. Supported placeholders: %player%
  player_quit:
    format: "🔹 %player% left the game"
    enabled: true

  # Message sent to Matrix when a player dies. Supported placeholders: %message%
  player_death:
    format: "🪦 %message%"
    enabled: true

  # Message sent to Matrix when a player makes an advancement. Supported placeholders: %player%, %advancement%
  player_advancement:
    format: "🎉 %player% has made the advancement '%advancement%'!"
    enabled: true

Better Than Adventure

Please ensure that you are using Java 11 or newer, as this mod will crash on Java 8.

As of 2025-08-06, a dependency override for Fabric Language Kotlin (FLK) is necessary. FLK requires Fabric Loader 0.16.9+, which is unavailable for BTA Babric. Such a new version of FLK is required to support the most recent Matrix features (such as room v12).

Please place the following file in your server's config directory.

Spoiler

fabric_loader_dependencies.json

{
  "version": 1,
  "overrides": {
    "fabric-language-kotlin": {
      "-depends": {
        "fabricloader": "IGNORED"
      }
    }
  }
}

How to Install Matrix Bridge (Mod)

Matrix Bridge by SoftlySophie is verified for Bta-babric, Fabric across Minecraft versions 1.18.2, 1.19.2, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5 (latest release: 1.5-BETA1, file size: 47.0 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.18.2, 1.19.2, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5) and platform (Bta-babric, Fabric).
  2. Make sure you have the compatible loader or environment installed for Bta-babric, Fabric.
  3. Move the downloaded Matrix Bridge file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
2mo ago 1
26.2 26.1.x
Fabric
2mo ago 1
b1.7.3
Bta-babric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
b1.7.3
Bta-babric
last yr. 1
1.21.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
[1.5-BETA1] 1.5-BETA1 by SoftlySophie on Sep 20, 2026
Download
  • Removed dependency on Fabric Language Kotlin
  • Updated Trixnity to 5.9.1, supporting up to Matrix 1.18
  • Removed SQLite support; please use H2 instead
  • Temporarily removed MariaDB support; will be re-added in future. Removed due to critical bug in Trixnity.
[1.5-BETA1] 1.5-BETA1 by SoftlySophie on Sep 14, 2026
Download
  • Removed dependency on Fabric Language Kotlin
  • Updated Trixnity to 5.9.1, supporting up to Matrix 1.18
  • Removed SQLite support; please use H2 instead
  • Temporarily removed MariaDB support; will be re-added in future. Removed due to critical bug in Trixnity.
[1.4_01] [7.3_04] 1.4_01 by SoftlySophie on Nov 06, 2025
Download
### Bug Fixes
  • Player nicknames are now properly bridged.
  • Fixed death message for when a player was killed by a creeper.
[1.4] [1.20.2-1.20.6] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • Advancements are now broadcast to Matrix.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.4] [1.20-1.20.1] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • Advancements are now broadcast to Matrix.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.4] [1.19.2] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • Advancements are now broadcast to Matrix.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.4] [1.18.2] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • Advancements are now broadcast to Matrix.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.4] [7.3_04] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.4] [1.21-1.21.8] 1.4 by SoftlySophie on Aug 06, 2025
Download
_Existing configs are incompatible. Please run the bridge once to generate the new 'config.yaml'._


### New Features

  • Migrated config file to YAML and added comments.
  • Expanded configuration options. Each bridge command can be disabled.
  • Added management commands. '/matrixbridge'.
  • 'reload', reloads config.
  • 'setname \<name>', sets bridge bot user name.
  • 'room \[join|leave\] \<roomid>', join or leave a room.
  • Support for additional databases. Bridge supports H2, SQLite, MariaDB and PostgreSQL.
  • Advancements are now broadcast to Matrix.
  • All message events can be individually disabled.
  • Added error message if bot is unable to send messages in configured room.
  • Added error message if configured room does not exist.
  • Added error message if bot has not been invited to configured room.
  • Added error message when connection to homeserver is lost, and when it is restored.


### Changes

  • Update dependencies. Supports room version 12.
  • Invite bridge command is now disabled by default.
  • Config options 'player\_join' & 'player\_leave' default emoji changed to '🔹'.
  • Config option 'invalid\_command' now supports '%commands%' tag.
  • Config option 'whitelist\_error' default changed to include usage example.
  • Config option 'list' now supports '%players%' tag
  • Config options for command toggles/messages amalgamated
  • Reduced console spam when verbose is disabled.


### Bug Fixes

  • Merged fix-broadcast-exception (Kira, @daxvena) to fix null server race condition.
  • Private messages are no longer bridged.
  • First run restart requirement has been removed.
  • Server no longer freezes if homeserver URL is improperly configured. Timeout after 10s.
  • Messages from previous server run sessions are no longer sent.
  • Session is recreated if refresh token is invalid.
[1.3] [1.20.2-6] 1.3 by SoftlySophie on Feb 12, 2025
Download
  • Update to 1.20.2. Confirmed to be compatible with all versions 1.20.2-1.20.6
  • Bot login is now password-based
  • Encrypted room support
  • Session verification support (using key or passphrase)
  • Sessions are now stored to speed up start time and allow encryption/verification support
  • Bot automatically joins rooms it's invited to
  • Delegation support. E.g., can use only 'https://example.net' instead of 'https://synapse.example.net'
  • First implementation of useful error messages
[1.3] [1.20.0-1] 1.3 by SoftlySophie on Feb 12, 2025
Download
  • Backport to 1.20. Confirmed to be compatible with all versions 1.20.0-1.20.1.
  • Bot login is now password-based
  • Encrypted room support
  • Session verification support (using key or passphrase)
  • Sessions are now stored to speed up start time and allow encryption/verification support
  • Bot automatically joins rooms it's invited to
  • Delegation support. E.g., can use only 'https://example.net' instead of 'https://synapse.example.net'
  • First implementation of useful error messages
[1.3] [1.18.2] 1.3 by SoftlySophie on Feb 12, 2025
Download
  • Update to 1.18.2
  • Bot login is now password-based
  • Encrypted room support
  • Session verification support (using key or passphrase)
  • Sessions are now stored to speed up start time and allow encryption/verification support
  • Bot automatically joins rooms it's invited to
  • Delegation support. E.g., can use only 'https://example.net' instead of 'https://synapse.example.net'
  • First implementation of useful error messages
[1.3] [1.21.x] 1.3 by SoftlySophie on Feb 12, 2025
Download
  • Update to 1.21. Confirmed to be compatible with all versions 1.21.0-1.21.4
  • Bot login is now password-based
  • Encrypted room support
  • Session verification support (using key or passphrase)
  • Sessions are now stored to speed up start time and allow encryption/verification support
  • Bot automatically joins rooms it's invited to
  • Delegation support. E.g., can use only 'https://example.net' instead of 'https://synapse.example.net'
  • First implementation of useful error messages
[1.2] [1.21] 1.2 by SoftlySophie on Jul 21, 2024
Download
Ported to 1.21
[1.2] [1.20.4] 1.2 by SoftlySophie on Feb 09, 2024
Download
  • Updated dependencies
  • Minimum Fabric version is now 0.95.4
  • Added config option to change the format of a player chat message to Matrix
Matrix Bridge Icon
Download Matrix Bridge
Select game version
Select platform