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

Started by NotDj on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks. That help me out…
Mon, 07/15/2024 - 02:28

Thanks. That help me out here ing 2024.