Place on Head [DATAPACK]

A /head command but for vanilla Minecraft!