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

Can't use the /fill command to replace with blocks that have block entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12.1
    • None
    • Java 1.8.0_131 under Ubuntu 17.04 64-bit
    • Community Consensus

      The /fill command, when given a block type that has a block entity such as mob_spawner, expects parameter 9 to be the NBT data, even if parameter 8 is "replace". As such, the following command:

      /fill ~-5 ~-5 ~-5 ~5 ~5 ~5 minecraft:mob_spawner 0 replace minecraft:mob_spawner 0 { Abbreviation: "really long JSON string" }

      throws this error:

      Data tag parsing failed: Expected '{' but got 'm' at: m<--[HERE]

            Unassigned Unassigned
            Andrio Celos Andrio Celos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: