Перейти к содержимому

Matrix Bridge

Соедини чаты Minecraft и Matrix вместе!

FabricBTA (Babric)
Загрузчики
FabricBTA (Babric)
Скачиваний на Modrinth
2,7 тыс.
Подписчиков на Modrinth
14
версий
20
Обновлён
20 сентября 202620 сент.
Опубликован
в 2023

Коротко о моде

Работает на Fabric и BTA (Babric)
Для Minecraft 1.20–1.21.8, 26.1–26.3 …
Ставится только на сервер; игрокам ставить не нужно
Последняя версия — 1.5-BETA1 от 20 сентября 2026
Лицензия GPL-3.0-only — бесплатно
Где нужен
В игрене нуженНа сервереобязателен

Ставится только на сервер; игрокам ставить не нужно

Версии игры1.19.2, 1.20–1.21.8, 26.1–26.3 …
Описание переведено автоматическиПоказать оригинал (EN)

🎉 Бета-версии для 26.1, 26.2 и 26.3 уже доступны

👉 Если вам нужна помощь, обращайтесь в нашу Matrix Room

🔥 Нужна версия для Forge? Загляните в MC Matrix Bridge!

⚠️ Fabric Language Kotlin (FLK) БОЛЬШЕ НЕ ТРЕБУЕТСЯ для v1.5 и выше. v1.4 и более ранние несовместимы с версиями FLK новее 1.13.3+kotlin.2.1.21

☕ Версии для 'Better Than Adventure' требуют Java 11 или новее. Для v1.4 и более ранних необходимо переопределение зависимости Fabric Language Kotlin (FLK). Подробнее ниже.

Matrix Bridge

Matrix Bridge позволяет связать чат сервера Minecraft с комнатой Matrix. Этот мод даёт пользователям Matrix возможность общаться с игроками Minecraft, не заходя в мир Minecraft.

Этот мост отправляет сообщения о запуске сервера, остановке сервера, входе игрока, выходе игрока, смерти игрока и чате игроков. Также мост включает команды '!list', '!ping' и '!invite', которые позволяют пользователям со стороны Matrix получить список игроков, пропинговать сервер и добавить игрока в вайтлист соответственно.

Этот мод использует вход по паролю и поддерживает зашифрованные комнаты и верификацию сессии. Кроме того, доступен конфигурационный файл на основе YAML, а также поддержка различных баз данных, включая H2 (по умолчанию), MariaDB и PostgreSQL.

Этот мод будет портирован на разные версии игры по запросу. Если вы хотите оставить отзыв, запросить новый порт или вам нужна общая помощь, присоединяйтесь к нашей комнате поддержки.

Matrix Bridge построен на MatrixSDK, который использует Trixnity.

Конфигурация

Спойлер

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

</details>



# Better Than Adventure

Убедитесь, что используете Java 11 или новее, иначе мод упадёт на Java 8.

Начиная с 2025-08-06 необходим override зависимостей для Fabric Language Kotlin (FLK). FLK требует Fabric Loader 0.16.9+, который недоступен для BTA Babric. Такая новая версия FLK нужна для поддержки последних функций Matrix (например, room v12).

Пожалуйста, поместите следующий файл в директорию config вашего сервера.


<details>
<summary>Спойлер</summary>

**fabric_loader_dependencies.json**

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


</details>

Частые вопросы

Как установить Matrix Bridge?

Установите Fabric под свою версию Minecraft, скачайте Matrix Bridge под ту же версию и загрузчик, положите файл в папку mods и запустите игру с профилем загрузчика.

Для каких версий Minecraft есть Matrix Bridge?

У Matrix Bridge есть сборки для Minecraft 1.18.2, 1.19.2, 1.20–1.21.8, 26.1–26.3.

Нужен ли Matrix Bridge на сервере?

Ставится только на сервер; игрокам ставить не нужно

Лицензия и источник
GNU General Public License v3.0 onlyможно использовать и распространять; изменённые версии — под той же лицензией и с исходным кодом
Оригинал — Modrinth↗Файлы — без изменений, проверены по SHA-512Это ваш мод? Правообладателям

Сайт использует cookie: необходимые — для входа и темы, а также счётчики посещений Яндекс Метрика и LiveInternet — по ним мы видим, как пользуются сайтом. Рекламных cookie у нас нет. Подробнее