Dumb Spray
As the name suggests, Dumb Spray is a humorous mod that adds two special potions to the game: "Potion of Dumbness" and "Super Potion of Dumbness".
The regular potion of dumbness temporarily disables the artificial intelligence of all entities, turning them into mindless idlers. Affected mobs stop attacking and simply roam aimlessly around the area, occasionally turning. Their normal behavior returns after reloading the game world or reloading chunks.
The super potion of dumbness works more radically - it permanently deprives creatures of their intelligence. Mobs freeze in place as if time has stopped for them. Both potions do not affect players due to unexplained magical phenomena that scientists have yet to decipher.
For modpack creators, there is an option to remove the default recipes for these potions. There is also a /dumb command that works similarly to using the regular dumbness potion on a selected creature - this function can be completely disabled if necessary.
Technical details for developers:
The regular potion of dumbness removes all EntityAITask tasks from EntityLiving creatures and adds EntityAILookIdle to them, while it does not affect EntityPlayer.
The super potion calls the setNoAI(true) method on EntityLiving creatures, which is equivalent to using the vanilla /entitydata command with the {NoAI:true} parameter.