1st: If a thing (bold for example) is false, its not necessary to put it in the command 2st: Its not necessary to put " in any location of this part of the command. (Same in "text":"Hi", "text" don't need to have it. ...And happens too with "extra":)
This just make the command so much big and confuse. If there is a motive that i don't know (like bugs if don't do like this in some reasons) so tell me.
1st: If a thing (bold for example) is false, its not necessary to put it in the command 2st: Its not necessary to put " in any location of this part of the command. (Same in "text":"Hi", "text" don't need to have it. ...And happens too with "extra":)
This just make the command so much big and confuse. If there is a motive that i don't know (like bugs if don't do like this in some reasons) so tell me.
For #1, I am aware of that and working on a solution. i'll probably implement it tomorrow.
For #2, Dinnerbone told me thats specifically how to do it.
1st: If a thing (bold for example) is false, its not necessary to put it in the command 2st: Its not necessary to put " in any location of this part of the command. (Same in "text":"Hi", "text" don't need to have it. ...And happens too with "extra":)
This just make the command so much big and confuse. If there is a motive that i don't know (like bugs if don't do like this in some reasons) so tell me.
The JSON format would specify quotes everywhere but on properties that are also valid identifiers (which all of these are) they are optional. Short version: don't quote the word before the :
Also, true and false are keywords so don't quote them, or the effect is likely going to set them both to true, unless the JSON parsing is particularly lax.
Lastly, re #1, you only need to set them to false in an extra if they were set to true in the main text and you want to turn them back off I believe. They are inherited from there.
[..] Lastly, re #1, you only need to set them to false in an extra if they were set to true in the main text and you want to turn them back off I believe. [...]
Thats a problem.. I tested and that really happens :\
So if someone do a bold in the main text, the site needs to put bold:false in all the extras...
(This happen with colors too obviously)
Thats a problem.. I tested and that really happens :\
So if someone do a bold in the main text, the site needs to put bold:false in all the extras...
(This happen with colors too obviously)
Yeah, thats my current problem. I'm having trouble getting the javascript to detect the previous one before it. I may have a checkbox that allows you to do strict or non-strict formatting on each extra snippet.
The Meaning of Life, the Universe, and Everything.
Join Date:
3/4/2012
Posts:
383
Minecraft:
ezfe
Member Details
New Features:
Improved Extras List
Deletion asks for a confirmation
I'm using table rows for each one now to improve formatting
Moved the manipulation buttons over to the left in their own table data element
Improved the handling of falses, for now. You can choose to show or hide them in the extras. Whatever goes wrong if you hide them is your problem atm, its a matter of how the game handles it. It will show them by default.
Minor optimizations and changes.
Yeah, thats my current problem. I'm having trouble getting the javascript to detect the previous one before it. I may have a checkbox that allows you to do strict or non-strict formatting on each extra snippet.
If you set up your data the right way .hasOwnProperty() might help.
The command block character limit is 16,369 characters, which is essentially half the maximum length for the String NBT tag. Still a very large amount, not likely to be an issue unless somebody goes crazy with their commands, but just wanted to clear that up.
There's also the "translate" option, which should replace the "text" tag in whatever the current depth is (but really it's whatever comes last). Alongside that can be arguments using the "with" tag. If a translation requires arguments and none are provided, the game will crash. So this may be an interesting one to implement if you feel like doing so.
Several examples for translation:
Basic:
item.ghastTear.name = Ghast Tear
/tellraw @a {translate:item.ghastTear.name}
Output (depends on language set by user):
Ghast Tear
Single argument:
achievement.openInventory.desc = Press '%1$s' to open your inventory.
The command block character limit is 16,369 characters, which is essentially half the maximum length for the String NBT tag. Still a very large amount, not likely to be an issue unless somebody goes crazy with their commands, but just wanted to clear that up.
There's also the "translate" option, which should replace the "text" tag in whatever the current depth is (but really it's whatever comes last). Alongside that can be arguments using the "with" tag. If a translation requires arguments and none are provided, the game will crash. So this may be an interesting one to implement if you feel like doing so.
Several examples for translation:
Basic:
item.ghastTear.name = Ghast Tear
/tellraw @a {translate:item.ghastTear.name}
Output (depends on language set by user):
Ghast Tear
Single argument:
achievement.openInventory.desc = Press '%1$s' to open your inventory.
The Meaning of Life, the Universe, and Everything.
Join Date:
3/4/2012
Posts:
383
Minecraft:
ezfe
Member Details
New Features:
Changed how to add extras, making way for language strings.
Fixed some bugs with when it detected changes
Fixed some bugs with how extras are removed
Improved mobile support. More coming.
For that you just need to type that in the text box, you don't need anything fancy.
Generate Minecraft Tellraw Commands, Books, and Signs!
In all the extras this happens:
"bold":"false","italic":"false","underlined":"false","Strikethrough":"false","Obfuscated":"false"
1st: If a thing (bold for example) is false, its not necessary to put it in the command
2st: Its not necessary to put " in any location of this part of the command.
(Same in "text":"Hi", "text" don't need to have it. ...And happens too with "extra":)
This just make the command so much big and confuse.
If there is a motive that i don't know (like bugs if don't do like this in some reasons) so tell me.
For #1, I am aware of that and working on a solution. i'll probably implement it tomorrow.
For #2, Dinnerbone told me thats specifically how to do it.
Generate Minecraft Tellraw Commands, Books, and Signs!
Hmm, but seems like thats optional too :3
I don't see a reason for using that.
The JSON format would specify quotes everywhere but on properties that are also valid identifiers (which all of these are) they are optional. Short version: don't quote the word before the :
Also, true and false are keywords so don't quote them, or the effect is likely going to set them both to true, unless the JSON parsing is particularly lax.
Lastly, re #1, you only need to set them to false in an extra if they were set to true in the main text and you want to turn them back off I believe. They are inherited from there.
(c:
Thats a problem.. I tested and that really happens :\
So if someone do a bold in the main text, the site needs to put bold:false in all the extras...
(This happen with colors too
obviously)Yeah, thats my current problem. I'm having trouble getting the javascript to detect the previous one before it. I may have a checkbox that allows you to do strict or non-strict formatting on each extra snippet.
Generate Minecraft Tellraw Commands, Books, and Signs!
Improved Extras List
Deletion asks for a confirmation
I'm using table rows for each one now to improve formatting
Moved the manipulation buttons over to the left in their own table data element
Improved the handling of falses, for now. You can choose to show or hide them in the extras. Whatever goes wrong if you hide them is your problem atm, its a matter of how the game handles it. It will show them by default.
Minor optimizations and changes.
Generate Minecraft Tellraw Commands, Books, and Signs!
If you set up your data the right way .hasOwnProperty() might help.
(c:
Hmm, thats bothersome, hadn't noticed that. I'll try to fix it later today.
Generate Minecraft Tellraw Commands, Books, and Signs!
If you do this then add a character than delete that character, the box will update and "Tes" will fix itself.
undefinedundefined
You can also press the new refresh button next to the output box.
Generate Minecraft Tellraw Commands, Books, and Signs!
Also, re my last post about hasOwnProperty, another useful thing is to compare using === rather than just == to check for exact types, etc.
(c:
Thanks, that fixed it.
Generate Minecraft Tellraw Commands, Books, and Signs!
Firstly, of course, very useful tool!
The command block character limit is 16,369 characters, which is essentially half the maximum length for the String NBT tag. Still a very large amount, not likely to be an issue unless somebody goes crazy with their commands, but just wanted to clear that up.
There's also the "translate" option, which should replace the "text" tag in whatever the current depth is (but really it's whatever comes last). Alongside that can be arguments using the "with" tag. If a translation requires arguments and none are provided, the game will crash. So this may be an interesting one to implement if you feel like doing so.
Several examples for translation:
Basic:
Output (depends on language set by user):
Single argument:
Output:
Single argument w/ formatting:
Dual argument:
Output:
Dual argument w/ formatting:
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/
Thanks for this, I'll put it on my to-do list for next weekend when my school work clears up.
Generate Minecraft Tellraw Commands, Books, and Signs!
Changed how to add extras, making way for language strings.
Fixed some bugs with when it detected changes
Fixed some bugs with how extras are removed
Improved mobile support. More coming.
Generate Minecraft Tellraw Commands, Books, and Signs!
also thanks for making this it is great.
Yes, I've tried in the past and may give it another shot soon.
Generate Minecraft Tellraw Commands, Books, and Signs!