Entity attack condition causes crash

Started by azul1462 on

Topic category: Help with modding (Java Edition)

Last seen on 22:12, 13. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity attack condition causes crash

I am trying to make entities that behave aggressively towards any living entity except for themselves. I have been trying to achieve this through a condition that checks for if the attack target has the specific tag or not. Each attempt to use the tag system has resulted in instant crashes from a null being called. I have looked everywhere for a solution, but everything keeps pointing to the use of the [get entity [event/target entity] is targeting for attack] which is CAUSING THE CRASHES IN THE FIRST PLACE.

Is there a way I can get the entity to attack anything that lacks the tag without using the [get entity [event/target entity] is targeting for attack] procedure block?

Last seen on 22:12, 13. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is my first time using…
Fri, 02/16/2024 - 01:17

This is my first time using Imugr, so I am unsure if the link works properly but here are screenshots of the procedure and mob ai I used and the crash. I'm fully aware of the NullPointerException crash as this is not my first rodeo with that type of crash.

https://imgur.com/a/dm5qnj4