1

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.

2

0

Browse other questions tagged .