How can I Turn mob Agro when Player holds specific item

Started by Sinkom on

Topic category: Help with MCreator software

Last seen on 10:50, 9. Feb 2022
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I Turn mob Agro when Player holds specific item

I am trying to make a procedure that makes a mob agro towards the player once the player holds a specific item.
The mob has the fight back AI tag but I have no idea how to switch between it being on or not via a procedure, and
I can't seem to find a solution for this myself. 

How could I check for the player's main hand item, and turn the Mob agressive/"fight back" if it matches a certain item?

Last seen on 17:06, 2. Aug 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
We cant check that with a…
Tue, 11/23/2021 - 14:01

We cant check that with a specific player just yet, but you can iterate through mobs in a certain area and check if they are a player and holding that item

Last seen on 10:50, 9. Feb 2022
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you but I wish for it…
Tue, 11/23/2021 - 17:48

Thank you but I wish for it to check a specific item, not a specific player. If the item is matching, turn the custom mob(s) agressive towards the player, but I do not know how to set this up