I need help when one to detect when an entity is in attack mode and when it is in passive mode

Started by ConvertSystems on

Topic category: Advanced modding

Last seen on 19:58, 28. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help when one to detect when an entity is in attack mode and when it is in passive mode

I am making a mob so that when it is in passive mode it carries an item in its secondary hand and when it is in attack mode it carries an item in its main hand but I don't know how to do it, help me.  

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I usually detect if the…
Sun, 10/08/2023 - 12:32

I usually detect if the entity is targeting another entity for attack to determine if it is hostile or passive. If it's not targeting an entity for attack, it would be passive.

I can't remember if this procedure block is part of a plugin though.

Last seen on 19:58, 28. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could I do so that the…
Mon, 10/09/2023 - 00:36

How could I do so that the verification is repeated, for example if it is hit, it checks if it is attacking and after a while it is repeated to update the state and see if it is not attacking.