Summon a husk with an attack damage of 0 and resistance so it won't die: `/summon husk ~ ~ ~ {active_effects:[{id:"minecraft:resistance",amplifier:5,duration:-1}],attributes:[{id:"minecraft:generic.attack_damage",base:0}]}`
And summon an iron golem for the husk to attack: `/summon iron_golem ~ ~ ~`
Summon a husk with an attack damage of 0 and resistance so it won't die:
`/summon husk ~ ~ ~ {active_effects:[{id:"minecraft:resistance",amplifier:5,duration:-1}],attributes:[{id:"minecraft:generic.attack_damage",base:0}]}`
And summon an iron golem for the husk to attack:
`/summon iron_golem ~ ~ ~`
And let the husk attack the iron golem