Mojira Archive
MC-111704

You can input any value in [old block handling] of setblock and fill

The bug

See title.

For example:

/setblock ~ ~ ~ chest default invalidArgument {CustomName:"hi"}

works, but the invalidArgument for old block handling is not a valid value; it instead picks replace.

/fill ~ ~ ~ ~ ~ ~ stone default invalidArgument air
fill ~ ~ ~ ~ ~ ~ chest default invalidArgument {CustomName:"hi"}

both work, but the invalidArgument for old block handling is not a valid value; it instead picks replace, but ignores the filter options.

Expected behaviour

The command should not be executed but instead a message similar to the following one should be sent

'invalidArgument' is not a valid old block handling

Fixed

user-f2760

2016-12-21, 11:50 AM

2018-12-30, 01:10 AM

2017-11-13, 12:43 AM

3

1

Confirmed

/fill, /setblock, argument, command, replace

Minecraft 1.11.1 - Minecraft 1.12.1 Pre-Release 1Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1

Minecraft 17w45b