0

I've been trying to find a way to make people talk with books in minecraft. I've seen it done before and I want to make my own custom book. I have been looking all over the internet and can't find an answer for this.

It would look something like this:

Example 1 of 2 Example 2 of 2

So basically there is text and if you click it it will make you talk.
Can anybody please tell me the /give command?

1 Answer 1

3

Here is a command that will do that:

/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Click Here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hello There\"}}]"],title:"Hello there",author:IronAnvil}

Though, I recommend using a book editor tool if you want more complications as formatting is tough. Here is the one I used for that command.

Add a clickEvent that runs a command and use the say command.

If you want to see a little bit more complication, here is another command. This one is long enough it will need to be run from a command block:

/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Hello there:\\n\"},{\"text\":\"Click here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hello there\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Hello there' in chat.\"}},{\"text\":\"\\n\\nGoodbye:\\n\",\"color\":\"reset\"},{\"text\":\"Click Here\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Goodbye\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Goodbye' in chat.\"}},{\"text\":\"\\n\",\"color\":\"reset\"}]"],title:"Book of Speak",author:IronAnvil}

Edit:

Here are both commands again but the clickEvent does not specify a command so it just outputs to chat:

/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Click Here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Hello There\"}}]"],title:"Hello there",author:IronAnvil}

/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Hello there:\\n\"},{\"text\":\"Click here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Hello there\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Hello there' in chat.\"}},{\"text\":\"\\n\\nGoodbye:\\n\",\"color\":\"reset\"},{\"text\":\"Click Here\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Goodbye\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Goodbye' in chat.\"}},{\"text\":\"\\n\",\"color\":\"reset\"}]"],title:"Book of Speak",author:IronAnvil}
2
  • That makes you use the /say command I want something that doesn't use the say command because it makes the [HeyItzAxel] hello instead of <HeyItzAxel> hello Jul 18, 2017 at 23:33
  • I have made an edit that will output to chat without the say command.
    – IronAnvil
    Jul 19, 2017 at 0:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .