absolute beginner, no idea what im doing wrong lol!

ive been working on a pack, really just to see if i can do it/ wanting to do it. my minecraft doesnt let me use the pack because of some errors, saying theres unbound values. Ima simple man, with a simple brain. This code stuff is entirely new to me, so any help would be genuinely so appreciated.❤️
Continue to help post