How to make a hostile mob go indoors ?

Started by Renko on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 13:23, 19. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a hostile mob go indoors ?

Hello,

I am trying to make a hostile mob to go indoor at any time. But I can't figure out why it isn't working.

Should I make a condition in this situation ? The hitbox of the entity is not too big

 

AI tasks / goals list

v

Do Melee/contact attack with speed factor 1.2 (chase after lost sigh ->) Condition:00

v

Fight attacker mob back, call for help Condition:00

v

Move indoors if possible Condition:00

v

Open doors

v

Wander around (enables walking) with speed factor 0.8

v

Attack entities type : Player

 

Thanks you in advance for any help !

Last seen on 13:23, 19. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After more search and…
Wed, 12/15/2021 - 01:28

After more search and experimentations, It seems that the entity sees the door as a full/impassable block so it doesn't try to pathfind through the door to attack the player. Only when the door is open that the entity see the player and try to get to it. But then if you close the door before the entity enter. It will try to search a new path without success and not entering though the door

I tried too with "Close" and "Open door" at highest priority and also "move indoors". If anyone know a fix or an another way to make it work. I would be pleased