I am trying to make clickable text in Minecraft in the chat box. It was offered in the adventure map, "UP".

The principle is that you are offered an alternative in the text to click, "Yes", or "No". Each word will certainly provide an output of a command.

How is this achieved?




You watching: How to make clickable signs in minecraft

*

*

You can do this using the /tellraw command also. The syntaxes is:

/tellraw For instance, to have a command that activates on click, try running this:

/tellraw
a "text":"Click this!","clickEvent":"action":"run_command","value":"/say Hello!"That has actually a "clickEvent" of form "run_command" via a worth of the command also to be run. There"s the majority of different points you can do with JSON: displaying scoreboard objectives, selectors, items, achievements, entities, various message formatting, etc.

Here"s a more complex command with the Yes/No choice and output you wanted:

/tellraw
p <"","text":"Yes","color":"green","bold":"true","clickEvent":"action":"run_command","value":"/tellraw
p "text":"Confirmed!","color":"green"","hoverEvent":"action":"show_text","value":"text":"","extra":<"text":"Confirm","color":"green">,"text":"/","color":"dark_gray","bold":"false","text":"No","color":"red","bold":"true","clickEvent":"action":"run_command","value":"/tellraw


See more: what does cr mean in wow

p "text":"Cancelled","color":"red"","hoverEvent":"action":"show_text","value":"text":"","extra":<"text":"Cancel","color":"red">>You might want to learn more about the raw JSON text format, or use a JSON generator.


*

*

*

This command will output a message that when clicked on the command /say Hello! will certainly be executed

tellraw
Highly energetic question. Earn 10 reputation in order to answer this question. The reputation need helps protect this question from spam and non-answer task.


See more: wow guardian druid azerite traits

Not the answer you're looking for? Browse other questions tagged minecraft-java-edition minecraft-commands or ask your very own question.


site design / logo design © 2021 Stack Exreadjust Inc; user contributions licensed under cc by-sa. rev2021.3.26.38924


Categories: Minecraft