How to detect armour type of the item held in hand

Started by Lord Diamond on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect armour type of the item held in hand

Hi,

Is there a way to determine if an item held in player's hand is boots? (or if it is a helmet/chestplate/leggings)

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sure if you in 2022.4…
Thu, 01/19/2023 - 19:33

Sure if you in 2022.4 Snapshot there is a procedure that you can use called Item Type under Item procedures Category. There you can select Armor but not seperate Armor Parts.

If you use 2022.3 there is a plugin that adds the Procedure just like in 2022.4 Snapshot but is under Advanced Category:
https://mcreator.net/plugin/90870/more-item-triggers