This is documentation for EmbersTextAPI 1.x. View the latest version

Commands Reference

Embers Text API provides three main commands for creating and managing text overlays. This page covers all available commands with detailed examples.

CommandPurposePermission Level
/emberstextapi testDemo built-in effectsOperator (Level 2)
/emberstextapi sendSend basic messagesOperator (Level 2)
/emberstextapi sendcustomSend messages with full NBT controlOperator (Level 2)

Test the mod’s functionality by displaying one of nine built-in demo effects.

/emberstextapi test <id>
  • <id> - Integer from 1 to 9, each showcasing different features
/emberstextapi test 1
/emberstextapi test 5
/emberstextapi test 9

Each test ID demonstrates different capabilities:

  1. Test 1 - Basic centered text
  2. Test 2 - Gradient effects
  3. Test 3 - Typewriter animation
  4. Test 4 - Shake effects
  5. Test 5 - Background styling
  6. Test 6 - Custom positioning
  7. Test 7 - Obfuscation effects
  8. Test 8 - Combined animations
  9. Test 9 - Advanced styling

Send a basic text message to one or more players with optional fade effects.

/emberstextapi send <player> <duration> [fadeIn] [fadeOut] <text>
  • <player> - Target selector or player name
    • Examples: @p, @a, @r, PlayerName
  • <duration> - How long the message displays (in ticks)
    • 20 ticks = 1 second
  • [fadeIn] - Optional fade-in duration (in ticks)
  • [fadeOut] - Optional fade-out duration (in ticks)
  • <text> - The message to display
    • Supports formatting codes (§, &)
    • Use quotes for multi-word messages
/emberstextapi send @p 100 "Hello, World!"

Displays “Hello, World!” to the nearest player for 5 seconds.

/emberstextapi send @a 200 20 20 "Welcome to the server!"
  • Shows message to all players
  • Displays for 10 seconds
  • Fades in over 1 second
  • Fades out over 1 second
/emberstextapi send Steve 60 "Quest completed!"

Shows message to player “Steve” for 3 seconds.

/emberstextapi send @p 600 40 40 "This is an important announcement"
  • 30-second display duration
  • 2-second fade-in
  • 2-second fade-out
/emberstextapi send @p 100 "§6Gold Text §r§bBlue Text"

Displays text with Minecraft color codes.


Send a message with full control using NBT data. This is the most powerful command, allowing you to configure every aspect of the text display.

/emberstextapi sendcustom <player> <nbt> <duration> <text>
  • <player> - Target selector or player name
  • <nbt> - NBT compound containing configuration
  • <duration> - Display duration in ticks
  • <text> - The message to display

All available NBT tags are documented in the NBT Configuration page. Common options include:

  • fadeIn / fadeOut - Fade durations
  • color / gradient - Text colors
  • anchor - Screen position
  • align - Text alignment
  • typewriter - Typewriter animation speed
  • shake* - Shake effects
  • background - Background settings
  • font - Custom font
/emberstextapi sendcustom @p {gradient:[0xFF0000,0x0000FF]} 100 "Rainbow Text"

Creates text with a red-to-blue gradient.

/emberstextapi sendcustom @p {anchor:"CENTER_CENTER",typewriter:2.0f,typewriterCenter:1b} 150 "Dramatic entrance..."
  • Centers text on screen
  • Types out at 2 characters per tick
  • Re-centers as it types
/emberstextapi sendcustom @p {bgColor:0x000000,bgGradient:[0x330000,0x003300]} 100 "Styled Message"

Adds a black background with red-to-green gradient border.

/emberstextapi sendcustom @p {shakeWave:1.5f} 80 "Wobbly Text!"

Applies a wave shake effect with 1.5 intensity.

/emberstextapi sendcustom @p {
anchor:"TOP_CENTER",
align:"CENTER",
gradient:[0xFF6B6B,0x4ECDC4,0x45B7D1],
typewriter:1.5f,
fadeIn:30,
fadeOut:30,
shadow:1b,
bgColor:0x000000
} 200 "Welcome to the Adventure!"

This creates:

  • Top-center positioned text
  • Three-color gradient
  • Typewriter animation
  • Fade effects
  • Drop shadow
  • Black background
/emberstextapi sendcustom @p {charShakeRandom:2.0f} 100 "Chaotic Energy!"

Each character shakes independently with random movement.

/emberstextapi sendcustom @p {obfuscate:1b,obfuscateReveal:"LEFT_TO_RIGHT"} 120 "Secret Message"

Text starts obfuscated and reveals from left to right.

/emberstextapi sendcustom @p {
font:"minecraft:uniform",
wrap:200,
anchor:"CENTER_LEFT"
} 150 "This is a longer message that will wrap to multiple lines"

Uses uniform font, wraps at 200 pixels width.


All commands support Minecraft’s target selector system:

SelectorTargets
@pNearest player
@aAll players
@rRandom player
@sCommand executor
PlayerNameSpecific player by name

You can also use selector arguments:

/emberstextapi send @a[team=red] 100 "Red team message!"
/emberstextapi send @p[distance=..10] 60 "You're close!"

Here are recommended durations for different message types:

Message TypeSuggested DurationNotes
Quick notification40-60 ticks (2-3s)Brief alerts
Standard message100-120 ticks (5-6s)Normal reading speed
Important announcement200-300 ticks (10-15s)Ensure players see it
Cinematic text400+ ticks (20s+)Story sequences
With typewriter+duration for animationAdd time for typing effect

By default, all Embers Text API commands require operator level 2. Configure permissions using your server’s permission management system:

emberstextapi.command.test
emberstextapi.command.send
emberstextapi.command.sendcustom

  1. Check that the player is online
  2. Verify duration is sufficient (minimum 20 ticks recommended)
  3. Ensure no typos in target selector
  4. Check if another message is currently displaying
  1. Use proper formatting code syntax (§ or &)
  2. For complex formatting, use sendcustom with NBT
  3. Reset formatting with §r when needed
  1. Validate NBT syntax (proper brackets and quotes)
  2. Check data types (e.g., 1.5f for floats, 1b for booleans)
  3. Reference the NBT Configuration page for correct tag names