Just a quick question: what path would I use to remove all attribute modifiers from a dropped item?

ive used with no avail:




ive also tried the [] at the end as well

  • Which ones have you tried the [] on? Jul 31, 2020 at 16:56
  • I'm still curious, why did it not work the first time? Did you not try the code in my solution before? Jul 31, 2020 at 17:22
  • I think my selector was off. it was probably picking up a different item.
    – Ironotor
    Jul 31, 2020 at 17:24

1 Answer 1


The correct path is:


to remove all attribute modifiers from a dropped item. If you've already tried this, then maybe your setup is wrong.

The command you'll need is:

/data remove entity @e[type=item,limit=1,sort=nearest] Item.tag.AttributeModifiers[]
  • I added sort=nearest so that it would always pick up the nearest item. Jul 31, 2020 at 17:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .