3

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 ~ ~ ~
0

2 Answers 2

2

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
1
  • @RockenZombi mark it as the acceptable answer if this answered your question
    – Judge2020
    Commented Feb 2, 2016 at 4:09
0

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 ~ ~ ~
1
  • 1
    This adds nothing that the existing answer didn't already state. Duplicate answers are frowned upon and may be subject to deletion. Also, there is still an error in your command, in that your execute has one argument too many at the end (after the block and data value).
    – MrLemon
    Commented Feb 3, 2016 at 21:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.