Bram van den Heuvel 928c971193 | ||
---|---|---|
lua | ||
lua-json@261adde7a7 | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
config.lua | ||
init.lua | ||
mod.conf |
README.md
mt-matrix
This repository serves as a bridge between Matrix and Minetest servers.
Setup
- Clone this repository into your Minetest mods folder:
git clone --recursive https://git.noordstar.me/Bram/mt-matrix.git
- To access the Matrix homeserver, this mod needs access to HTTP calls. Add this mod to your
minetest.conf
settings at the fieldsecure.http_mods
:
# Comma-separated list of mods that are allowed to access HTTP APIs, which
# allow them to upload and download data to/from the internet.
# type: string
secure.http_mods=mt_matrix
- Fill in the values in
config.lua
:
config = {
-- The user one expects to log in as
user = "@alice:example.org",
-- The URL where the user communicates with the Matrix homeserver
url = "https://matrix.example.org",
-- Room ID that the Minetest server bridges to
room_id = "!room_id:example.org",
-- Access token to access the Matrix homeserver
access_token = "",
-- Average timeout duration
sync_timeout = 30
}
- Add the mod to your world configuration.
Now you're good to go! Feel free to create issues or send me a message.