Need Help With a command: testforblock near Player!

Need Help With a command: testforblock near Player! - High angle of crop person holding hands with ethnic boy stuck in dirty puddle in poor village

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!"

Need Help With a command: testforblock near Player! - Frustrated female driver in white t shirt and jeans sitting on ground near damaged car with hands on head during car travel in sunny summer day
Need Help With a command: testforblock near Player! - Homeless people in night shelter for homeless
Need Help With a command: testforblock near Player! - Black and white of homeless man lying on floor and reading book in night shelter for homeless



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)
  • x y z is the coordinate to test. ...
  • block is name of the block to test for. ( ...
  • dataValue is optional. ...
  • dataTag is optional.


  • 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