Build on BedrockRelay
Add Discord commands to Minecraft worlds with a plugin, or post to Discord from any addon with a script event. Either way, BedrockRelay handles Discord for you: you never need a bot, a token or a webhook.
Two ways to build
| You want to | Use | What you write |
|---|---|---|
Add a Discord command, like /playtime Steve | A plugin | One JavaScript file that BedrockRelay loads inside its pack |
| Post to Discord when something happens in your own addon | Script events | A system.sendScriptEvent call in your existing addon |
Both run in the Minecraft world with the ordinary Minecraft Script API, on a Bedrock Dedicated Server or a Realm. BedrockRelay registers a plugin's commands in Discord, checks who may use them, and delivers the answers. Script events need nothing from BedrockRelay except that it's in the world.
Writing a plugin
Your first pluginOne file, one Discord command, running in five minutes.
Plugin referenceEvery field of a plugin, its commands and their options.
Answers and contextWhat run() returns: text, embeds, player heads, pictures and errors.
Posting to DiscordPost without being asked, to the channels the owner picks.
Menus in gameA page in the /relay menu, with forms players fill in.
Live boardsAn answer kept in a channel that updates itself.
How plugins runFrom loading in the world to an answer in Discord.
Servers and Realms
Sharing a plugin
Other addons
Questions, or an idea for the plugin format? Talk to us on the Discord support server.
Discord support