6

This is my first question and forgive me if I am doing anything wrong.

I am in 1.13 Pre-Release 7 trying to make a one command creation and I need an item with a specific name. The command I use is /give @p diamond_sword{display:{Name:"Sword of Power"}} and it gives my a diamond sword, but it doesn't have the name.

This is me trying the command This is me running the command.

This is the command not working This is the command not working.

Please help me.

  • 1.13 has made many things JSON. I'm currently not on my computer, can you try this? /give @p diamond_sword{display:{Name:"\"text\":\"Sword of Power\""}} or maybe this: /give @p diamond_sword{display:{Name:"{\"text\":\"Sword of Power\"}"}} – Fabian Röling Jul 13 '18 at 7:19
  • THANK YOU @FabianRöling! Than means I can change the color of the text! THANK YOU AGAIN! – Unknown Jul 13 '18 at 19:14
9

In 1.13 many things are JSON that were previously just simple strings. So the syntax is now:

/give @p diamond_sword{display:{Name:"{\"text\":\"Sword of Power\"}"}}

This also means that you can colour the text, make it underlined, translatable, obfuscated, etc.

1

It's /give @p diamond_sword{display:{Name:"\"Sword of Power\""}}

  • 1
    Thank you for your answer, it will make my commanding easier. – Unknown Mar 2 at 4:37
-2

P.S you could just use https://mcstacker.net/1.14.php as an easier way of making stuff

  • 2
    while the link may be helpful, it is generally best instead of just linking a tool, explain how it can be used to solve the asker's problem – Dragonrage Jun 11 at 23:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.