Is there a way to make a faction?

Started by Caviar_Standaard on

Topic category: Troubleshooting, bugs, and solutions

Active 3 years ago
Joined Jul 2020
Points:
629

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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?

Active 2 weeks ago
Joined Jul 2017
Points:
1021

User statistics:

  • Modifications: 1
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 480
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