Pluggable Minecraft and Vintage Story server bridge and administration tools.
Acquire a prebuilt binary from the releases page and place it in your PATH as telecraft
.
If you want to build telecraft from source, you will need to have Deno installed. You can then clone the repository and run the following command:
deno compile -A --unstable-kv --output telecraft packages/cli/index.ts
Having child process permission already means telecraft can do everything. This is a required permission because telecraft will spawn your game server. Additionally, telecraft may need to open various files (config, database, network). -A
grants all permissions, for simplicity.
--unstable-kv
is required for Deno.Kv store.
Create a config file with at least the following options:
{
"launch": "/usr/bin/env java -Xmx4096M -Xms1024M -jar /path/to/server.jar nogui",
"parser": "vanilla",
"version": "1.19"
}
Save it as telecraft.json
and run:
telecraft
This will launch a vanilla Minecraft server with 4GB of RAM allocated, parsing its stdout as Minecraft 1.19.
By itself the above steps do almost nothing other than run the game server. All functionality is in the plugins. You can add a plugins array to your config. The following enables bi-directional bridge with a Telegram chat:
"plugins": [
{
"name": "telegram",
"token": "1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
"chatId": -1001234567890,
"allowList": true
}
]
Now that you know how to run telecraft, you can read the config options to learn more about what you can do with it.