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
Components are immutable. Methods like
color() and append() return new component instances.Resources
- Adventure Documentation - Official Adventure docs
- MiniMessage Documentation - MiniMessage format guide
- Adventure Javadocs - Complete API reference
Next Steps
Plugin Development
Use Adventure in your plugins
Events API
Handle chat events