mojira.dev
MC-117933

/clone command treats invalid optional arguments as if they were default

The bug

  1. Any invalid value for [maskMode] in clone is treated as replace
    Ex. command (a block below you is moved to be next to you)

    /clone ~ ~-1 ~ ~ ~-1 ~ ~1 ~ ~ invalidValue move
  2. Any invalid value for [cloneMode] in clone is treated as normal
    Ex. command (the command will fail with "Source and destination can not overlap", even thought invalidValue is not normal)

    /clone ~ ~ ~ ~1 ~ ~ ~ ~ ~ replace invalidValue

Expected behavior would be that is shows an error message that states that the argument is not valid

Linked issues

Comments 3

It do the same thing in 1.12-pre3

@unknown, 1.12-pre3 is outdated and can't be chosen as an affected version

Can confirm for 1.12.1.

NOPEname

(Unassigned)

Confirmed

/clone, argument, command

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 5, Minecraft 1.12.1

Minecraft 17w45b

Retrieved