I have this loot table in my datapack:
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:loot_table",
"name": "vanilla:entities/cow"
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "item",
"weight": 1,
"name": "minecraft:player_head",
"functions": [
{
"function": "set_count",
"count": 1
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Cow.Head\",\"italic\":false}'},SkullOwner:MHF_Cow}"
}
]
}
]
}
]
}
It's located in datapackName/data/minecraft/loot_tables/entities/cow.json
. But when I kill a cow, it only drops the head, no leather or beef. How do I fix this?