-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
1.15.2
-
Yes
I'm aware that this has been suggested before in the form of the ArmorEquipEvent. There are many issues with using InventoryClickEvent. Let me list them
- Dispensers can equip armor
- LivingEntities can equip armor
- Players can right click (while holding armor)
- Players can shift click/drag/whatever (More cases to test for)
- Armor can break
- Players can die and unequip armor
An EntityEquipmentEvent should contain the LivingEntity involved, the slot that has been changed (Offhand, mainhand, head, boots, etc), the old itemstack, and the new itemstack. Although it makes sense to make it cancellable, it would be annoying to implement because of all the different ways armor can be changed listed above.