[][0]

You can achieve friendly effect by setting base of [**`generic.followRange`**](https://minecraft.wiki/w/Attributes#Attributes_Available_on_All_Living_Entities) attribute of a hostile mob to **`0`**. However doing so will completely disable targetting & tracking ability of a said mob. For example, here's the command to summon _friendly blaze_ using this method:

    /summon Blaze ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:0}]}

[][0]

[0]:#