Custom Entity only attacks mobs with weapons

Started by basil on

Topic category: Help with modding (Java Edition)

Last seen on 17:16, 16. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Entity only attacks mobs with weapons

Hello, I’m creating a tiger mob and i’d like to add a condition that causes the tiger to attack entities in its radius if that entity has a weapon in its main hand. I tried to go to the AI but it’s very limited in terms of code and conditions. What kind of procedure or code would i need to implement to get this done? Thanks!

Last seen on 20:01, 8. Dec 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This here isn't exactly what…
Mon, 10/02/2023 - 01:23

This here isn't exactly what you're looking for but might get you going in the right direction