mojira.dev
MC-105522

Detecting wool in a commandblock

When you try to detect wool using detect (after execute) in a repeating command block, the next command is not run.

the command I used was this:
/execute @a ~ ~ ~ detect ~ ~-1 ~ wool 1 /summon Cow

when putting this in a repeating command block, no cows are summoned while standing on orange wool, but when the command is run in chat, a cow appears if you are standing on white wool.

Linked issues

Attachments

Comments

user-f2760

Try removing the redstone signal, and adding it again (aka, block/redstone update)

null

You are trying to detect a minecraft:wool with data value 1, which refers to orange wool. To detect white wool, use /execute @a ~ ~ ~ detect ~ ~-1 ~ wool 0 /summon Cow.

no name

sorry null, white was a typo, I put that in because I tested white first, but changed to orange for further testing and the command.

no name

FVbico, updating the command block worked, but is it a bug that the command block did not automatically detect redstone power?

user-f2760

Yes, see MC-18631.

no name

Thanks, but now that I'm thinking about it, filling a space with commandblock using /fill would cause a lot of lag, even if it just tested for power when it is placed. (all the block updates looking for power)

no name

(Unassigned)

Unconfirmed

Minecraft 1.10.2

Retrieved