Set up a Minecraft world
discord-mcbe provides two add-ons for different environments. Both must be installed as behavior packs in the world.
discord-mcbe addon v4.0.0
Import directly into Minecraft
Install manually into the server directory
Regular (local) world
Section titled “Regular (local) world”-
Download the mcpack under Regular hosted world above.
-
Open the mcpack with Minecraft, then activate
discord-mcbe local clientunder the world’s Behavior Packs. -
The pack uses beta Script APIs. Enable Beta APIs under
World Settings > Experiments. -
Start the discord-mcbe server. The terminal prints instructions similar to:
ターミナルウィンドウ [Local] SocketBridge server is listening on port: 3063[Local] Enter one of the following commands in Minecraft to connect:Local: /connect localhost:3063Network: /connect 192.168.11.7:3063 Wi-FiAs the player hosting the world, run the displayed command in Minecraft. Choose
Localwhen connecting from the same device, orNetworkwhen connecting from another device. -
The setup is complete when both Minecraft and Discord display the world connection message.
Bedrock Dedicated Server
Section titled “Bedrock Dedicated Server”-
Download the zip under Bedrock Dedicated Server above.
-
Extract the behavior pack into the BDS
development_behavior_packsdirectory or the world’sbehavior_packsdirectory. Editworld_behavior_packs.jsonto enable it for the world. You can instead apply the mcpack to a world in a Minecraft client, then move that world to BDS. -
Enable Beta APIs because the pack uses beta Script APIs. You can edit
level.datdirectly or open the world once in Minecraft before moving it to BDS. If you prefer a tool, see bds-utils. -
Confirm that
@minecraft/server-netis included in theallowed_moduleslist in BDS’sconfig/default/permissions.json. If it is not listed, add it. -
Start discord-mcbe first, then start BDS. When both run on the same machine with the defaults, the add-on connects to
localhost:23191over WebSocket automatically. Do not run/connect. -
Confirm that the discord-mcbe log contains
[BDS] Bridge server is listening on port: 23191followed by the world connection message.
Change the world name
Section titled “Change the world name”When selecting a world with Discord commands or connecting multiple worlds, discord-mcbe uses the world name to identify each world.
When connecting multiple worlds at once, use unique names such as lobby or survival.
The default world names are World / Server. Run the following command in the world to change its name.
/dmc:setnameAfter changing the world name, restart the bot or disconnect with /dmc:disconnect and reconnect.