Tamed mobs attack other tamed mobs

Started by Falkspyro on

Topic category: Help with modding (Java Edition)

Last seen on 13:37, 12. Jun 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tamed mobs attack other tamed mobs
Thu, 07/28/2022 - 18:12 (edited)

I want to make a condition for my mob. I've been having difficulties involving tamed mobs attacking each other, is there a way to make a condition that'll make the passive toward other tamed mobs.

Edited by Falkspyro on Thu, 07/28/2022 - 18:12
Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For a lot of ai tasks you…
Thu, 07/28/2022 - 23:20

For a lot of ai tasks you can create conditions, just double-click the "Conditions: 00" on the block.
https://imgur.com/HQobaUX

Make a procedure and use the logic "return" block(found in flow control tab, the 6th one). Don't just return "true" or "false", use a nbt tag or variable instead.