Is there a way to make a faction?

Started by Caviar_Standaard on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 19:53, 14. Apr 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to make a faction?

I want my mobs to attack each other, but I don't want them to attack another one of themself or something like a minion, is there a way to make a faction or something to do this?

Last seen on 12:31, 22. Jan 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
groups of things are…
Mon, 04/18/2022 - 20:43

groups of things are categorised in minecraft as tags

make a tag with type entity, add your mobs to it, and then make an attack AI task, the target should just be EntityLiving, then click on the thing on the right that says "Conditions: OO", and add a procedure to it

this procedure should go like: if event/target entity has tag [faction], then return true, and put return false at the end