This Mod connects the Minecraft with a discord chat.
The Mod a Discord command integration for the Mods Dimension Access Manager and More MobGriefing Options.
This Mod only works on the server side and won't work on the client side.
You need a server to play with friends? You don't know how to set up one? Just rent an already configured server!
Click on the picture above, select a plan (with recommended at least 6 GB),
use my code agent to get 25% off your first month and enjoy playing with your friends!
Support
Support: Supported Minecraft Versions
New Development and Fixes: 1.19.3
Bug Fixes: 1.18.2
Critical Bug Fixes: 1.17.1, 1.19-1.19.2
End of Support: 1.14.X-1.16.X, 1.18-1.18.1
Features
Minecraft > Discord
Everything written in the Minecraft chat is added to the Discord chat by a Discord bot.
Additional death messages, advancements messages are sent to Discord.
The "say"- and the "me"-command has been changed and sent their messages to Discord too.
Server started and server stopped messages can be customized in the config.
Discord > Minecraft
Every message except from bots are sent to the Minecraft chat.
Bot messages can be sent to the Minecraft chat, if it is activated in the config.
The max length of messages transmitted from Discord to Minecraft can be configured to prevent spam. An error message is shown in the Discord chat, if the message is too long.
Messages, which are commands, are also not sent to the Minecraft chat.
There are default commands added by Discord Integration, custom commands can be added in the config. The command prefix can be configured in the config too.
Minecraft Commands
- /discord commands - shows the list of available commands configured in the Discord Integration with a help message what they do.
- /discord gamerules - shows the values of all Minecraft gamerules.
- /discord mods - shows a list of all mods in the server.
Default Discord Commands
If you type the following commands into the discord chat, you get information from the Minecraft server.
Custom commands can be added in the config.
Commands for Vanilla Minecraft
- !difficulty - shows the difficulty of the server.
- !gamerules - shows the gamerules and their values.
- !help - shows all commands with its description.
- !mods - shows a list of the mods on the server.
- !online - shows how many and which players are on the server.
- !seed - shows the seed of the active world.
- !time - shows the current day time on the server.
- !tps - shows the tps statistic of the server, and it's dimensions.
Commands for the Dimension Access Manager Mod
- !dimensions - shows the access states of all dimensions.
Commands for the More MobGriefing Options Mod
- !mobgriefing - shows all mobgriefing options of the mobs.
Server Config
The config file can be found in the "serverconfig" folder in the "world" folder and is named "discordintegration-server.toml".
- active
Should the Discord integration be active?
Default: false
- bot_token
Token of your Discord bot
Default: INSERT BOT TOKEN HERE
- channel_id
Channel ID where the bot will be working
Default: 0
Available values: 0 or greater
- command_prefix
Command prefix for Discord commands
Default: !
- max_char_count
How long should Discord messages send to Minecraft Chat be at most?
If the value is -1, there is no limit to the length.
Default: -1
Available values: -1 to 2000
- messages
Messages shown on Discord
- server_started
Options for the server start message
- enabled
Should a message be sent to the Discord chat, if the server started?
Default: true
- message
Message send to the Discord chat, if the Minecraft server started.
Default: Server started
- server_stopped
Options for the server stop message
- enabled
Should a message be sent to the Discord chat, if the server stopped?
Default: true
- message
Message send to the Discord chat, if the Minecraft server stopped.
Default: Server stopped
- server_crashed
Options for the server crash message
- enabled
Should a message be sent to the Discord chat, if the server crashed?
Default: true
- message
Message send to the Discord chat, if the Minecraft server crashed.
Default: Server crashed
- player_joined
Options for the player joined message
- enabled
Should a message be sent to the Discord chat, if a player joined?
Default: true
- message
Message send to the Discord chat, if a player joined. (<player name> <message>)
Default: joined the game.
- player_left
Options for the player left message
- enabled
Should a message be sent to the Discord chat, if a player left?
Default: true
- message
Message send to the Discord chat, if a player left the server. (<player name> <message>)
Default: disconnected.
- player_died
Options for the player died message
- enabled
Should a message be sent to the Discord chat, if a player died?
Default: true
- message
Message send to the Discord chat, if a player died. (<player name> <message>) If left empty, the default Minecraft message is send.
- tamed_mob_died
Options for the tamed mob died message
- enabled
Should a message be sent to the Discord chat, if a tamed mob left?
Default: true
- message
Message send to the Discord chat, if a tamed mob died. (<player name> <message>) If left empty, the default Minecraft message is send.
- player_got_advancement
Options for the player got advancement message
- enabled
Should a message be sent to the Discord chat, if a player got an advancement?
Default: true
- message
Message send to the Discord chat, if a player got an advancement. (<player name> <message>) --<advancement title>--<new line>-<advancement description>-
Default: has made the advancement
- other_bots
Options how to deal with other bots
- transmit_bot_messages
Should messages of other bots be sent to the Minecraft chat?
Default: false
- other_bots_command_prefixes
Command prefixes of other bots.
Messages with these prefixes are not sent to the Minecraft chat.
- commands
Command mapping from Discord to Minecraft commands
- discord_command
Discord command without prefix
- minecraft_command
Minecraft command without prefix ('/')
- use_parameters
Should everything attached to the Discord command, be attached to the Minecraft command, too?
- enabled
Should the command be active?
- description
Description for the help command
How to set up a Discord bot and get the bot token
First you have to log into the Discord Developers Site.
Press "New Application" and enter a name for your application.
Go to the "Bot tab" and click "Add Bot". Click onto "Click to Reveal Token" to get the bot token for the config.
To add the bot to a server click on "General Information" and add the "Client ID" into the following link:
https://discordapp.com/oauth2/authorize?client_id=YOUR_BOTS_CLIENT_ID&scope=bot&permissions=3072
**You have to replace YOUR_BOTS_CLIENT_ID by the client ID of your bot.** Open this link and add the bot to one of your server.
You can only add the bot to your own servers. If you want to add the bot to a server, that you don't own, you have to check the "Public Bot" option in the Bot tab and let the server owner add the bot to his/her Discord server.
How to get the channel ID
To get the channel ID you have to go in Discord into the "User Settings" > "Appearance" and have to activate the "Developer Mode" Next you go to the server and channel in which the bot shall operate.
Make a right click on this channel and click "Copy ID" and paste it into the config.
Thanks for the logo to Muse31.
You can use this mod in non-commercial modpacks without asking.
You can find more mods from me here.
Is there anyway to make the bot display the current number of users online when the bot is displayed in the member list? i.e under the bot's name it have it show number online or players playing? I've seen it in a similar mod but that one currently doesn't work for 1.19.2. Just wondering if its possible. Thank you!
Doesn't work
In reply to MonkeMods:
This is a Minecraft Forge mod.
What Minecraft, Minecraft Forge and Mod version are you using?
In reply to GeheimagentNr1:
1.19.2
1.19.2-2.2.1
I forgot the forge version but that part can't go wrong cause Minecraft did start properly I believe it's 43.something
In reply to MonkeMods:
What in specific is not working?
In my test case with Minecraft 1.19.2, Minecraft Forge 43.2.1 and Mod version 2.2.1 everything is working.
the minecraft server doesnt see the chat, it only sends the username and not the message, any help?
I've been trying to figure out why it's not desplaying msgs from discord but I can't figure it out. In game I can only see the person's username like this example. Type this from discord (Devv: example text)This is what it looks like ingame [Devv]
The name appears but with no message. I can type ingame and the msg appears on discord without issues
In reply to Devv73:
What Minecraft, Forge and Mod version are you using?
In reply to GeheimagentNr1:
Minecraft: 1.18.2
Forge: forge-1.18.2-40.1.80
Mod version: DiscordIntegration-1.18.2-2.2.0
In reply to Devv73:
I checked with these versions, but in my test case I can see the message, that I type in Discord, in Minecraft.
Do you use some special characters/letters?
What other mods do you have installed?
In reply to GeheimagentNr1:
Just normal fonts and this is the mod pack I made that's running on my own server https://www.curseforge.com/minecraft/modpacks/exploral
Edit: would i be able to add you on discord to show you something we figured out? my discord is Devv#2717
In reply to Devv73:
For you and anyone scrolling the comments for this very issue, check if you've enabled Message Content Intent under the Privileged Gateway Intents in the bot's application
In reply to GridithMcGriddles:
Thank u, it works now.
Hey, I saw someone commented this before but it was a few months ago, so I'll refrain from necro-ing.I'm also having an issue where I can't find a config file. I looked everywhere for it...I'm using MC 1.19.2 and Forge 43.1.1.Thanks!Edit:
I found it!
It's under world/serverconfig/ for anyone else having trouble.
How far goes the customization of Chat Messages to/from Servers? I would like to try and match the formatting with my other servers I run, and sadly I cannot use emoji icons along with formatted messages to match them because it seems the mod internally adds <player> tags.
EG: :white_square: <player> has joined.
This doesn't happen since the game will throw the emoji after player name.
In reply to Marcus101RR:
Currently, the position of the player name is static. And all messages can only be added after the player name.
In reply to GeheimagentNr1:
Thanks for the response. I decided to go with "Lightman's Discord Integration" as it does exactly as intended and has a nice esthetic look to it.
i never got a config file?
In reply to GhxstKitKat:
Which version of Forge, Minecraft and the mod are you using?
can read chat form advance peripheral and send to discord?