can spawn eggs actually use the "food" component?

Im making a datapack where i need spawn eggs to create ''custom'' blocks with unique drops, so im trying to make a spawn egg able to be ''planted'' and eatable at the same time, it is not working as of now.

Continue to help post