mojira.dev
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

Linked issues

Comments 0

No comments.

user-f2760

(Unassigned)

Confirmed

/fill, /setblock, argument, command, replace

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

Minecraft 17w45b

Retrieved