Minecraft / Blogs

How to get Colored Items using only /give command! (SOLVED)

  • 2
  • 1
  • comment2
  • playlist_add
  • share
  • more_horiz
avatar DiamondPlayables
Level 35 : Artisan Crafter
26
By the way, if you found this tutorial helpful then please share it to everyone the link of this tutorial.That would really help me out as it took me really long to test all of this for you guys.

What the title says, it's time to show you how to get colored items using only /give command.
Steps:
(Provided that your key for inputting commands is "/" by deafult)
1.Open chat zones
2.Type in
"/give <playername> <item>{<nbt>} <count>"
Modify-able things details:
<playername>:
The player name of who is recieving this item
<item>: The item that the <playername> is going to recieve
<count>: The amount of items that you want the <playername> to recieve
<nbt>: Where the custom name is going to go in
<nbt> Format:

For ones who know how /tellraw works:
The same format used for /tellraw interfaces, but every quotation mark needs to be accompanied with a forwardslash "\" so that the command itself understands that it's part of the format
Example: In tellraw you have {"text":"Share this blog"} then in /give NBT tag you must do this: {\"text\":\"Share this blog\"} for the command to understand.


display:{Name:"[{\"text\":\"<text>\",\"color\":\"<color>\",\"bold\":\"<true or false>\",\"italic\":\"<true or false>\",\"obfuscated\":\"<true or false>\"}]"}

Modify-able things details:

<text>: Whatever text you wanted to add such as
"Subscribe to TheDiamondPlayables" or "Check out my other projects" ... you get the idea.
<color>: All the team color that you can possibly modify into (from /team modify command) can be used as color for item names.
(Such as light_purple,aqua,yellow and much more...)

<true or false>: Type in "true" or "false"

Stuck somewhere? Ask me in the comments or learn from this example!

Example:
(Copy and paste into a command block if you want to see if it actually works or not)/give @a minecraft:golden_apple{display:{Name:"[{\"text\":\"Subscribe \",\"color\":\"light_purple\",\"bold\":\"true\",\"italic\":\"false\",\"obfuscated\":\"false\"},{\"text\":\"to \",\"color\":\"aqua\",\"bold\":\"false\",\"italic\":\"false\",\"obfuscated\":\"false\"},{\"text\":\"TheDiamondPlayables\",\"color\":\"green\",\"bold\":\"true\",\"italic\":\"false\",\"obfuscated\":\"false\"}]"}} 1
This technique will be seen in my upcoming datapacks. Subscribe if you don't want to miss out on any of it. And like I said, if you found this useful be sure to share this with everyone. I appreciate your support.
Tags

Comments : 2

star Login or register to post a comment.

Show Comments

1 - 2 of 2

If you want to showcase this technique then be sure to credit me in the description and in the video as well.

And yes, I had to figure this out myself since there is no site that I've found to this date shows off this technique.
So if you did found some tutorial that showed off my trick without leaving a credit or anything then be sure to let me know.
Update:After 30 edits the color text bug still occured, preventing me from making this color-coded for you to be able to see it easier. So you have to put up with this style for now. I tried my best.

1 - 2 of 2

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome