An open API service indexing awesome lists of open source software.

https://github.com/crunnna/blocketing-mod

Syncs chat and commands between Discord and Minecraft
https://github.com/crunnna/blocketing-mod

blocketing chat communication discord discord-bot fabric fabric-mod java minecraft mod

Last synced: 9 months ago
JSON representation

Syncs chat and commands between Discord and Minecraft

Awesome Lists containing this project

README

          


Icon

Blocketing

Blocketing is a Fabric mod for seamless communication between a Discord channel and a Minecraft server, enabling bidirectional message synchronization and command execution.

[![Environment](https://img.shields.io/badge/Environment-Server-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AYht+malUqDnYQEclQneyiIo6likWwUNoKrTqYXPoHTRqSFBdHwbXg4M9i1cHFWVcHV0EQ/AFxdnBSdJESv0sKLWI8uLuH97735e47QGhUmGp2RQFVs4xUPCZmc6ti4BU9CKCP1jGJmXoivZiB5/i6h4/vdxGe5V335xhQ8iYDfCJxlOmGRbxBPLtp6Zz3iUOsJCnE58STBl2Q+JHrsstvnIsOCzwzZGRS88QhYrHYwXIHs5KhEs8QhxVVo3wh67LCeYuzWqmx1j35C4N5bSXNdZqjiGMJCSQhQkYNZVRgIUK7RoqJFJ3HPPwjjj9JLplcZTByLKAKFZLjB/+D3701C9NTblIwBnS/2PbHOBDYBZp12/4+tu3mCeB/Bq60tr/aAOY+Sa+3tfARMLgNXFy3NXkPuNwBhp90yZAcyU9TKBSA9zP6phwwdAv0r7l9a53j9AHIUK+Wb4CDQ2CiSNnrHu/u7ezbvzWt/v0ATphymIBZ6aQAAAAGYktHRAAKAAwAGd6C8noAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfoBgcOHRYlcgoRAAABRklEQVR42u2YMUoDQRRAX0axUzCteIZ4hKn0FDmFhalSWKkgnkHt9AQWwhzBNr2tBGNno82ACwm6EZvxvwdTzP8s7P8zu8w8EJHIDABKKfvAFXAIbP/zmt+AR2CSc54NavFPwDDY4s+B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FJOUwBA5thmAAAAAWJLR0QB/wIt3gAAAF5JREFUGNN10FENwCAMhOFqOQuzMAtYOAtYqGw6mkEvhL59yR9Ca5YDqyOC465eKYqQm6LoCkVwnwQOBYKdeA5l51zhFtrsnPmg6m3Z2akk15dFH1lWFQVxlUFv+2sAJlA9O7NwQRQAAAAASUVORK5CYII=)](https://fabricmc.net/)

[![Modrinth downloads](https://img.shields.io/modrinth/dt/WQAfq7OC?label=Modrinth%20downloads&logo=modrinth)](https://modrinth.com/mod/blocketing)
[![GitHub downloads](https://img.shields.io/github/downloads/crunnna/blocketing-mod/total?label=Github%20downloads&logo=github)](https://github.com/crunnna/blocketing-mod/releases)


Minecraft chat with Discord integration



Discord channel with Minecraft events



Discord-Channel with Minecraft events & status

---

## ๐Ÿ“š Table of Contents
- [Features](#-features)
- [Installation](#-installation)
- [Permissions](#-permissions)
- [Configuration](#-configuration-commands)
- [Player-Chat Webhook Mode](#-player-chat-webhook-mode)
- [Need Help?](#-need-help)

---

## โœจ Features
- โœ… Syncs Minecraft and Discord messages in both directions ๐Ÿ’ฌ
- โœ… Join/Leave notifications with player avatars ๐Ÿ–ผ๏ธ
- โœ… Server start/stop announcements ๐Ÿš€
- โœ… Toggle sending advancement and death messages to Discord ๐Ÿ†
- โœ… Run Minecraft commands from Discord (permission-based) ๐Ÿ› ๏ธ
- โœ… Player chat webhook mode (with avatar & name) ๐Ÿ‘จ
- โœ… In-game configuration via commands ๐ŸŽฎ
- โœ… Update notifications for new mod versions ๐Ÿ””
- โœ… Paginated player list and server status via Discord slash commands ๐Ÿ“Š
---

## ๐Ÿš€ Installation
### ๐Ÿ”จ 1. Install the Mod
1. **Download the latest .jar** from the [Releases Page](https://github.com/crunnna/blocketing-mod/releases).
2. **Place the `.jar` file in your serverโ€™s `mods/` folder**.
3. **Start the Minecraft server** with **Fabric**.
4. **Configure the bot** using the in-game commands (see below).

### ๐Ÿค– 2. Set up the Discord Bot
- **Create a new Discord bot application** in the **[Discord Developer Portal](https://discord.com/developers/applications)**.
- **Add** the bot to your Discord server.
- **Copy** the **`bot token`** for later configuration.

---

## ๐Ÿ›ก๏ธ Permissions
- **Minecraft**: `/blocketing` commands require permission **level 4 (OP)**.
- **Discord**: For `/console` via Discord, the user must have the configured **OP role** (if set).

---

## โš™๏ธ Configuration Commands

All configuration is done in-game using `/blocketing` commands (OP only):

### Setup Discord Integration

- `/blocketing setup token `
Set the Discord bot token.
- `/blocketing setup guild `
Set the Discord server (guild) ID.
- `/blocketing setup channel `
Set the Discord channel ID for message sync.
- `/blocketing setup op_role `
Set the Discord role ID required to run `/console` from Discord.
- `/blocketing setup webhook_url `
Set the Discord webhook URL for player chat webhook mode.
- `/blocketing setup`
List available setup commands.

### Feature Toggles

- `/blocketing toggle advancements`
Enable/disable sending advancement messages to Discord.
- `/blocketing toggle deaths`
Enable/disable sending death messages to Discord.
- `/blocketing toggle player_chat_mode`
Enable/disable player chat webhook mode (uses webhook for chat, with player avatar and name).
- `/blocketing toggle update-info`
Enable/disable update notifications for new mod versions.
- `/blocketing toggle discord_chat_log`
Enable/disable logging of Discord chat messages to the server console.
- `/blocketing toggle`
List available toggles.

### Other Commands

- `/blocketing reload`
Reload the configuration and restart the Discord bot.

---

## ๐Ÿ‘ฅ Discord Slash Commands

- `/status`
Show server status (TPS, MSPT, CPU, RAM, uptime, version).
- `/players`
Show online players (paginated, with navigation buttons).
- `/console `
Run a Minecraft command from Discord (requires OP role if set).

---

## ๐Ÿ’ฌ Player-Chat Webhook Mode

When enabled, Minecraft chat messages are sent to Discord using a webhook, displaying the player's name and avatar.
To enable, set a webhook URL and use `/blocketing toggle player_chat_mode`.

---

## ๐Ÿ”” Notifications

- **Join/Leave**: Player join/leave events are announced in Discord with player avatars.
- **Advancements/Deaths**: Advancement and death messages can be toggled.
- **Server Start/Stop**: Server start/stop events are announced in Discord.
- **Update Info**: OPs and Discord can be notified when a new mod version is available.

---

## โ“ Need Help?

Feel free to ask questions or open an [issue](https://github.com/crunnna/blocketing-mod/issues).

---