minecraft inventory slot for offhand 1.15.2 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