Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for insertion #40

Closed
mkremins opened this issue Jul 20, 2014 · 5 comments
Closed

API for insertion #40

mkremins opened this issue Jul 20, 2014 · 5 comments

Comments

@mkremins
Copy link
Owner

Example tellraw:

/tellraw @a {
  text:"Click.",
  insertion:"Hello there."
}

Shift-clicking on the text "Click." will then append the text "Hello there." to the contents of the recipient's chat input box. This feature is apparently similar and orthogonal to clickEvent and hoverEvent.

@glen3b
Copy link
Contributor

glen3b commented Jan 4, 2015

How is this different from the existing ´suggest` function, other then corresponding to a different JSON tag?

@mkremins
Copy link
Owner Author

mkremins commented Jan 4, 2015

Insertion differs from suggestion in that suggestions completely replace the text in the chat input box, whereas insertions append to the text that's already been entered. See this post and scroll down to the section about suggest_command for details.

@glen3b
Copy link
Contributor

glen3b commented Jan 4, 2015

OK, I can write code for it later today

@glen3b
Copy link
Contributor

glen3b commented Jan 4, 2015

You also need to hold shift for insertion to work, according to that thread.

@glen3b
Copy link
Contributor

glen3b commented Jan 5, 2015

Wrote the code for this in #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants