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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.11.2
    • None
    • Unconfirmed
    • Creative

      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]

            Unassigned Unassigned
            SonicBlue22 Grant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: