Mojira Archive
MC-120370

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

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]

Duplicate

Andrio Celos

2017-08-25, 02:42 PM

2017-08-25, 03:47 PM

2017-08-25, 03:46 PM

0

1

Community Consensus

Minecraft 1.12.1

-