Works as designed
Mod Element -> Recipes: Block.CAKE not working when trying to craft as recipe output
Not sure if other blocks or items might have the same issue. I did not test them all. However, I will say that Item.CAKE works fine.
Use Items.CAKE instead. This is how it was designed to work by developers of Minecraft.