This is a port of the mod OnlyLooking by bagu_chan500 for NeoForge 1.21.1
In a short summary, this mod restricts mob aggro to line-of-sight. If you are out of the line of sight for a mob, they won't target you. Mobs will follow any unusual noises, e.g. arrow strikes or hurt sounds.