For the complete documentation index, see llms.txt. This page is also available as Markdown.

Anvil UI Prompt

Use a: to capture text through the native Anvil rename interface.

/nick <a:Choose a new nickname>

For inline prompts, the display text becomes the Anvil title when titles are enabled and no custom title is configured. If it contains {br}, only the text before the first marker is used as that fallback title; later segments are not rendered as lore.

The player types into the rename field and clicks the output/result slot to submit. Closing the UI, clicking an enabled cancel item, or submitting the configured cancel keyword cancels the session. Sanitization strips color codes by default, but -ds or preset "sanitize": false preserves them.

Preset support

Anvil preset definitions in presets.json are fully wired in 3.2.0:

  • title: Sets the Anvil window title.

  • prompt_text / left_button.button_text: Sets the initial text in the rename field.

  • left_button.*: Configures the input item (show, button_text, button_icon, button_hover_text, custom_model_data).

  • right_button.*: Configures the cancel item (show, button_text, button_icon, button_hover_text, custom_model_data).

Anvil prompts use version-specific providers for Minecraft 26.1.2 and 26.2.x. If a compatible provider cannot open, CommandPrompter falls back to a Chat prompt.

Capability
Behavior

Prompt key

a:

Display formatting

MiniMessage and legacy codes

Configuration

Last updated

Was this helpful?