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

Started by teny on

Topic category: Troubleshooting, bugs, and solutions

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?

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

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?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey! I don't know if you're…
Wed, 10/23/2024 - 19:04

Hey! I don't know if you're still around and wanting to get this thing working, but I've found a simple solution:

https://i.imgur.com/yHe4Ge3.png

Hope it helps you or anyone else who's interested.