Is there a way to make a faction?

Started by Caviar_Standaard on Wed, 04/13/2022 - 16:23

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there a way to make a faction?
Wed, 04/13/2022 - 16:23

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 21:31, 26. Jun 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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