Test for a specific item with a unique name in a chest

Test for a specific item with a unique name in a chest - Photo of Clear Glass Measuring Cup Lot

I have looked at several questions that are close, but I still cannot get this. One question talks about checking a chest for any item, but I need to test for a specific item with a unique name.

I'm creating a quest. The player needs to bring back an Apple with the name "InnKeeper Apple".

I have tried this, but it is not working.

/testforblock 7652 62 744 minecraft:chest -1 {Item:{id:minecraft:apple,tag:{display:{Lore:["InnKeeper Apple"]}}}}

Any ideas?






Pictures about "Test for a specific item with a unique name in a chest"

Test for a specific item with a unique name in a chest - Two Clear Glass Jars Beside Several Flasks
Test for a specific item with a unique name in a chest - Person Pouring Blue Liquid Into a Glass Container
Test for a specific item with a unique name in a chest - Chemical test with empty flask mounted on ring stand while burner under flask and tubes filled with reagents in modern lab





how to detect item in a chest! I minecraft chest detection tutorial 1.16.5!




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

Images: Rodolfo Clix, Pixabay, Ivan Samkov, RF._.studio