put 3 blocks where the golem is than kill it then put a new one which wont attack you ever unlesss its spawned using commands than kill them or fences if your less evil
I LEGIT HAVE 3 VILLAGERS IN MY HOUSE AND THEY USE MY STUFF AND DON'T F**KING CARE; AND IF I ATTACK THEM, THEN THE IRON GOLEM BEATS THE HELL OUTTA ME, AND I CAN'T KEEP THEM FROM COMING IN THOUGH MY DOORS