mojira.dev
MC-121920

/data merge doesn't update comparators that point away from command_ block

Performing a 'data merge' to update the SuccessCount of a command block won't make the command block power a comparator.

1. Put down a command block and note its x,y,z location.
2. Put a comparator next to the command block, pointing away from it.
3. Use the command '/data merge block x y z {SuccessCount:1}'
4. Notice how the comparator didn't turn on like you'd expect.
5. Use the command '/data get block x y z' and see that SuccessCount really got changed.

I think what's happening is the nbt value is getting changed by the 'data merge' command, but the block state isn't getting changed after the change is made. I can tell that by dusting the ground with redstone dust around the command block and suddenly the comparator will turn on (the dusting caused block updates next to the command block, which forced the command block to update its own block state).

Linked issues

Comments

user-f2760

Confirmed, blockdata did update comparators (that looked at the block) before.

Skylinerw

Duplicate of MC-120986 (added data merging to list on that report).

Jay Eff

(Unassigned)

Confirmed

Minecraft 17w45b

Retrieved