How to detect armour type of the item held in hand

Started by Lord Diamond on

Topic category: Help with modding (Java Edition)

Last seen on 14:28, 23. Apr 2024
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)

Last seen on 17:39, 23. Apr 2024
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