I created a texture for a cake. Its not working. Its purple and black. And if i place the cake it forgets his custom model data and becomes a normal cake
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/cake"
},
"overrides": [
{"predicate": {"custom_model_data": 50012}, "model": "item/cake/first_anniversary_cake"}
]
}