Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
/sayraw {"text":"Want to reset the current minigame? ", "extra": [{"text":"Click here!", "clickEvent":{"action":"run_command", "value":"/scoreboard players set minigame_resetting 1"}}]}
{
"text": "Want to reset the current minigame? ",
"extra": [
{
"text": "Click here!",
"clickEvent": {
"action": "run_command",
"value": "/scoreboard players set minigame_resetting 1"
}
}
]
}
@gamerlv

Custom GUI elements? That would be so epic if not a bit later. couch couch spoutcraft couch

@YPetremann

That would let Translatable content from resource packs ... would be very cool for international mapmaking ...

@lukasbach

Fuck that would be awesome...

@Hoolean

This would be pretty swell.

Not only for within Minecraft but for Bukkit plugins; thank you for adding in these kind of features, for every small one there is a huge piece of potential is released into the server modding community, keeping plugins, servers and minigames fresh and interesting! ^_^

@calebsander

Alternative actions?

@WolfieMario

As the command is "/sayraw", does this mean the message is broadcast to all players on the server? Because if it can be broadcast to only a specific player, you could create some amazingly interactive NPC chat, admin control panels, etc.

@aaeX
/sayraw 

{
    extra:[{
            "text":"Have a cookie!",
            "clickEvent":{
                 "action":"run_command",
                 "value":"/whisper @u I lied. Stop teasing the kids."
             }
        }]
}
@bendem

@aaeX So true !

@ghost
Unknown commented

What if, the server has so many people, it is difficult to see specific chat lines (let alone clicking on them). How would you make it so players can't miss it? Just a thought...

@ghost
Unknown commented

Also, maybe add a way to display text on the screen? It would be helpful. At the moment on my server, I'm spawning an invisible wither and setting the name to display text on the top of the screen :\

Oh well... Just a thought...

@qgustavor
{
  text: "Welcome to my store! What you wanna buy?  #0, #1 or #2?",
  keys: [{
    text: "Apples",
    clickEvent: {
      action: "run_command",
      shortcut: "a",
      value: "/scoreboard players set buy_apples 1"
    }
  },{
    text: "oranges",
    clickEvent: {
      action: "run_command",
      shortcut: "o",
      value: "/scoreboard players set buy_oranges 1"
    }
  }{
    text: "bananas",
    clickEvent: {
      action: "run_command",
      shortcut: "b",
      value: "/scoreboard players set buy_bananas 1"
    }
  }]
}
@AppleTreker

Fantastic!

/tellraw too, please!

@ryantheleach

what happens if chat moves?

if you making more things clickable by chat, can you fix the hitboxes on links as well?

Any chance of making chat tabbed? so that playerchat and game chat could possibly be seperated?

@ryantheleach

Another Idea: make it possible to not submit the command, but just enter it into the text box, so clicking whispers would add "/w playername "

@satgo1546

Where's cancel button...

But this line of command is toooooooooooo long, can't put it into block 137...

@MTandi

Make it recursive please. It would be possible to make dialog systems.

/tellraw @p {
  "text": "- I need teleportation service",
  "clickEvent": {
  "action": "run_command",
  "value": "
    /tellraw @p
    {'text':'Choose your destination: ', 
    'extra':[
      {'text':'Jungle ', 'clickEvent':{'action':'run_command', 'value':'/tp @p 0 70 0'}}, 
      {'text':'Desert ', 'clickEvent':{'action':'run_command', 'value':'/tp @p 10 70 10'}}
      {'text':'Village ', 'clickEvent':{'action':'run_command', 'value':'/tp @p 20 70 20'}}
    ]}
    "
  }
}

Or add /powerblock command, so we can activate other command blocks within /tellraw.

@itsZN

There is a bug with the /tellraw, if you have a user click something in chat and run a command like the example dinnerbone used, it will run the command as if it was typed by the player, meaning that if the player can't use the command it will fail. So only admins would be able to interact with the tellraw.

@kosgan10

Very good example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.