i found a yt tutorial to make a datapack and i dont know why its not working

i dont know why its not working or how im supposed to do it but my goal is to make eatable mushrooms that give potion effects ( all the files i sent is the ones i made)

Continue to help post