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

Started by NotDj on Sun, 05/13/2018 - 14:17

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure - How to detect an item in the armor slot?
Sun, 05/13/2018 - 14:17

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 21:54, 30. Jul 2020
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.