Need Help With a command: testforblock near Player!

//ads -- adsterra.com -- native banner
?>
Hi I am trying to make my own Custom Crafting Dropper, I Need to testforblock
near the player to find a dropper with the ingredients.
I tried this:
execute @p[r=10] ~ ~ ~ /testforblock ~ ~ ~ dropper 1 {Items:[0:{Slot:0b,id:"minecraft:stone",Count:1b,Damage:0s,},1:{Slot:1b,id:"minecraft:stone",Count:1b,Damage:0s,},2:{Slot:2b,id:"minecraft:stone",Count:1b,Damage:0s,},3:{Slot:3b,id:"minecraft:stone",Count:1b,Damage:0s,},4:{Slot:4b,id:"minecraft:redstone_block",Count:1b,Damage:0s,},5:{Slot:5b,id:"minecraft:stone",Count:1b,Damage:0s,},6:{Slot:6b,id:"minecraft:stone",Count:1b,Damage:0s,},7:{Slot:7b,id:"minecraft:stone",Count:1b,Damage:0s,},8:{Slot:8b,id:"minecraft:stone",Count:1b,Damage:0s,},],id:"Dropper",Lock:"",}
But the command can't find the dropper.
My plan is that I will spawn a dropper from A villager named "Test" using
execute @e[name=Test] ~ ~ ~ /setblock ~ ~ ~ dropper
and then the villager will die
kill @e[name=Test]
The testforblock
will test if the ingredients are inside the dropper and I will clone the dropper with the results from the custom crafting and replace the dropper with The ingredients.
Pictures about "Need Help With a command: testforblock near Player!"



How do you use the TestForBlock command in Minecraft?
You can test whether there is a certain block at a specific location in the game using the /testforblock command in Minecraft....TestForBlock Command in Minecraft Java Edition (PC/Mac)How do you find a player with a command block?
The blank is for the particular block you are looking for. Let's say you're lost in the Nether and need to find your Nether Portal, you could type : /locateblock obsidian, and get the coordinates for the nearest obsidian, most likely being your, said, Portal.How To Use '/testfor' \u0026 'testforblock' Command In Minecraft Bedrock | Command Tutorial #24
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ahmed akacha, Gustavo Fring, Plato Terentev, Plato Terentev