Custom Entity only attacks mobs with weapons

Started by basil on Fri, 07/29/2022 - 14:43

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Entity only attacks mobs with weapons
Fri, 07/29/2022 - 14:43

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!