Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-186421

When using the tp command with multiple persons specified in the execute command, the entity specified by c=1 may be incorrect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.23 Hotfix
    • None
    • Unconfirmed
    • Multiple

      execute as @a[tag="test"] at @s rotated ~ 0 positioned ^ ^ ^-0.1 rotated as @s run tp @e[type=cat,name="cat",c=1] ~ ~ ~

      With the above commands in place, summon two cats named “cat” with the summon command and spend time with the two "test" tagged players in the world.
      Then sometimes the two cats switch back and forth.
      This is an unusual behavior since c=1 should be the argument specifying the closest entity.
      I tried a new command for reporting, but could not reproduce the problem.
      This could be due to the long time it takes. Or it could be due to lag.
      If it is not caused by the cat, it could be caused by other entities besides the cat.
      If anyone can reproduce this, please let me know.
      In case you are wondering, this was run on the NintendoSwitch world, but the bug was confirmed to have occurred on Windows 11.

            YOMAYOMA8338 YOMA8338
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: