1

Colored Armor Command

ryan12439 5/3/20 12:04 pm
1.9k
5/4/2020 10:03 am
I am trying to put leather armor on players with the color that represents their team. It keeping giving errors when I run it.

/replaceitem entity @a[tag=teamred] slot.armor.head 0 leather_helmet 1 0 {"display":{"color":10040115}}

This command gives me a "Component "display" is not a valid component". So I tried:

/replaceitem entity @a[tag=teamred] slot.armor.head 0 leather_helmet 1 0 {"color":10040115}

and that spits out "Component "color" was not an object."

Any Ideas?
Posted by
ryan12439
Level 1 : New Miner
1

  Have something to say?

JoinSign in

6

mrurl42
05/04/2020 10:03 am
Level 43 : Master Procrastinator
I dont use bedrock but it looks like some of the optional parameters might be required if you are adding the nbt tag for color maybe?

https://minecraft.gamepedia.com/Commands/replaceitem
1
BlazeDrake
05/04/2020 9:31 am
Level 12 : Journeyman Button Pusher
you can /clone a dispenser & redstone block facing the person, with the dispenser having the right leather armor
1
oakar258
05/03/2020 2:38 pm
Level 69 : High Grandmaster Artist
Try this command:

/replaceitem entity @a[tag=teamred] armor.head minecraft:leather_helmet{display:{color:10040115}}
1
oakar258
05/03/2020 2:39 pm
Level 69 : High Grandmaster Artist
Ah, nvm, It's Bedrock Edition, not sure if this command will work.
1
ryan12439
05/03/2020 4:57 pm
Level 1 : New Miner
Yeah, I tried commands that I think were for java. I was unable to find them for bedrock.
1
oakar258
05/03/2020 5:33 pm
Level 69 : High Grandmaster Artist
Unfortunately Bedrock command system is pretty limited, you can't use custom NBT tags as on Java sadly.
2

Welcome