Mob attack condition

Started by TheDuckKnight_Mc on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob attack condition

I tried to make a mob that attacks the player only when the player isn't wearing diamond armor, but it attacks me no matter what. I used the "attack (in sight only) (nearby only) entities of type" block and set it to "EntityPlayer". I made this procedure: Procedure here and set it as the condition for the mob on the attack block both as "additional start condidtion" and "additional continue condition", but, as I said, it doesn't work. Can someone help me?

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it is checking if…
Sun, 12/13/2020 - 14:36

I think it is checking if the mob is wearing armour instead of the player.

Try replacing target entity with get target of event target entity.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THAT WORKED! Thank you.
Sun, 12/13/2020 - 14:58

THAT WORKED! Thank you.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you make the ai…
Sun, 02/21/2021 - 15:27

how do you make the ai conditons and where do you find the or procedure block

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you send a picture of…
Sun, 02/21/2021 - 16:19

can you send a picture of the procedure plz

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need procedure block too :(
Sun, 10/31/2021 - 21:10

I need procedure block too :(