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

[Functions] Anything commands executed relative to anything doesn't doesn't run the command

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.12 Pre-Release 2
    • Labels:
      None
    • Environment:

      Windows 10 Pro, 64-bit, Java 1.8.0_131-b11

    • Confirmation Status:
      Community Consensus

      Description

      Any command in a function that is using relative cords, will not run the command but will say it executed in the chat, even though it didn't actually happen.

      Ignore this example, strike through won't work-Example:
      This command works
      /execute @a 0 100 0 detect 0 99 0 stone * say words

      however, this command does not.
      /execute @a ~ ~ ~ detect ~ ~ ~ stone * say words-

      I have found some more information. execute [selector] ~ ~ ~ does in fact work, but relative coords inside other commands don't work.

      Example:
      "execute @a ~ ~ ~ /particle angryVillager 100 100 100 0 0 0 0.1 50" will work

      "/particle angryVillager 100 100 100 0 0 0 0.1 50" also works

      However "execute @a ~ ~ ~ /particle angryVillager ~ ~ ~ 0 0 0 0.1 50" will not work

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                searge [Mojang] Searge (Michael Stoyke)
                Reporter:
                THEGamingninja12 THEGamingninja
              • Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: