Mob attack condition

Started by TheDuckKnight_Mc on

Topic category: Help with modding (Java Edition)

Last seen on 08:24, 14. Nov 2021
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?

Last seen on 14:43, 2. Aug 2022
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.

Last seen on 08:24, 14. Nov 2021
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.

Last seen on 14:20, 12. Dec 2021
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

Last seen on 14:20, 12. Dec 2021
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

Last seen on 14:28, 19. Apr 2024
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 :(