How do I detect a wool block with a color?
I have been having trouble with this command. I am trying to detect wool with a certain color but whenever I try to detect the wool it says
Failed to execute '0 /summon ArmorStand ~ ~ ~
I have done a lot of research to fix this and I cant find a way to make it work. This is the command I used.
/execute @e[type=ArmorStand,name=test] ~ ~ ~ detect minecraft:wool 1 0 /summon ArmorStand ~ ~ ~
I also used
/execute @e[type=ArmorStand,name=test] ~ ~ ~ detect wool 1 0 /summon ArmorStand ~ ~ ~
Best Answer
Based on the minecraft wiki page on commands (describing the execute detect command), the correct syntax for your command:
execute <entity> <x y z> detect <x y z> <block> <data> command...
Since I suspect you mean detect a wool block in the armor stand, the XYZ coordinates for after detect would just be ~ ~ ~
As for the color of the wool, look at the data values page and replace with the data value of the color you want
So your command:
Execute @e[type=ArmorStand,name=test] ~ ~ ~ detect ~ ~ ~ wool <datavalue> /summon ArmorStand
Pictures about "How do I detect a wool block with a color?"



How do you make a color changing block in Minecraft?
Dying wool in Minecraft Dying wool is simple. The crafting recipe is to simply add one wool (it can be any color at the start) and one dye of the desired color. If Minecraft players accidentally dye something the wrong color, it doesn't matter because they can simply craft it again with the correct color.Can you Undye wool?
Players can dye wool by placing wool and any dye in a crafting grid. Ingredient must be white wool in Java Edition. Dyes can be used on sheep to change the color of the wool. Shearing a colored sheep drops the corresponding color of the wool, and the sheep retains the color when the wool regenerates.How to /give | /setblock coloured wool/wood 1.8+
More answers regarding how do I detect a wool block with a color?
Answer 2
You forgot to tell Minecraft where to test for the wool do you want to test under his feet? Above him? 800 blocks on the Z coords? Try this:
/execute @e[type=ArmorStand,name=test] ~ ~ ~ detect ~ ~ ~ minecraft:wool 1 0 /summon ArmorStand ~ ~ ~
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Dagmara Dombrovska, Lukas, Engin Akyurt, Madison Inouye
