mojira.dev
MC-120038

/fill breaks everything even when you specified blocks

Place a stone_button into /fill area
Add some random block of your choice to filter it out (stone for this example)

/fill x y z x2 y2 z2 #<- replace with proper coordinates air 0 destroy stone_button -1

BUG: Instead of destroying only stone_buttons it'll destroy the stone along with it.
WHEN: I found this out when I'm trying to destroy a pressed button and I'm executing it from a player. /execute @a ~ ~ ~ /fill ~4 ~4 ~4 ~-4 ~-4 ~-4 air 0 destroy stone_button 9

Comments 3

destroy does not filter blocks as far as I know. You have to use replace instead.

As @unknown said, /fill ... destroy does not filter blocks. WAI, however that might be a feature request :/

Aw that's pretty bad.

Robhie M

(Unassigned)

Unconfirmed

Minecraft 1.12.1

Retrieved