Mojira Archive
MC-116973

/fill only supports block entity tags for one of the filled blocks

If you use the /fill command to fill in blocks with a block entity tag (like command blocks with commands inserted), only one of the filled blocks actually has the tag.

Steps to recreate:

  1. /give yourself a command block (/give @p minecraft:command_block)
  2. Paste in the following command and set the command block to 'Always Active':
    /fill ~-1 ~2 ~-1 ~1 ~2 ~1 minecraft:command_block 0 keep {auto:1b,Command:"/say This should only trigger once."}
    

    Because of the bug, it will say the message only once instead of nine times, and only one of the nine command blocks has the command inserted.

Notes:

  • I used a similar mechanism in 17w17b, and this didn't result in the issue.
  • The behavior is the same when the command is executed from chat or through a function, executing it from a command block was just an example.

Fixed

Bassab03

[Mojang] Nathan Adams

2017-05-03, 10:38 PM

2017-05-16, 12:40 PM

2017-05-16, 12:40 PM

80

24

Confirmed

/fill, NBT, block-entity, command

Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2

Minecraft 1.12 Pre-Release 3