Yes, it is possible to put colored armor on a person using a command.
To equip players with armor or other items, you can use the /replaceitem command.
The syntax of /replaceitem for replacing items in an inventory is /replaceitem entity <selector> <slot> <item> [amount] [data] [dataTag]
.
To do what you want, you can use the following commands:
Red colored leather armor
/replaceitem entity <player> slot.armor.head minecraft:leather_helmet 1 0 {display:{color:10040115}}
/replaceitem entity <player> slot.armor.chest minecraft:leather_chestplate 1 0 {display:{color:10040115}}
/replaceitem entity <player> slot.armor.legs minecraft:leather_leggings 1 0 {display:{color:10040115}}
/replaceitem entity <player> slot.armor.feet minecraft:leather_boots 1 0 {display:{color:10040115}}
Blue colored leather armor
/replaceitem entity <player> slot.armor.head minecraft:leather_helmet 1 0 {display:{color:6724056}}
/replaceitem entity <player> slot.armor.chest minecraft:leather_chestplate 1 0 {display:{color:6724056}}
/replaceitem entity <player> slot.armor.legs minecraft:leather_leggings 1 0 {display:{color:6724056}}
/replaceitem entity <player> slot.armor.feet minecraft:leather_boots 1 0 {display:{color:6724056}}
Simply replace <player>
with the player or entity you want to equip the armor on.
If you want to give the armor to a whole scoreboard team, you can replace <player>
with @a[team=<teamname>]'
.
If you want an other color than red or blue, you can simply Google "color picker" to find a color picker. When you have selected your color, you need to convert it from a hexidecimal to a decimal. For example, you can use this site. Enter the color value (example: #ffffff (white)) into the hexadecimal field without the hashtag and then press convert. Copy the number that appears into the hexadecimal field and replace <number>
in {display:{color:<number>}
with the decimal you just copied.