When specifying a slot using the ;equipslot= parameter, the mechanic does not work and does not take durability from any item
testsword:
Id: DIAMOND_SWORD
Skills:
- ConsumeItemDurability{a=10;equipslot=HEAD} @self ~onUse
Expected behavior: When right-clicking this diamond sword, takes durability from my worn helmet.
Current behavior: Nothing happens when right-clicking
Changing equipslot from HEAD to HAND also yields no result. Removing the equipslot parameter from the skill makes the item remove durability from itself, which is expected behavior.
There is also another issue with the slot parameter not working when entities cast the skill
DurabilityTest:
Type: ITEM_DISPLAY
DisplayOptions:
Item: DIAMOND
Scale: 1,1,1
Translation: 0,1,0
Billboard: VERTICAL
Skills:
- setrotation{yaw=0;pitch=0;relative=false} @self ~onSpawn
- effect:particlering{p=electric_spark;a=1;points=32;r=3} @self ~onTimer:1
- skill{s=[
- effect:particleline{p=electric_spark;a=1;s=0.001;syo=1.15;tyo=1} @PIR{r=3}
- ConsumeItemDurability{a=10;equipslot=HEAD} @PIR{r=3}
]} @PIR{r=3} ~onTimer:10
Expected Behavior: Takes 10 durability every half-second from the helmet of any player in a 3-block radius
Current Behavior: Does not affect any durability
Removing the equipslot option does not yield a result Nesting the mechanic in a sudoskill so the player does it to themselves, both with and without the equipslot option also yields no result.
Tested on Latest dev as of September 23rd 2025