mojira.dev
MC-54396

Setblock command ignoring replace parameters

The setblock command ignores replace parameters. For example, the command "/execute @p ~ ~-1 ~ setblock ~ ~ ~ slime 0 replace emerald_block" Will ignore the fact that it should only set slime where there are emerald blocks and place them under the player regardless

Comments 1

/setblock does not have replaceTileName or replaceDataValue as optional tags. It's not the same command as /fill

setblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag]

fill <x1> <y1> <z1> <x2> <y2> <z2> <TileName> <dataValue> replace [replaceTileName] [replaceDataValue]

use:

/execute @p ~ ~-1 ~ fill ~ ~ ~ ~ ~ ~ slime 0 replace emerald_block

Rob Byrne

(Unassigned)

Unconfirmed

Minecraft 14w18b

Retrieved