Rhapsody replied to Question about defensive walls? February 10, 2023 @ 9:01:57 am PST
The main purpose of walls is to break mob line-of-sight (LOS). Mobs won't aggro if they can't see you or any base structures, they'll just wander around alerted outside.
Oh, that's VERY useful information that I wasn't (at least entirely) aware of. It helps to explain why at my main base, it's so peaceful. The only thing that has ever been attacked is a wagon sometimes when I leave it outside of the wall after gathering wood.
It's a similar case for me, but I believe that's not the whole truth. I don't know how mob AI really works, but some structures and objects will attract hostile attention even if the players are hidden or away. That was one problem with wisp torches until the latest patch for example.
Edit: Another case is sap extractors and workbenches. Mobs will readily target workbenches but leave the extractors alone. It's rather bizarre.
6:13 pm, February 10, 2023