Mojira Archive
MC-126523

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

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

Invalid

Jerozgen

2018-03-01, 07:49 PM

2018-04-25, 08:11 AM

2018-04-25, 08:11 AM

0

2

Confirmed

selector, tags, text-component, tick

Minecraft 18w09a, Minecraft 18w14b, Minecraft 18w15a

-