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

Spectators teleported while spectating entity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.4, 1.20.6, 1.21
    • None
    • Unconfirmed

      Also tested in 1.20.5 and it does work but it did not let me put that as a affected version

      Put the summary of the bug you're having here

      What I expected to happen was...:
      Spectator not teleported when used TP command on spectator

      What actually happened was...:
      Spectator teleported to another location until spectator left entity spectation

      Steps to Reproduce:
      1. use command blocks to /spectate an entity then make the entity have a tag that teleports you to another location until the location is reached
      2. run the command blocks
      3. when spectation is stopped player will not be teleported

      Commands seen in video:

      tag @p add spectating

      v

      gamemode spectator @a[tag=spectating]

      v

      spectate c0938ed3-0a7f-4117-bfa4-6c0fde19b5b0 @a[tag=spectating,limit=1]

       

      repeating tp @a[tag=spectating] -29 -4 34 > tag @a[tag=spectating] remove spectating > gamemode survival @a[tag=spectating]

      what it should have done is spectated me on the armor stand, then when i crouched to get off it should have teleported me where i was in the end.

       

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

              Created:
              Updated:
              Resolved: