JSON Errors in Custom SignsWhy am I getting an 'unexpected token' error with this command?How do I fix 'Invalid JSON' errors?What is the correct syntax for using a command block to place a wall signhow can i skip a line with multiple text in tellraw(Java Minecraft 1.14) How to save a player's scoreboard team temporarily for later use?
Does knowing that the exponent is in a certain range help solving discrete log?
Subgroup generated by a subgroup and a conjugate of it
Do I need to start off my book by describing the character's "normal world"?
My new Acer Aspire 7 doesn't have a Legacy Boot option, what can I do to get it?
What should I do if actually I found a serious flaw in someone's PhD thesis and an article derived from that PhD thesis?
global variant of csname…endcsname
When and which board game was the first to be ever invented?
Radix2 Fast Fourier Transform implemented in C++
How could Tony Stark wield the Infinity Nano Gauntlet - at all?
What allows us to use imaginary numbers?
How to open terminal automatically when ubuntu boots up?
What's the relationship betweeen MS-DOS and XENIX?
Icon is not displayed in lwc
Replacing old plug-in 220V range with new hardwire 3-wire electric cooktop: remove outlet or add a plug?
Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)
Ending a line of dialogue with "?!": Allowed or obnoxious?
What should I do with the stock I own if I anticipate there will be a recession?
Why do aircraft leave cruising altitude long before landing just to circle?
Parse a simple key=value config file in C
Tikz: The position of a label change step-wise and not in a continuous way
Why should P.I be willing to write strong LOR even if that means losing a undergraduate from his/her lab?
Output the list of musical notes
C++ Least cost swapping 2
Vegetarian dishes on Russian trains (European part)
JSON Errors in Custom Signs
Why am I getting an 'unexpected token' error with this command?How do I fix 'Invalid JSON' errors?What is the correct syntax for using a command block to place a wall signhow can i skip a line with multiple text in tellraw(Java Minecraft 1.14) How to save a player's scoreboard team temporarily for later use?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need help with a command that I am trying to make in a game inside of minecraft. It is a custom generated sign (using a sign generator) that allows players to upgrade their weapons (and armor).
The command is the following:
/give @p sign 1 0 BlockEntityTag:Text1:""clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25"",display:Name:"Custom Sign"
The first line of the sign is empty, and the click-event runs an execute command that tells the player that they do not have enough wins to upgrade using a tellraw statement.
The second line of the sign says "Upgrade Sword", and the click-event runs an execute command that tells the player that they have enough wins and their sword has been upgraded using a tellraw statement.
The third line of the sign says "$25" (which is the amount of wins to upgrade), and the click-event runs an execute command that increments the "sword" scoreboard for the player by 1.
The fourth line of the sign is empty, and the click-event runs an execute command that subtracts 25 wins from the player using the "wins" scoreboard.
My error is displayed as shown:
Data tag parsing failed: Unexpected token '' at: \",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"}}",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25""
I have a similar command creating a custom sign again and the problem seems to be the tellraw commands. You can find my other question here.
I have tried using the answer from my other question to fix this command but I have just gotten completely lost. If anyone could help or explain to me how to use this properly (because I will also need to do this for other items), that would be fantastic.
minecraft minecraft-commands
add a comment |
I need help with a command that I am trying to make in a game inside of minecraft. It is a custom generated sign (using a sign generator) that allows players to upgrade their weapons (and armor).
The command is the following:
/give @p sign 1 0 BlockEntityTag:Text1:""clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25"",display:Name:"Custom Sign"
The first line of the sign is empty, and the click-event runs an execute command that tells the player that they do not have enough wins to upgrade using a tellraw statement.
The second line of the sign says "Upgrade Sword", and the click-event runs an execute command that tells the player that they have enough wins and their sword has been upgraded using a tellraw statement.
The third line of the sign says "$25" (which is the amount of wins to upgrade), and the click-event runs an execute command that increments the "sword" scoreboard for the player by 1.
The fourth line of the sign is empty, and the click-event runs an execute command that subtracts 25 wins from the player using the "wins" scoreboard.
My error is displayed as shown:
Data tag parsing failed: Unexpected token '' at: \",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"}}",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25""
I have a similar command creating a custom sign again and the problem seems to be the tellraw commands. You can find my other question here.
I have tried using the answer from my other question to fix this command but I have just gotten completely lost. If anyone could help or explain to me how to use this properly (because I will also need to do this for other items), that would be fantastic.
minecraft minecraft-commands
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02
add a comment |
I need help with a command that I am trying to make in a game inside of minecraft. It is a custom generated sign (using a sign generator) that allows players to upgrade their weapons (and armor).
The command is the following:
/give @p sign 1 0 BlockEntityTag:Text1:""clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25"",display:Name:"Custom Sign"
The first line of the sign is empty, and the click-event runs an execute command that tells the player that they do not have enough wins to upgrade using a tellraw statement.
The second line of the sign says "Upgrade Sword", and the click-event runs an execute command that tells the player that they have enough wins and their sword has been upgraded using a tellraw statement.
The third line of the sign says "$25" (which is the amount of wins to upgrade), and the click-event runs an execute command that increments the "sword" scoreboard for the player by 1.
The fourth line of the sign is empty, and the click-event runs an execute command that subtracts 25 wins from the player using the "wins" scoreboard.
My error is displayed as shown:
Data tag parsing failed: Unexpected token '' at: \",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"}}",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25""
I have a similar command creating a custom sign again and the problem seems to be the tellraw commands. You can find my other question here.
I have tried using the answer from my other question to fix this command but I have just gotten completely lost. If anyone could help or explain to me how to use this properly (because I will also need to do this for other items), that would be fantastic.
minecraft minecraft-commands
I need help with a command that I am trying to make in a game inside of minecraft. It is a custom generated sign (using a sign generator) that allows players to upgrade their weapons (and armor).
The command is the following:
/give @p sign 1 0 BlockEntityTag:Text1:""clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25"",display:Name:"Custom Sign"
The first line of the sign is empty, and the click-event runs an execute command that tells the player that they do not have enough wins to upgrade using a tellraw statement.
The second line of the sign says "Upgrade Sword", and the click-event runs an execute command that tells the player that they have enough wins and their sword has been upgraded using a tellraw statement.
The third line of the sign says "$25" (which is the amount of wins to upgrade), and the click-event runs an execute command that increments the "sword" scoreboard for the player by 1.
The fourth line of the sign is empty, and the click-event runs an execute command that subtracts 25 wins from the player using the "wins" scoreboard.
My error is displayed as shown:
Data tag parsing failed: Unexpected token '' at: \",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]"}}",Text2:""text":"Upgrade Sword","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]"",Text3:""text":"$25","clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1"",Text4:""clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25""
I have a similar command creating a custom sign again and the problem seems to be the tellraw commands. You can find my other question here.
I have tried using the answer from my other question to fix this command but I have just gotten completely lost. If anyone could help or explain to me how to use this properly (because I will also need to do this for other items), that would be fantastic.
minecraft minecraft-commands
minecraft minecraft-commands
edited 23 mins ago
pppery
1,5371 gold badge8 silver badges20 bronze badges
1,5371 gold badge8 silver badges20 bronze badges
asked Apr 4 '16 at 1:35
Dylpyckle13Dylpyckle13
878 bronze badges
878 bronze badges
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02
add a comment |
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02
add a comment |
1 Answer
1
active
oldest
votes
I was smart before writing this huh... I only used one generator to try and make the command. As soon as I posted this I was like "hey lets try another one" and it worked. This is the working command:
/blockdata ~ ~1 ~ Text1:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]","text":""]",Text2:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]","text":"Upgrade Sword"]",Text3:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1","text":"25 Wins","color":"green"]",Text4:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25","text":""]"
Well, I guess that solves that.
//Edit: The link to the generator I used is by MCtoolBox, and you can go straight to the sign generator by clicking here.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f261338%2fjson-errors-in-custom-signs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was smart before writing this huh... I only used one generator to try and make the command. As soon as I posted this I was like "hey lets try another one" and it worked. This is the working command:
/blockdata ~ ~1 ~ Text1:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]","text":""]",Text2:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]","text":"Upgrade Sword"]",Text3:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1","text":"25 Wins","color":"green"]",Text4:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25","text":""]"
Well, I guess that solves that.
//Edit: The link to the generator I used is by MCtoolBox, and you can go straight to the sign generator by clicking here.
add a comment |
I was smart before writing this huh... I only used one generator to try and make the command. As soon as I posted this I was like "hey lets try another one" and it worked. This is the working command:
/blockdata ~ ~1 ~ Text1:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]","text":""]",Text2:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]","text":"Upgrade Sword"]",Text3:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1","text":"25 Wins","color":"green"]",Text4:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25","text":""]"
Well, I guess that solves that.
//Edit: The link to the generator I used is by MCtoolBox, and you can go straight to the sign generator by clicking here.
add a comment |
I was smart before writing this huh... I only used one generator to try and make the command. As soon as I posted this I was like "hey lets try another one" and it worked. This is the working command:
/blockdata ~ ~1 ~ Text1:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]","text":""]",Text2:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]","text":"Upgrade Sword"]",Text3:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1","text":"25 Wins","color":"green"]",Text4:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25","text":""]"
Well, I guess that solves that.
//Edit: The link to the generator I used is by MCtoolBox, and you can go straight to the sign generator by clicking here.
I was smart before writing this huh... I only used one generator to try and make the command. As soon as I posted this I was like "hey lets try another one" and it worked. This is the working command:
/blockdata ~ ~1 ~ Text1:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins=24] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"You do not have enough wins to upgrade your sword.\",\"color\":\"none\"]","text":""]",Text2:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /tellraw @p [\"\",\"text\":\"[MF2] \",\"color\":\"gold\",\"text\":\"[SHOP] \",\"color\":\"yellow\",\"text\":\"Sword upgraded!\",\"color\":\"none\"]","text":"Upgrade Sword"]",Text3:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players add @p sword 1","text":"25 Wins","color":"green"]",Text4:"["clickEvent":"action":"run_command","value":"/execute @p[score_wins_min=25] ~ ~ ~ /scoreboard players remove @p wins 25","text":""]"
Well, I guess that solves that.
//Edit: The link to the generator I used is by MCtoolBox, and you can go straight to the sign generator by clicking here.
edited Apr 4 '16 at 19:36
answered Apr 4 '16 at 1:41
Dylpyckle13Dylpyckle13
878 bronze badges
878 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Arqade!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f261338%2fjson-errors-in-custom-signs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you were using a 1.9 generator with Minecraft 1.8 that could have been your problem. 1.8 can work with 1.9, but 1.9 can't work with 1.8.
– Jason_
Apr 4 '16 at 2:27
@Jason_ That is incorrect. In 1.9, JSON must be strict. In 1.8, JSON can be strict. If you have lenient JSON from 1.8, it won't work in 1.9 because in 1.9 it must be strict. But 1.9 JSON will work perfectly in 1.8.
– Skylinerw
Apr 4 '16 at 3:10
@Skylinerw, woops, sorry guess I didn't do my homework properly. Thanks for the clarification.
– Jason_
Apr 4 '16 at 5:02