Procedure when Entity has target (SOLVED)

Started by BryAstro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure when Entity has target (SOLVED)
Thu, 12/21/2023 - 00:33 (edited)

I would like to make a part of the procedure that only activates when the Mob makes an attack target. And when there is an attack target, it should be during a entity tick.

Edited by BryAstro on Thu, 12/21/2023 - 00:33
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
keep in mind that this is…
Tue, 12/19/2023 - 11:52

keep in mind that this is the specific part of the procedure I would like to only be activated when the Mob detects an attack target.

 

https://imgur.com/a/7gTWXnv

 

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you checked the global…
Tue, 12/19/2023 - 13:02

Have you checked the global trigger "Entity sets it's attack target"?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, but when I did it, it…
Tue, 12/19/2023 - 23:24

Yes, but when I did it, it would activate when ANY entity sets it's attack target.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I made the…
Tue, 12/19/2023 - 23:47

Nevermind, I made the procedure check if the entity is the certain entity, and it is working! Hopefully it doesn't crash though, and if it does, I will let you know

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It still does entity tick…
Wed, 12/20/2023 - 00:33

It still does entity tick crashes (albeit occasionally), what should I do?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Show me your updated…
Wed, 12/20/2023 - 13:14

Show me your updated procedure. 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if Get entity is targeting…
Wed, 12/20/2023 - 13:46

if Get entity is targeting for attack not equal No entity
then
Just use search in procedures, search word "target". "no entity" is in Advanced block.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for helping! It works!
Thu, 12/21/2023 - 00:33

Thanks for helping! It works!