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

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w09a, Minecraft 18w14b, Minecraft 18w15a
    • Confirmed

      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

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

              Created:
              Updated:
              Resolved:
              CHK: