Help With Mob AI attack

Started by Justkevin61 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help With Mob AI attack
Sat, 08/03/2024 - 10:15 (edited)

Hello Everyone, im new to mcreator and i need help about mob attack inconsistency.

I have created a custom mob and made it aggresive but it have inconsistency in dealing damage, sometimes the mob just stare at me and wait until i move then it will deal damage to me, here's a video :

https://youtu.be/90_mbTEnn9Q

Here's my block procedure :

https://drive.google.com/file/d/1t4kQnT7g0y-jnxxTBHTiQI5zDgYVnP7M/view?usp=sharing

i've tried to checked in sight only or nearby only but the result still the same

Sorry for bad english

thank you for reading

EDIT :

the above mob and footage is in 2024.1 version and i havent updated that workspace.

so heres a new custom mob footage, and screenshots with the same problem as the above custom mob

Ai and Goals : https://drive.google.com/file/d/13cHiwNnSYoECitNeK21VnlzuSSNG1gT4/view?usp=sharing

custom mob footage : https://youtu.be/3FsEMIx5YVI

mob hitbox settings : https://drive.google.com/file/d/1gh8LDoJcbBxFX7KC85CLFUYR3NNJx-c6/view?usp=sharing

 

 

Edited by Justkevin61 on Sat, 08/03/2024 - 10:15
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i still need help with this…
Fri, 08/02/2024 - 08:21

i still need help with this if anyone might be able to offer some advice, pls reply 


 

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you make a Screenshot of…
Fri, 08/02/2024 - 19:57

Can you make a Screenshot of the entire "AI and Goals" Screen?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hello thank you so much for…
Sat, 08/03/2024 - 06:50

hello thank you so much for responding, i have updated the topic

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i lowered the custom mob…
Sat, 08/03/2024 - 07:07

i lowered the custom mob width/depht to 0.875,the custom mob gap problem between it and its target become smaller but still sometimes the mob stop attacking its target and just starring at it 

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think the priority of the…
Sat, 08/03/2024 - 07:08

I think the priority of the AI Tasks are important (but I'm not sure). There is a Template for an AI Task to make the entity attack the player. Try that and recreate your AI Tasks in the right order.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried the ai template…
Sat, 08/03/2024 - 09:13

i tried the ai template thing, used the "mob aggressive towards player" at first the problem still the same because the mob gap, but then i add the combat range block procedure on top of combat melee and it WORKS :D the mob now attack the player and even push the player. i didn't know theres an ai template thing and now i know it really help me with the ai priority management.

Thank you :D

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i experiment it a bit and…
Sat, 08/03/2024 - 10:15

i experiment it a bit and turns out in order for a mob attack its target properly you have to use both combat melee and range attack block procedures, place the range one on top of the melee one, check the (chase after lost sight) only for the melee one and DON'T check the range one.

 

so i guess it is a bug.