/give @p written_book 1 0 {pages:["["",{"text":"This book is used to show you your current funds, click the text to show it in the chat bar.","color":"black","bold":true},{"text":"Currency","color":"dark_green","bold":true,"underlined":true,"clickEvent":{"action":"run_command","value":"tellraw @p {"score":{"@p":"*","objective":"Economy"}}"}}]"],title:Book,author:TellrawGenerator}
after a bit more research I realised my initial attempt to make it a hover event wouldn't have worked. I get an error with this one saying I have a "t" in there somewhere that isn't supposed to be and I am not sure where.
/give @p written_book 1 0 {pages:["["",{"text":"This book is used to show you your current funds, click the text to show it in the chat bar.","color":"black","bold":true},{"text":"Currency","color":"dark_green","bold":true,"underlined":true,"clickEvent":{"action":"run_command","value":"tellraw @p {"score":{"@p":"*","objective":"Economy"}}"}}]"],title:Book,author:TellrawGenerator}
after a bit more research I realised my initial attempt to make it a hover event wouldn't have worked. I get an error with this one saying I have a "t" in there somewhere that isn't supposed to be and I am not sure where.
You need to escape the quotation marks. The first quotation mark within "pages" opens the data, and the very next un-escaped quotation mark will close the data (which occurs after square bracket). Applying a backslash tells the parser to skip using it to close the tag.
Deeper-nested quotes need further quotation marks, which is for your clickEvent. See this section of the thread for more info on escaping.
You also have "@p" as the key instead of "name" for the nested "score" information.
However, clickEvents in books are being run by the player as though they typed it into the chat themselves. This means they have a 100-character limit. While the nested command being run doesn't exceed that, the player must also be OP'd and you must also have a forward slash before the command. To overcome the character limit/OP requirement, you'll need to use the /trigger command and externally run commands as a result of a player's score changing.
Fixed command regardless:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"This book is used to show you your current funds, click the text to show it in the chat bar.\",\"color\":\"black\",\"bold\":true},{\"text\":\"Currency\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"Economy\\\"}}\"}}]"],title:Book,author:TellrawGenerator}
How to make a blocks and items in /title and subtitle?
Help please
I know of one way to do so:
Change the resources at resources.zip\assets\minecraft\textures\font\someFile.png to an actual image. However, they would have a smaller resolution (8x8 I think). Increase resolution of the whole image to match the resolution of your image.
Let's say you change character 3 to a diamond. When you use /title @a title ["This is a 3 !'], It will appear as This is a !. Just don't change the color of the "image text" and use some obscure character.
What you could do is use the "selector" for the command, it might be a bit more lengthy, but totally worth it, since you could select based on who has the scores or who clicked it, etc.
What you could do is use the "selector" for the command, it might be a bit more lengthy, but totally worth it, since you could select based on who has the scores or who clicked it, etc.
Hey there, we are trying to use books for a few things on my server and are running into an issue. As an OP you can read the book no problem but a non OP only sees the code used to create the book. Any idea what's going on? Please quote this so I know that posts to this thread are related to my question.
Hey there, we are trying to use books for a few things on my server and are running into an issue. As an OP you can read the book no problem but a non OP only sees the code used to create the book. Any idea what's going on? Please quote this so I know that posts to this thread are related to my question.
It's MC-73054. What's the version of the server? If it's 1.10.2, I need to update the ticket (I'm a helper there)
Hey Skylinerw, so I've been trying my hardest to get this command to work without success and this is honestly my last spot I'm going for help (cause I've spent too much time on a detail at this point xD) Im trying to get a scoreboard to appear on a sign but for some reason no matter what I try, I can't get it to work. Ive tried copying the command from the forum post above, but even that isn't working for some reason - It just doesn't appear.
Remember the command directly above this line was just a copy paste to see if I could get it working by putting in my own objective and fake player name.
Ideally what I want is a sign that says
The Cannon has
___s until
it is ready to
fire!
Thanks for your help!
On a side note, why does the error - An error occurred while performing this command - happen?
I'm at a bit of a loss here on some custom book /give commands.
All I'm trying to do is give some players a rule book when they first log into my multiplayer server. But I keep running into "Data tag parsing failed: Unbalanced quotation" messages...but, at least in my eyes, they are balanced. So to make it simple I started with just doing a simple /give written book. For example...
What am I missing here? What is the proper syntax for pages & text? I'm not trying to do anything fancy here with commands...just /give people a written_book with a bunch of simple black text already present (although I would eventually like to give them a book where they can click on text to get basic gear + TP to the spawn point).
The commands are too long for the chat (the character limit for chat input is 100 characters in 1.10, and the commands that are failing are longer than that). You must use a command block instead.
I have moved this guide temporarily to Github (link) and will be updating it to 1.13 there in the coming weeks. I will eventually move it to a more permanent location.
This thread will no longer be updated, though feel free to continue asking questions.
I have moved this guide temporarily to Github (link) and will be updating it to 1.13 there in the coming weeks. I will eventually move it to a more permanent location.
This thread will no longer be updated, though feel free to continue asking questions.
Let's say, for example, that I have a few blocks near me in some particular order. Let's say, stone-dirt-gravel-gravel-cobblestone. And I want to output a message letter by letter using /tell, /tallraw, /say or anything else and a /detect. For this instance the message can be H-E-L-L-O. What commands should I use if I want this word to stay in one line and not output each letter in a different line?
Ok, here is the command (long delay I know)
/give @p written_book 1 0 {pages:["["",{"text":"This book is used to show you your current funds, click the text to show it in the chat bar.","color":"black","bold":true},{"text":"Currency","color":"dark_green","bold":true,"underlined":true,"clickEvent":{"action":"run_command","value":"tellraw @p {"score":{"@p":"*","objective":"Economy"}}"}}]"],title:Book,author:TellrawGenerator}
after a bit more research I realised my initial attempt to make it a hover event wouldn't have worked. I get an error with this one saying I have a "t" in there somewhere that isn't supposed to be and I am not sure where.
You need to escape the quotation marks. The first quotation mark within "pages" opens the data, and the very next un-escaped quotation mark will close the data (which occurs after square bracket). Applying a backslash tells the parser to skip using it to close the tag.
Deeper-nested quotes need further quotation marks, which is for your clickEvent. See this section of the thread for more info on escaping.
You also have "@p" as the key instead of "name" for the nested "score" information.
However, clickEvents in books are being run by the player as though they typed it into the chat themselves. This means they have a 100-character limit. While the nested command being run doesn't exceed that, the player must also be OP'd and you must also have a forward slash before the command. To overcome the character limit/OP requirement, you'll need to use the /trigger command and externally run commands as a result of a player's score changing.
Fixed command regardless:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Hello
How to make a blocks and items in /title and subtitle?
Help please
I know of one way to do so:
Change the resources at resources.zip\assets\minecraft\textures\font\someFile.png to an actual image.
However, they would have a smaller resolution (8x8 I think).Increase resolution of the whole image to match the resolution of your image.Let's say you change character 3 to a diamond. When you use /title @a title ["This is a 3 !'], It will appear as This is a !. Just don't change the color of the "image text" and use some obscure character.
What you could do is use the "selector" for the command, it might be a bit more lengthy, but totally worth it, since you could select based on who has the scores or who clicked it, etc.
Command: /tellraw @a [{"text":"hello ","extra":[{"selector":"@p"},"!"]}]
I Don't normally use the "extra" tag, so I make it a bit longer by doing this:
/tellraw @a[{"text":"hello "},{"selector":"@p"},{"text":"!"}]
You can pick whatever way works for you
Nevermind, this has already been resolved, my bad...
Hey there, we are trying to use books for a few things on my server and are running into an issue. As an OP you can read the book no problem but a non OP only sees the code used to create the book. Any idea what's going on? Please quote this so I know that posts to this thread are related to my question.
It's MC-73054. What's the version of the server? If it's 1.10.2, I need to update the ticket (I'm a helper there)
Yes it is 10.2, thanks for the heads up.
Hey Skylinerw, so I've been trying my hardest to get this command to work without success and this is honestly my last spot I'm going for help (cause I've spent too much time on a detail at this point xD) Im trying to get a scoreboard to appear on a sign but for some reason no matter what I try, I can't get it to work. Ive tried copying the command from the forum post above, but even that isn't working for some reason - It just doesn't appear.
The objective is Cap2 and the player is named %
Here are the commands I've been using
Remember the command directly above this line was just a copy paste to see if I could get it working by putting in my own objective and fake player name.
Ideally what I want is a sign that says
The Cannon has
___s until
it is ready to
fire!
Thanks for your help!
On a side note, why does the error - An error occurred while performing this command - happen?
Unfortunately the "score" does not work on signs currently (bug report). Signs cannot be used to display scores directly until this is fixed.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
FYI this is for v1.10.2
I'm at a bit of a loss here on some custom book /give commands.
All I'm trying to do is give some players a rule book when they first log into my multiplayer server. But I keep running into "Data tag parsing failed: Unbalanced quotation" messages...but, at least in my eyes, they are balanced. So to make it simple I started with just doing a simple /give written book. For example...
This worked:
/give @p minecraft:written_book 1 0 {title:"",author:"",pages:["{text:\"words\",color:black}"]}
But when I tried to expand it...
This did NOT work:
/give @p minecraft:written_book 1 0 {title:"",author:"",pages:["{text:\"words\",color:black}","{text:\"more\",color:black}"]}
So I tried dropping the color:black part but nope...
This did NOT work:
/give @p minecraft:written_book 1 0 {title:"",author:"",pages:["{text:\"words\"}","{text:\"more\"}"]}
What am I missing here? What is the proper syntax for pages & text? I'm not trying to do anything fancy here with commands...just /give people a written_book with a bunch of simple black text already present (although I would eventually like to give them a book where they can click on text to get basic gear + TP to the spawn point).
The commands are too long for the chat (the character limit for chat input is 100 characters in 1.10, and the commands that are failing are longer than that). You must use a command block instead.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
I'm laughing here...of course, it's so simple! Thank you very much.
Thank you very much.
Sorry it took so long; updated the thread to 1.12 to include the "keybind" feature.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
I have moved this guide temporarily to Github (link) and will be updating it to 1.13 there in the coming weeks. I will eventually move it to a more permanent location.
This thread will no longer be updated, though feel free to continue asking questions.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Let's say, for example, that I have a few blocks near me in some particular order. Let's say, stone-dirt-gravel-gravel-cobblestone. And I want to output a message letter by letter using /tell, /tallraw, /say or anything else and a /detect. For this instance the message can be H-E-L-L-O. What commands should I use if I want this word to stay in one line and not output each letter in a different line?