I have set up an item repair shop on my semi-vanilla server with 2 command blocks, one that takes 10xp levels, and the pther that repairs the item dropped on the ground, is there a way to do this same process, but target the tool in the offhand? This is what I have at the moment, one command block, and the other chained
Wondering if I can incorporate either /execute if entity @p[nbt={Inventory:[{Slot:-106b}]}] or run item modify entity @e weapon.offhand contents but not intelligent enough to work this out it seems Ideally want to achieve this without the need for a plugin