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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.11.2, Minecraft 1.12 Pre-Release 5, Minecraft 1.12.1
    • Fix Version/s: Minecraft 17w45b
    • Environment:

      Windows 8.1
      Java 1.8.0_25 64bit

    • Confirmation Status:
      Confirmed

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: