Executing an action when the monster target a new entity

Started by Iflamee2003 on

Topic category: Help with MCreator software

Last seen on 15:25, 16. Sep 2022
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Executing an action when the monster target a new entity

Hello, I making a corruption mod and I wanted to add a corrupted endermen. I succed in adding him in the game and I want to make him more reactive.

I want him to scream once at his target when he spot his victim. I also want him to scream again if he change target ( like another entity hit him ).

I tried to use local variables like : "previous_target" and "new_target", I also tried to use global variables like :"can_scream" (logic variable) but it doesn't work.

 

{The mob reference is the warden when he target an entity that making sound, he scream and execute pursuit}

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont know if it is one of…
Wed, 08/31/2022 - 23:07

i dont know if it is one of my plugins but I have a can entity see entity procedure, so id use that. I don't know if thats just if its POSSIBLE to see them though, you may have to do some math with the yaw and rotation.