Add m=AIR to Wearing/isWearing Condition
Summary
In order to use ~onUse Equip mechanics that allow for crucible hats, a useful way for the object not to override an already existent helmet would be to be able to check if the user's head is empty. The best way would be to recognize AIR as material, or to have "NONE", or a placeholder for empty.
Usage
- skill{s=[
- equip{delay=1;item=mmoitems{type=ARMOR;id=DIAMOND_HORDE_HELMET}:4} ?equipslot{slot=HAND}
- consumeHeldItem{amount=1} ~onUse ?equipslot{slot=HAND}
- sound{s=item.armor.equip_netherite;volume=1;pitch=0.8} @origin ?equipslot{slot=HAND}];sync=true} @Self ~onUse ?wearing{slot=HEAD;m=AIR}
This way, the above would only happen if the head slot is empty. Value
Allows much better and healthier integration of Helmets with 3D custom models to MMOItems/crucible
Priority
Medium-High. This can lead to important overrides of player equipment or the need to put annoying lores explaining what to do.
Implementation
:3 with love