Last active
January 26, 2020 18:39
-
-
Save Dinnerbone/6488256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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" | |
} | |
} | |
] | |
} |
Where's cancel button...
But this line of command is toooooooooooo long, can't put it into block 137...
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.
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.
Very good example!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 "