loot table not working?

I've made a datapack in the past that edited the loot table for Evokers to have different variants of totems, but they changed the method I used since I created the old one. I've been trying to get it working but to no avail. Does anyone know what's wrong with this? Thanks.
Continue to help post