Add Target argument to Spawn command to set a target for the entity to attack. Example usage: - spawn entity:iron_golem target:n@2