Making an entity run away from the player unless they're sneaking

Started by teny on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 10:51, 2. Dec 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making an entity run away from the player unless they're sneaking

Hi, I wanted to make a mob that runs away from the player, unless the player is sneaking. I tried doing it myself, but for some reason it doesn't work.

 

Here's the entity's AI

First Screen

And a procedure that is used as a condition

Second Screen

 

Could anyone tell me how to make it work?

Last seen on 14:33, 6. May 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Event/target entity should…
Sun, 06/11/2023 - 11:13

Event/target entity should be get nearest entity of type c

Last seen on 14:22, 4. Oct 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe Event/target entity in…
Sun, 06/11/2023 - 12:15

Maybe Event/target entity in the condition means the mob and not the player?