Is it possible to enchant a player equipped armor using commands?
I've tried this command but it is not working:
/execute at @s[nbt={Inventory:[{Slot:103b}]}] run enchant @p[nbt={Inventory:[{Slot:103b,id:netherite_helmet}]}] minecraft:vanishing_curse 0
I'm trying to enchant a player equipped helmet.
/enchantcommand only affects items the player is holding, not armor pieces they are wearing. Hence, this can't be done using that command, and a more complicated solution is needed ...