Skip to main content

Adventure API

Paper fully integrates the Adventure API for modern, feature-rich text components and chat functionality.

What is Adventure?

Adventure is a modern replacement for Minecraft’s legacy chat system, providing:
  • Rich text components with formatting
  • Click and hover events
  • Translatable text
  • NBT and selector components
  • Title and action bar messages
  • Sound playback
  • Book creation

Text Components

Creating Components

Formatting

Click Events

Hover Events

MiniMessage

MiniMessage is a simple, intuitive format for creating rich components:

MiniMessage Tags

  • <red>, <blue>, <green>, etc. - Named colors
  • <#00FF00> - Hex colors
  • <bold>, <italic>, <underlined>, <strikethrough> - Formatting
  • <click:ACTION:VALUE> - Click events
  • <hover:show_text:'text'> - Hover events
  • <gradient:color1:color2> - Color gradients
  • <rainbow> - Rainbow effect
  • <reset> - Reset formatting

Audiences

Audience is a unified interface for sending messages:

Multiple Audiences

Titles

Boss Bars

Sounds

Books

Translation

NBT Components

Component Serialization

Best Practices

Use MiniMessage for user-facing configuration and messages. It’s easier to read and write than JSON or legacy codes.
Components are immutable. Methods like color() and append() return new component instances.
Avoid using legacy format (§ codes) in new code. Use Component or MiniMessage instead.

Resources

Next Steps

Plugin Development

Use Adventure in your plugins

Events API

Handle chat events