

Nilcord
Активный0.0
Установок
Последнее обновление
Версии
What started as a niche project for a niche modloader for a niche Minecraft version has now been extended to all Minecraft versions (that I personally care about)!
Nilcord | Yet another Discord bridge for Minecraft
Nilcord connects the chat of your Minecraft server to a specified Discord text channel, using a Discord bot and (optionally) webhook.
Installation
To get the mod set up, simply place the mod file in the mods
directory (or nilmods
with NilLoader), start your Minecraft server, and wait for it to generate the config file (and crash because it's not yet populated).
The config file, named nilcord.toml
, is found in the config
folder, and is pretty self-explanatory.
(default configuration)
```toml # Settings pertaining to Discord itself [discord] # The Discord bot token to use # default: EMPTY token = "EMPTY" # The Discord channel ID for the bot to send messages to / receive messages from # default: EMPTY channel_id = "EMPTY" # Settings pertaining to the Discord webhook [discord.webhook] # Whether to use a webhook for sending players' chat messages to Discord # default: false enabled = false # The webhook URL to use # default: EMPTY url = "EMPTY" # Settings pertaining to Minecraft itself [minecraft] # Whether to allow mentioning Discord users from Minecraft # default: false enable_mentions = false # Whether to allow mentioning @everyone and @here from Minecraft # default: false enable_everyone_and_here = false # Whether to show Discord message attachments in-game # default: true show_attachments = true # Whether to show messages from other Discord bots in-game # default: false show_bot_messages = false # Settings pertaining to message formatting [formatting] # Settings pertaining to messages visible in Discord # Available placeholders:(Note that this is the config file for Nilcord 2.1.0+1.20.4+fabric
. It may look different on other versions.)
Only the token
and channel_id
fields (under the discord
category) are strictly required to be filled out; the mod falls back to sensible defaults for everything else. But feel free to change it to your liking!
Notes
For setting up a Discord application (to get a bot token), follow discord.js' guide: Setting up a bot application | discord.js Guide
For finding a Discord channel's "Channel ID", follow Discord's guide: Where can I find my User/Server/Message ID? - Discord
With 1.21.1 and below, the Fabric (and NeoForge!?) versions can also make use of the Simplified Text Format, as well as placeholders supplied by Text Placeholder API and the various mods that support it.
With 1.21.2 and above, the Fabric versions allow using QuickText as well.
The Forge 1.7.10 version has additional support for ChromatiCraft's progression messages, as well as ServerUtilities' AFK messages.
Comments? Questions? Suggestions? Demands? Open an issue on the issue tracker!