Testing for redstone dust in a certain area
In a 13x13 area, command blocks should locate any redstone dust currently placed, and change the block beneath it to wood planks.
But, I see no possible way to do this, or am I missing something?
Best Answer
My best idea is to summon 169 (13 x 13) armor stands, one on each block (you probably want to name them something too). Then you would run a command such as:
/execute @e[type=ArmorStand,name=SOMENAMEHERE] ~ ~ ~ detect ~ ~ ~ redstone_dust 0 /setblock ~ ~-1 ~ planks
Or if 169 armor stands causes too much lag, you could decrease the amount of armor stands by only summoning one armor stand for every 2 blocks, running the execute command, teleporting all the armor stands 1 block forward, and running the command again. Note that this method will take 2 ticks to run whereas the first can do everything in 1 tick.
Pictures about "Testing for redstone dust in a certain area"



Where do you find Redstone dust in Minecraft?
The most common way of getting redstone dust is by mining redstone ore. Redstone Ore can be found 10 blocks (or layers) above bedrock or in between bedrock. This means it can be found commonly from blocks 5-12, and rarely up to layer 16 or down to layer 2. You will need an iron pickaxe to mine any redstone ore.Does Redstone dust have a tick delay?
Both the redstone repeater and the redstone comparator transmit signals in only one direction, but add 1 tick of delay. By strongly-powering a block, a signal can transmit in only one direction.What does right clicking Redstone dust do?
If redstone wire comes in the form of a cross, the player can right-click to toggle it between a cross and dot. A redstone dot does not power anything adjacent to it, but powers the block under it.How do you get Redstone dust with a command block?
The redstone device should be placed within one block of the command block. If the redstone device is too far away from the command block, it will not activate the command block. In this example, we are going to use a lever and place it one block to the right of the command block. Select the lever in your hotbar.Redstone 101 Redstone Dust
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: ArtHouse Studio, ArtHouse Studio, Loïc Alejandro, ThisIsEngineering
