replace item command code example
Example: replaceitem villager command minecraft 1.15
/replaceitem entity @e[type=Villager] slot.armor.head minecraft:stone
/replaceitem entity @e[type=Villager] slot.armor.head minecraft:stone