How to detect if a player has a Lime Carpet named "$5"

How to detect if a player has a Lime Carpet named "$5" - Interior of cozy studio with bed and couch decorated with vintage furniture and vinyl records

I'm working on a map, and at one part of it, you have to have a Lime Green Carpet in your inventory (I know the data for that is 14), and then it takes it and removes some blocks using /fill. I was using this:

/testfor @a {Inventory:[{id:<minecraft:carpet>,Damage:<14>s}]}

I got that off another question, but it has to be named: $5

Anyone know what I'm doing wrong? I'm no command expert, so I need some help.






Pictures about "How to detect if a player has a Lime Carpet named "$5""

How to detect if a player has a Lime Carpet named "$5" - White Wooden Frame Besides Green Plant
How to detect if a player has a Lime Carpet named "$5" - Brown Woven Chair on Brown Sand
How to detect if a player has a Lime Carpet named "$5" - An Alcoholic Drink Beside a Lime





$5 - $50 5A YoYo Buyers Guide 2020




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Charlotte May, Vidal Balielo Jr., Keegan Checks, Arina Krasnikova