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?
/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?
6
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
https://minecraft.gamepedia.com/Commands/replaceitem
you can /clone a dispenser & redstone block facing the person, with the dispenser having the right leather armor
Try this command:
/replaceitem entity @a[tag=teamred] armor.head minecraft:leather_helmet{display:{color:10040115}}Ah, nvm, It's Bedrock Edition, not sure if this command will work.
Yeah, I tried commands that I think were for java. I was unable to find them for bedrock.
Unfortunately Bedrock command system is pretty limited, you can't use custom NBT tags as on Java sadly.
