Skip to main content

Click

Specifies what action to run once the enclosed content has been clicked on; please note that not all actions are supported on all Minecraft versions.

Open URL

Overview

Opens the specified URL when clicking.

<open-url

  valuestring

  ↪ Valid URL to open when clicking

>markup</>

Example

TODO: Add example

Suggest Command

Overview

Suggests the specified command within the player's chat-prompt.

<suggest-command

  valuestring

  ↪ Command to suggest when clicking

>markup</>

Example

TODO: Add example

Run Command

Overview

Executes the specified command using the player's client; some vanilla-commands block this action!

<run-command

  valuestring

  ↪ Command to execute when clicking

>markup</>

Example

TODO: Add example

Copy To Clipboard

Overview

Copies the specified text to the player's system-clipboard.

<to-clipboard

  valuestring

  ↪ Text to copy when clicking

>markup</>

Example

TODO: Add example

Change Page

Overview

Changes the page of a book to the specified number; only works within books.

<change-page

  valuenumber

  ↪ Number of the page to navigate to

>markup</>

Example

TODO: Add example

Open File

Overview

Opens a local file on the player's computer; this action has been discontinued and should not be used on modern versions of Minecraft (will be omitted as to avoid errors)!

<open-file

  valuestring

  ↪ Absolute system-path of the file

>markup</>

Example

TODO: Add example