Up until the flood people and animals were vegetarian
Genesis 1:29 And God said, Behold, I have given you every herb bearing seed, which is upon the face of all the earth, and every tree, in the which is the fruit of a tree yielding seed; to you it shall be for meat. 30 And to every beast of the earth, and to every fowl of the air, and to every thing that creepeth upon the earth, wherein there is life, I have given every green herb for meat: and it was so.
The food taken into the ark was vegetation.
Genesis 6:18… with thee will I establish my covenant; and thou shalt come into the ark, thou, and thy sons, and thy wife, and thy sons’ wives with thee. 19 And of every living thing of all flesh, two of every sort shalt thou bring into the ark, to keep them alive with thee; they shall be male and female. 20 Of fowls after their kind, and of cattle after their kind, of every creeping thing of the earth after his kind, two of every sort shall come unto thee, to keep them alive. 21 And take thou unto thee of all food that is eaten, and thou shalt gather it to thee; and it shall be for food for thee, and for them.
After the flood God made a Covenant with Noah and gave him instruction to eat flesh. Humans and some of the animals became carnivores. The only prohibition for humans was the eating of blood.
Genesis 9:3 Every moving thing that liveth shall be meat for you; even as the green herb have I given you all things. 3 Every moving thing that liveth shall be meat for you; even as the green herb have I given you all things. 4 But flesh with the life thereof, which is the blood thereof, shall ye not eat.
When God brought Israel out of Egypt, he made a Covenant with them at Sinai and gave them a law which contained dietary restrictions.
Leviticus 11:1 And the LORD spake unto Moses and to Aaron, saying unto them, 2 Speak unto the children of Israel, saying, These are the beasts which ye shall eat among all the beasts that are on the earth. 3 Whatsoever parteth the hoof, and is clovenfooted, and cheweth the cud, among the beasts, that shall ye eat. 4 Nevertheless these shall ye not eat of them that chew the cud, or of them that divide the hoof: as the camel, because he cheweth the cud, but divideth not the hoof; he is unclean unto you. 5 And the coney, because he cheweth the cud, but divideth not the hoof; he is unclean unto you. 6 And the hare, because he cheweth the cud, but divideth not the hoof; he is unclean unto you. 7 And the swine, though he divide the hoof, and be clovenfooted, yet he cheweth not the cud; he is unclean to you. 8 Of their flesh shall ye not eat, and their carcase shall ye not touch; they are unclean to you. 9 These shall ye eat of all that are in the waters: whatsoever hath fins and scales in the waters, in the seas, and in the rivers, them shall ye eat. 10 And all that have not fins and scales in the seas, and in the rivers, of all that move in the waters, and of any living thing which is in the waters, they shall be an abomination unto you: 11 They shall be even an abomination unto you; ye shall not eat of their flesh, but ye shall have their carcases in abomination. 12 Whatsoever hath no fins nor scales in the waters, that shall be an abomination unto you. 13 And these are they which ye shall have in abomination among the fowls; they shall not be eaten, they are an abomination: the eagle, and the ossifrage, and the ospray, 14 And the vulture, and the kite after his kind; 15 Every raven after his kind; 16 And the owl, and the night hawk, and the cuckow, and the hawk after his kind, 17 And the little owl, and the cormorant, and the great owl, 18 And the swan, and the pelican, and the gier eagle, 19 And the stork, the heron after her kind, and the lapwing, and the bat. 20 All fowls that creep, going upon all four, shall be an abomination unto you. 21 Yet these may ye eat of every flying creeping thing that goeth upon all four, which have legs above their feet, to leap withal upon the earth; 22 Even these of them ye may eat; the locust after his kind, and the bald locust after his kind, and the beetle after his kind, and the grasshopper after his kind. 23 But all other flying creeping things, which have four feet, shall be an abomination unto you.
Leviticus 17:13 And whatsoever man there be of the children of Israel, or of the strangers that sojourn among you, which hunteth and catcheth any beast or fowl that may be eaten; he shall even pour out the blood thereof, and cover it with dust. 14 For it is the life of all flesh; the blood of it is for the life thereof: therefore I said unto the children of Israel, Ye shall eat the blood of no manner of flesh: for the life of all flesh is the blood thereof: whosoever eateth it shall be cut off.
The dietary restrictions taught spiritual lessons.
Israel failed to keep the Covenant and God promised a New Covenant to replace the old.
Jeremiah 31:31 Behold, the days come, saith the LORD, that I will make a new covenant with the house of Israel, and with the house of Judah: 32 Not according to the covenant that I made with their fathers in the day that I took them by the hand to bring them out of the land of Egypt; which my covenant they brake, although I was an husband unto them, saith the LORD: 33 But this shall be the covenant that I will make with the house of Israel; After those days, saith the LORD, I will put my law in their inward parts, and write it in their hearts; and will be their God, and they shall be my people. 34 And they shall teach no more every man his neighbour, and every man his brother, saying, Know the LORD: for they shall all know me, from the least of them unto the greatest of them, saith the LORD: for I will forgive their iniquity, and I will remember their sin no more.
Hebrews 8:7 For if that first covenant had been faultless, then should no place have been sought for the second. 8 For finding fault with them, he saith, Behold, the days come, saith the Lord, when I will make a new covenant with the house of Israel and with the house of Judah: 9 Not according to the covenant that I made with their fathers in the day when I took them by the hand to lead them out of the land of Egypt; because they continued not in my covenant, and I regarded them not, saith the Lord. 10 For this is the covenant that I will make with the house of Israel after those days, saith the Lord; I will put my laws into their mind, and write them in their hearts: and I will be to them a God, and they shall be to me a people: 11 And they shall not teach every man his neighbour, and every man his brother, saying, Know the Lord: for all shall know me, from the least to the greatest. 12 For I will be merciful to their unrighteousness, and their sins and their iniquities will I remember no more.
The New Covenant replaces the Old
Hebrews 8:13 In that he saith, A new covenant, he hath made the first old. Now that which decayeth and waxeth old is ready to vanish away.
The New Covenant was inaugurated by Jesus Christ.
Hebrews 12:24 And to Jesus the mediator of the new covenant, and to the blood of sprinkling, that speaketh better things than that of Abel.
The New Covenant was opened up to the gentles with the gospel. Those who believe the gospel and are baptised by immersion in water into Jesus Christ come under the New Covenant not the Old. Under the New Covenant there are no dietary prohibitions.
Romans 14:14 I know, and am persuaded by the Lord Jesus, that there is nothing unclean of itself: but to him that esteemeth any thing to be unclean, to him it is unclean.
1 Timothy 4:4 For every creature of God is good, and nothing to be refused, if it be received with thanksgiving:
In Christ there are no dietary prohibitions for us today.
I hope you find this helpful.