Procedure - How to detect an item in the armor slot?

Started by NotDj on

Topic category: Help with modding (Java Edition)

Last seen on 20:09, 14. Jun 2018
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure - How to detect an item in the armor slot?

As the title suggests, I want to be able to detect if a player is wearing a certain armor piece.

My problem so far is that I can't find any procedure that can do this, there is one in "GUI Management" but if I use this then the procedure can't be chosen. Since I can only use the X/Y/Z, world, entity and Itemstack tag.

I have tried for many hours but I can't seem to figure it out.

Does anyone know what I have to do in order to achive this?

Last seen on 19:13, 3. Apr 2022
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It seems to have been 2…
Sun, 03/22/2020 - 04:19

It seems to have been 2 years with no response...and I found a block under "Player procedures" (MCreator 2020.1) saying "Get item from armor slot [0] of player". Just use an if statement with an item component and an item logic operation.