HomeJavaModsFaga's Discord Bridge
Faga's Discord Bridge
ModsJava

Faga's Discord Bridge

by guilhermefaaga · on Modrinth

MC Discord Bridge is a server-side NeoForge mod that links Minecraft 1.21.x and Discord with event logs, /mc chat relay, account linking, and leaderboards.

⬇ Download on Modrinth
Faga's Discord Bridge — screenshot 1Faga's Discord Bridge — screenshot 2Faga's Discord Bridge — screenshot 3

Features

Discord Bot Permissions

Bot permissions:

Configuration

First run creates config/mcdiscordbridge-common.toml.

# Discord bot token or env:DISCORD_BOT_TOKEN
discordApiKey = "env:DISCORD_BOT_TOKEN"

# Only messages from this guild are accepted
whitelistGuildId = "123456789012345678"

# Discord channel for chat bridge
chatChannelId = "123456789012345678"

# Discord channel for admin logs
adminLogChannelId = "123456789012345678"

# Legacy toggle for text-message relay mode (slash command `/mc` does not require this)
enableMessageContentIntent = false

# Send Discord embeds for richer event logs
enableEmbeds = true

# Hex color for embeds, for example #57A5FF
embedColorHex = "#57A5FF"

# Include player head thumbnail in embeds when UUID is available
includePlayerHeadInEmbeds = true

# URL template with %uuid% placeholder
playerHeadUrlTemplate = "https://crafatar.com/avatars/%uuid%?size=128&overlay"

# Rotate bot activity text from botActivities
enableBotActivityRotation = true
botActivities = ["Watching the server", "Bridging chat", "Tracking events"]
botActivityRotateSeconds = 20

# PLAYING, WATCHING, LISTENING, COMPETING
botActivityType = "WATCHING"

# Send day milestone message every N minecraft days (0 disables)
dayMilestoneGap = 10

# Enable Discord account linking to Minecraft players
enableAccountLinking = true

# How long link codes remain valid
linkCodeExpirySeconds = 600

# Length of one-time account link code
linkCodeLength = 6

Token via environment variable

Set:

export DISCORD_BOT_TOKEN="your_token"

Then set in config:

discordApiKey = "env:DISCORD_BOT_TOKEN"

Setup

In your whitelisted Discord server, run /config with one or more of:

Only Discord admins can run /config.

Account Linking

Discord to Minecraft Relay

Leaderboard

Notes

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more