I couldn't find a more adequate location to put this post. I'm new at trying to mod, and currently all I want to do is make an iron golem be able to be tamed. I figured the first step would be to figure out how to tempt it, so I copied and pasted the tempt code from another animal (the cow) into the iron golem's components. However, this did nothing, no matter what I tweaked (priority, items, etc.). To try to narrow down what the issue might be, I also pasted the code into a villager's components and tested it (after changing the item to an emerald). In this instance, it worked flawlessly.
Below is the code that I have given the iron golem, plus a couple lines above and below for context.
If anyone can either see what is wrong or come up with any results that differ from my own, please let me know. Also, if there's a dedicated category for posting these sorts of topics please redirect me to it. Thanks for your help.