Chat Messages

Learn how to send formatted messages and feedback through your aliases.

Overview

Command Maker integrates with Minecraft's chat system, allowing you to send messages, display information, and provide feedback to players when they use your aliases.

Basic Chat Commands

Say Command

The most common way to send messages:

"greet": "say Hello, everyone!"

This sends a message that everyone on the server can see.

Tell Command

Send a private message to a specific player:

"msg": "tell @s Your message here"

Only the target player sees this message.

Using Variables in Messages

Player Name Variable

"greet": "say Hello, ${player}!"

When executed, displays: Hello, Steve! (if player is Steve)

Coordinate Variables

"locate": "say I am at ${x}, ${y}, ${z}"

Displays your current position in chat.

Multiple Variables

"status": "say Player: ${player} | Location: ${x}, ${y}, ${z}"

Color Formatting (Advanced)

Text Components

For colored and formatted text, use Minecraft's JSON text format:

"fancy": "tellraw @s {\"text\":\"Hello!\",\"color\":\"green\"}"

Colors Available

  • "color":"black"
  • "color":"red"
  • "color":"green"
  • "color":"yellow"
  • "color":"blue"
  • "color":"light_purple"
  • "color":"aqua"
  • "color":"white"
  • "color":"gray"
  • "color":"dark_red"
  • "color":"dark_green"
  • "color":"dark_blue"

Text Formatting

JSON Formatting Options

{
  "text": "Your text here",
  "bold": true,
  "italic": true,
  "underlined": true,
  "strikethrough": true,
  "obfuscated": false,
  "color": "green"
}

Example: Bold Green Text

"success": "tellraw @s {\"text\":\"Command executed!\",\"bold\":true,\"color\":\"green\"}"

Example: Red Error Message

"error": "tellraw @s {\"text\":\"Error!\",\"bold\":true,\"color\":\"red\"}"

Practical Examples

Welcome Message

"welcome": "say Welcome to our server, ${player}!"

Status Report

"status": "say Location: ${x}, ${y}, ${z} | Player: ${player}"

Formatted Notification

"notify": "tellraw @s {\"text\":\"[Alert]\",\"bold\":true,\"color\":\"gold\",\"extra\":[{\"text\":\" Something happened\",\"color\":\"white\"}]}"

Command Confirmation

"confirm": "say Command executed successfully!"

Message Best Practices

✅ Do's

  • Keep messages short and clear
  • Use variables for personalization
  • Provide feedback for command execution
  • Use colors to highlight important information
  • Test messages in-game to verify formatting

❌ Don'ts

  • Don't send excessive messages on every command
  • Don't use colors that are hard to read
  • Don't forget to properly escape quotes in JSON
  • Don't spam chat with the same message repeatedly

Combining Commands

Execute + Say

"pickup": "say ${player} picked up diamonds! && give @s diamond 10"

Multiple Messages

Use multiple say commands separated by &&:

"announce": "say First message && say Second message"

Broadcasting Messages

Server-Wide Announcement

"broadcast": "say [ANNOUNCEMENT] Important server message here"

Everyone on the server sees this in chat.

Player-Specific Message

"whisper": "tell @s This is just for you"

Only the executing player sees this.

Troubleshooting

❌ Message not showing?

  • Check that the say or tell command is valid
  • Verify the alias is loaded with /addcommand reload
  • Make sure you're not using invalid characters

❌ Formatting looks weird?

  • Check your JSON syntax
  • Ensure all quotes are properly escaped with backslashes
  • Test a simpler version first with just say

❌ Variables not replacing?

  • Make sure you use the correct variable names: ${player}, ${x}, ${y}, ${z}
  • Check your JSON encoding doesn't break the variable

Related Pages