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

Selectors in "with" save their value for that specific command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 18w09a, Minecraft 18w14b, Minecraft 18w15a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      Steps to Reproduce:
      1. Create a function tagged in "minecraft:tick".
      2. Write in the created function:

      execute as @a[tag=bug] run title @a title {"translate":"death.attack.generic","with":[{"selector":"@s"}]}
      

      What I expected to happen was...:
      For 1st selector: "(1) died"
      For 2nd selector: "(2) died"

      What actually happened was...:
      For 1st selector: "(1) died"
      For 2nd selector: "(1) died"

      The video showing this:
      https://youtu.be/4OqGOJprpGA

      If you don't use the function tagged in "minecraft:tick", it will work fine:
      https://youtu.be/YOSgsir7AJw

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Jerozgen Jerozgen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: