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
  • The /enchant command 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 ... Commented Mar 1, 2022 at 16:53
  • 4
    Possible duplicate of How can I modify an item while it is inside the player's inventory? Commented Mar 1, 2022 at 16:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.