Obtain Custom and Player Heads in Survival!
You can find the values for custom heads on this site.
This Data Pack allows you to get custom heads in vanilla minecraft using a villager and a Book&Quill. To do so, just summon the skull merchant, craft a bunch of heads, choose a head value or a player name, paste it in a Book&Quill (in case of the player head sign the book with the name of the player), and then add the trade to the merchant.
Add a trade for a custom head: to add a trade for a custom head, simply paste the value of the head you want on a book, then shift and right-click on the villager to teach him the trade.
Add a trade for a player head: to add a trade for a player head, simply sign a book with the name of the player, then shift and right-click on the villager to teach him the trade. The book will be consumed and a new one will be given to you.
To uninstall the Data Pack run the command /function custom_heads:uninstall. When the uninstallation process is completed a confirmation message will be sent in the chat.