AiTargetSelector - SpecificFaction [Faction] does NOT work!
Closed
AiTargetSelector - SpecificFaction [Faction] does NOT work!
Summary If you create a MythicMob with this value:
AiTargetSelectors: 0 clear 1 specificfaction Humans
It will attack ALL players, no matter what faction they are or if they even have a faction at all. This is a known bug that's been around for over a year.
Steps to reproduce
AiTargetSelectors: 0 clear 1 specificfaction Humans
Just use these target selectors and you will get attacked by the mob. Try changing your faction too to see if that does anything.
Current behavior
All players get attacked by a mob who should only attack players in the Humans faction.
Intended correct behavior
Only players in the Humans Faction should get attacked.
Server log file
N/A absolutely nothing regarding this problem shows in log.
Debug log snippet
N/A
Proposed fixes
SpecificFactionMobs works perfectly, so the implementation should be very similar.
TestAISpecificFaction: Type: HUSK Faction: test AIGoalSelectors: - clear - meleeattack AITargetSelectors: - clear - specificfaction enemy TestAISpecificFaction2: Type: HUSK Faction: enemy AIGoalSelectors: - clear - meleeattack AITargetSelectors: - clear - specificfaction test
these two mobs attack each other for me and do not attack anything else, as intended
Edited by Ashijinadded Could Not Replicate label