1.21.3 consumable/food components (/give command)

how to make a edible item which converts to a another one and gives effects after eating?
Continue to help post