Mojira Archive
MC-118680

/fill Command Doesn't Work When Using "replace"

I do believe this was misunderstood for being reported, because "Works as Intended" is far from how it actually is supposed to work. When replacing blocks using the "replace" tag, for example:

/fill ~ ~4 ~ ~ ~4 ~ minecraft:end_portal 0 replace minecraft:air
does not replace the air block with a portal, but simply says:
Data tag parsing failed: Expected '{' but got 'm' at: m<--[HERE]

However, when using:
/fill ~ ~4 ~ ~ ~4 ~ minecraft:stone 0 replace minecraft:air
the command works fine, ignoring all other blocks except air. However, the command:
/fill ~ ~4 ~ ~ ~4 ~ minecraft:end_portal 0
is not a suitable substitute because it's not going to detect and replace the air block, but any block at the ~ ~4 ~ ~ ~4 ~ coordinates. So using:
/fill ~ ~4 ~ ~ ~4 ~ minecraft:end_portal 0
is not a "Works as Intended" solution.

Duplicate

Koa Neuva

2017-06-14, 11:20 AM

2017-06-15, 10:39 AM

2017-06-14, 12:30 PM

0

0

Unconfirmed

Minecraft 1.12

-