Timeline for How do you enchant and name items with /give using command blocks?
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 29, 2020 at 3:06 | comment | added | One 2 Many |
The only problem is that with single quotes you now need to escape every single quote \' instead of every double quote. But this is still better, because you won't need to use single quotes anywhere in JSON text.
|
|
Jul 29, 2020 at 3:03 | history | edited | One 2 Many | CC BY-SA 4.0 |
Fixed command
|
Jul 28, 2020 at 20:38 | history | edited | naisuu42 | CC BY-SA 4.0 |
added 83 characters in body
|
Jul 28, 2020 at 20:36 | comment | added | naisuu42 | ah i see, i'll put that as the first option and the original as the second. i didn't realize that it replaces the backslashes, sorry. big brainfart. | |
Jul 28, 2020 at 20:17 | comment | added | naisuu42 | I don't really see why though, the answer would remain completely unchanged in that value is not added with the edit. | |
Jul 28, 2020 at 17:47 | comment | added | One 2 Many |
Yes, they've changed it to be more like Python, accepting both single and double quoted strings. With all NBT JSON text string tags, they are now converted into single quoted ' format, no matter how you type them. So typing Name:"\"hello world\"" would automatically be converted into Name:'"hello world"' .
|
|
Jul 28, 2020 at 17:45 | comment | added | naisuu42 | hmm, so strings don't work the same way in minecraft as in programming (i.e. java)? that's interesting. I had never noticed because I'm used to using double quotes. | |
Jul 28, 2020 at 17:42 | comment | added | One 2 Many |
In 1.14+, you can actually use single quoted strings instead of double quoted strings. So instead of: Name:"{\"text\":\"This is ExpertCoder14's computer\"}" try this instead: Name:'[{"text":"This is ExpertCoder14\'s computer."}]'
|
|
Jul 28, 2020 at 15:28 | history | edited | naisuu42 | CC BY-SA 4.0 |
added 16 characters in body
|
S Jul 26, 2020 at 21:13 | history | suggested | Glorfindel | CC BY-SA 4.0 |
capitalization, formatting
|
Jul 26, 2020 at 20:10 | review | Suggested edits | |||
S Jul 26, 2020 at 21:13 | |||||
Jul 26, 2020 at 16:37 | history | edited | naisuu42 | CC BY-SA 4.0 |
added 16 characters in body
|
Jul 26, 2020 at 14:35 | review | Late answers | |||
Jul 26, 2020 at 20:10 | |||||
Jul 26, 2020 at 14:18 | history | answered | naisuu42 | CC BY-SA 4.0 |