Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-118680

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12
    • None
    • Unconfirmed

      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.

            Unassigned Unassigned
            Koa_Neuva Koa Neuva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: