Passive Mobs
Overly aggressive monsters getting you down? Just want some peace for once in your life? Let's all just calm down and relax, shall we?
Passive Mobs prevents hostile mobs from targeting and attacking, essentially turning all creatures in the game passive.
If you want certain mobs to be hostile again, you can tag them using the data pack tag system for entity types with the following tag:
data/minecraft/tags/entity_types/immune_to_pacification.json
NOTE: This tag unfortunately does not work on entities that use the brain system (as the brain does not reference the entity, so I can't check for it)