Mojira Archive
MC-114305

Problem with /fill [...] replace [...] and changing the data value of comparators

I tried to fill in an area to replace powered_comparator (non-subtraction mode) with powered_comparator (subtraction mode) using the command:

/fill x1 y1 z1 x2 y2 z2 minecraft:powered_comparator 4 replace minecraft:powered_comparator

But, I got the error message: Data tag phrasing failed: Invalid tag encountered, expected "{" as first char. So, I tried this command:

/fill x1 y1 z1 x2 y2 z2 minecraft:powered_comparator 4 replace {id:"minecraft:powered_comparator"}

That didn't give me an error message, but it did just fill the entire area instead of replacing the comparators.
This command works, though:

/fill x1 y1 z1 x2 y2 z2 minecraft:powered_comparator 4 replace [block not a comparator]

Duplicate

Grant

2017-03-02, 08:28 AM

2017-03-02, 10:59 AM

2017-03-02, 10:59 AM

0

1

Unconfirmed

Minecraft 1.11.2

-