filter not being honored for hurt_by_target in specific circumstance
Verification builds: Release 920093 - 1.5.0.3 BETA
Summary: Component groups not properly being honored by multiple entities in certain circumstances. Hard to explain but reproducible in Mutant Battle Arena using the following steps.
Repro Steps:
- Download Mutant Battle Arena
- Activate Mutant Battel Mode
- go to the llano (green) side of the arena
- Summon a zombie using the button
- Join the team with the "join team" button
- Hit the zombie
Observed Results:
- When summoning the zombie, and any other mob, it adds a specific component group that prevents it from attacking anyone with a golden helmet.
- The same piece of code is used for ""minecraft:behavior.hurt_by_target":" and ""minecraft:behavior.nearest_attackable_target": "
- the mob honors behavior.nearest.target but in this case does not honor the filter for behavior.hurt_by_target.
- The Ecru (yellow) side has the exact same components but for a chainmail helmet and both hurt_by and nearest_attackable is honored and works correctly.
- I can verify that the component group is being added correctly because of the other components in the group being added.
Expected Results: the llano mobs shouldn't hit you when wearing a golden helmet
Impact: it lessens the feeling that you're joining a team if the mobs are targeting you when you punch them.
I have attached an example behavior being used to verify accuracy and video of how to reproduce. https://youtu.be/Aau_hcnayQ8