Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-117933

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w45b
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 5, Minecraft 1.12.1
    • Windows 8.1
      Java 1.8.0_25 64bit
    • Confirmed

      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

            Unassigned Unassigned
            NOPEname NOPEname
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: