Is it possible to make a mob attack a player if the player has a specific item in hand/inventory?

Started by OldWizardLvl42 on Mon, 07/13/2020 - 19:38

Topic category: Help with modding (Java Edition)

Last seen on 03:44, 11. May 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to make a mob attack a player if the player has a specific item in hand/inventory?
Mon, 07/13/2020 - 19:41 (edited)

The title says it all, I'm trying to make a mob that will attack the player if the player has a specific item in their hand/inventory.

Edited by OldWizardLvl42 on Mon, 07/13/2020 - 19:41
Last seen on 10:39, 24. Aug 2020
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I have the same question :o…
Fri, 08/14/2020 - 13:04

I have the same question :o

But for me, it's a little bit different...

When the player right clik on the mob, it's sending a message. But I would like if it's the 3rd times that the player right click the mob  -> the mob attack the player  (>w<)'

maybe if we connect procedure ?