Hi there,
I just tried to create a tellraw command that has some text as an output with a clickevent. If you then activate the clickevent a new line of text should appear. Within the new text should again be a clickevent which has then again a new text as an output.
The goal of this is to "click" through a conversation, so that you as a player can take your time to read the text and then go further if you have read everything.
But somehow I constantly mess up the code, can anyone help me?
Hi there,
I just tried to create a tellraw command that has some text as an output with a clickevent. If you then activate the clickevent a new line of text should appear. Within the new text should again be a clickevent which has then again a new text as an output.
The goal of this is to "click" through a conversation, so that you as a player can take your time to read the text and then go further if you have read everything.
But somehow I constantly mess up the code, can anyone help me?
Unfortunately you'll find that you cannot accomplish this with the current limitations of the /tellraw command. The commands being run through the clickEvent are forcing the player to run the commands; players have a character limit of 100 characters, so you cannot nest several /tellraw commands within each other.
What you instead will have to do is use the /setblock command for the clickEvent to place a block next to pre-built command blocks that will activate the next /tellraw command in the conversation, or use the /scoreboard command for individual player conversations.
If you're having trouble with a particular command apart from this, you can copy/paste it here and we can figure out what's going on with it. But I'm afraid that you'll have to use a work-around to the character limit, as described above, meaning you will need to use multiple command blocks.
I just tried to create a tellraw command that has some text as an output with a clickevent. If you then activate the clickevent a new line of text should appear. Within the new text should again be a clickevent which has then again a new text as an output.
The goal of this is to "click" through a conversation, so that you as a player can take your time to read the text and then go further if you have read everything.
But somehow I constantly mess up the code, can anyone help me?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffUnfortunately you'll find that you cannot accomplish this with the current limitations of the /tellraw command. The commands being run through the clickEvent are forcing the player to run the commands; players have a character limit of 100 characters, so you cannot nest several /tellraw commands within each other.
What you instead will have to do is use the /setblock command for the clickEvent to place a block next to pre-built command blocks that will activate the next /tellraw command in the conversation, or use the /scoreboard command for individual player conversations.
If you're having trouble with a particular command apart from this, you can copy/paste it here and we can figure out what's going on with it. But I'm afraid that you'll have to use a work-around to the character limit, as described above, meaning you will need to use multiple command blocks.
Oh and thank you a lot for your awesome guide!