Need help with condition for mob AI

Started by Twebster9000 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with condition for mob AI

I need help creating a condition.

This is what I have so far:

https://imgur.com/a/ZFAZ7ep

What I want to do is make it detect if a player is wearing a certain armor piece, so I can make my mob hostile to that player.

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do you know how to detect…
Thu, 02/08/2024 - 00:57

do you know how to detect player nearby?
you will able to do it with a procedure block.
detect player nearby and compare player's armor slot with armor items.
if player have armor, return true.
then use full of the procedure at entity AI block condition.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the screenshot of my…
Thu, 02/08/2024 - 03:18

In the screenshot of my procedure I tried this, but was getting an error about the return logic blocks.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe try using the get…
Fri, 12/06/2024 - 03:53

maybe try using the get event/target entity target block so it will check the entity its targeting  for if they have the armour