
CursedAddons
A chat utility mod for Minecraft Fabric 1.21
📖About CursedAddons
CursedAddons
Description
CursedAddons is a Minecraft Fabric mod that enhances chat functionality with keybindings, aliases, chat notifiers, and the ability to view onClick actions for rich messages.
Features
- Command Keybindings: Define custom hotkeys and key combinations (e.g., Shift+F1) to instantly send predefined chat messages or commands.
- Command Aliases: Create shortcuts for frequently used commands or messages (e.g.,
/s→/sayor/about→Hello, my name is John Smith). - Click Events Preview: When hovering over clickable text in chat, preview what actions will occur (opening URLs, running commands, copying to clipboard, etc.) before clicking.
- Image Hover Preview: Preview images directly in chat by hovering over image URLs. Supports PNG, JPG, GIF, and WebP with domain whitelisting.
- Chat Notifications: Set up custom notifications for specific chat messages using string matching or regex patterns. Notifications can play sounds, set window titles, or execute commands when triggered.
- Fake Chat Messages: Send custom formatted messages to chat using tellraw JSON syntax, including colors, links, and interactive elements.
- Fixes MC-122477: Fixes a bug on Unix systems where the key to open commands and/or chat can sometimes be doubled when pressed.
Installation
Prerequisites
- Minecraft Java Edition
1.21.10(currently supported; future versions may be supported in updates) - Fabric Loader
0.18.2or newer - Fabric API
0.138.3+1.21.10or newer
Steps
- Install Fabric Loader: If you haven't already, download and install the Fabric Loader for Minecraft
1.21.10from the Fabric website. - Download Fabric API: Download the Fabric API for
1.21.10from its Modrinth page. - Download CursedAddons
- Place Mods in
modsfolder:- Locate your Minecraft installation directory.
- Navigate to the
modsfolder. If it doesn't exist, create one. - Place the downloaded
fabric-api-*.jarandcursedaddons-*.jarfiles into themodsfolder.
- Launch Minecraft: Start the Minecraft launcher, select the Fabric profile, and launch the game.
Usage
Configuration
CursedAddons can be configured through its configuration screen, accessible in two ways:
- Via ModMenu: If you have ModMenu installed, go to Mods → CursedAddons → Config
- Via Command: Type
/cursedaddonsin chat to open the configuration screen
Features Configuration
Command Keybindings
This feature allows you to create macros that send chat messages or commands when you press specific key combinations.
- In the config screen, ensure "Enable Command Keybindings" is checked
- Click "Command Keybindings" to manage your macros
- Click "New Rule" to add a macro
- Configure each macro:
- Key: Choose the main key (e.g., F1, F2, Numpad 0, X, etc.)
- Combination Key: Select a modifier (Shift, Ctrl, Alt) or "NONE" for single key press
- Command: Enter the chat message or command to send (e.g., "/say Hello World!" or "Hello everyone!")
- Enabled: Check to activate the macro
- Save and exit the config screen
Example: Set Shift+F1 to send "/say Hello everyone!"
Command Aliases
This feature allows you to create shortcuts for commands or messages, expanding them when you type in chat.
- In the config screen, ensure "Enable Command Aliases" is checked
- Click "Command Aliases" to manage your aliases
- Click "New Alias" to add an alias
- Configure each alias:
- Alias: The shortcut you type (e.g.,
/s) - Command: What it expands to (e.g.,
/say) - Enabled: Check to activate the alias
- Alias: The shortcut you type (e.g.,
- Save and exit the config screen
Examples:
/s hello→/say hello(command expansion)/about→this is a message about something(text message)
Click Events Preview
This feature shows a preview of what will happen when you click on interactive text in chat.
- In the config screen, check "Enable Click Events Preview"
- When hovering over clickable text in chat, you'll see a tooltip showing:
- URLs that will open
- Commands that will run
- Text that will be suggested or copied
- Other interactive actions
This helps you verify links and commands before clicking them.
Image Hover Preview
This feature displays image previews when hovering over image URLs in chat.
- In the config screen, check "Enable Image Hover Preview"
- Click "Open Domain Whitelist" to manage allowed domains
- Add trusted domains (e.g.,
imgur.com,i.redd.it) - Hover over any clickable* image URL from whitelisted domains to see a preview
- Supports PNG, JPG, JPEG, GIF (animated), and WebP formats
-# *note: Currently only supports images that are clickable with a formatting attribute of open_url.
Security Note: Only images from whitelisted domains will be previewed. This helps prevent leaking your IP if someone used an ip logger image link.
Chat Notifications
This feature allows you to set up automatic notifications for specific chat messages using string matching or regex patterns.
- In the config screen, ensure "Enable Chat Notifications" is checked
- Click "Chat Notifications" to manage your notification rules
- Click "New Notification" to add a rule
- Configure each notification:
- Pattern: The text or regex pattern to match in chat messages
- Use Regex: Check if the pattern should be treated as a regular expression
- Play Sound: Check to play a sound when matched, and enter the sound resource location
- Set Title: Check to set the window title when matched, and enter the title text
- Send Command: Check to send a command when matched, and enter the command to send
- Enabled: Check to activate the notification
- Save and exit the config screen
Escape Sequences:
\&- Literal ampersand (&) in patterns and replacement text\$- Literal dollar sign ($) in replacement text (commands, titles, sounds)&followed by color codes (0-9,a-f,k-o,r) - Minecraft color formatting in patterns
Examples:
- Match "Welcome" and play a notification sound
- Use regex like
Player (.+) joinedto capture player names and set title toPlayer $1 joined! - Send
/tell $1 Welcome! You earned \$100!when someone joins (literal $ in message) - Use regex like "&6([^ ]+) was banned" to capture something like "§6Player123 was banned"
Fake Chat Messages
This feature allows you to send custom formatted messages to chat using Minecraft's tellraw command syntax.
- Use the command
/cursedaddons fakechat <json>where is a JSON string in tellraw format - Examples:
/cursedaddons fakechat {"text":"Hello World","color":"red"}- Sends red "Hello World"/cursedaddons fakechat ["",{"text":"[Click Here]","click_event":{"action":"open_url","url":"https://example.com"}}," ",{"text":"[Hover Here]","hover_event":{"action":"show_text","value":"You can see this text here!"}}]- Sends clickable text and hoverable text
For more information on tellraw syntax, see the Minecraft Wiki.
Regex Tester
For debugging ChatNotifications regex patterns, you can use the regex tester. This tool allows you to:
- Test regex patterns against Minecraft chat messages with § color codes
- See capture groups in the same format used by the mod ($0, $1, etc.)
- Preview how color codes will appear visually
- Convert & color codes to § automatically (like the mod does)
Contributing
Contributions are welcome! If you have suggestions, bug reports, or want to contribute code, please feel free to open an issue or pull request!
License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.