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

Opens the specified URL when clicking.

AttributeTypeMandatoryDescription
value ScalaryesURL to open
<open-url value="https://google.com">Open a website</open-url>

Suggest Command

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

AttributeTypeMandatoryDescription
value ScalaryesCommand to suggest
<suggest-command value="/my-command">Suggest a command</suggest-command>

Run Command

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

AttributeTypeMandatoryDescription
value ScalaryesCommand to run
<run-command value="/my-command">Run a command</run-command>

Copy To Clipboard

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

AttributeTypeMandatoryDescription
value ScalaryesText to copy
<to-clipboard value="greetings!">Copy to the clipboard</to-clipboard>

Change Page

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

AttributeTypeMandatoryDescription
value ScalaryesNumber of page
<change-page value=5>To page 5</change-page>

Open File

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)!

AttributeTypeMandatoryDescription
value ScalaryesPath of file
<open-file value="my-document.txt">Open my document</open-file>