EngineHub / CraftBook

🔧 Machines, ICs, PLCs, and more!
https://enginehub.org/craftbook/
GNU General Public License v3.0
301 stars 160 forks source link

(BetterAI) Mobs with attack-passive enabled will attack ones attached to jockeys #1326

Closed Aviside closed 3 months ago

Aviside commented 3 months ago

The Problem

In BetterAI I have mobs attacking passive ones enabled. But I run into this problem where they will attack the passive animals on jockeys which results in them being disassembled. Mounts are quite helpful for hostile mobs and having them killed reduces their lethality.

Any feature that solves this would be greatly appreciated, thanks for your time!

A Solution

Developing a config option that checks if a passive entity is mounted to a hostile entity before the targeting is decided. (If the passive mob has a hostile rider, don't target it.)

me4502 commented 3 months ago

Added in e78d0d3cc33a027473d0809c2c3ee507c517ff13