function not working for some reason

im trying to make a function in a data pack to display a rift out of particles, but it says unknown function. im using an outdated program to get the code automatically but i wanted to get it working before i manualy fixed every command, but it doesnt work even if i remove the commands that dont work its still not showing, also im using version 1.21
Continue to help post