Mojira Archive
MC-270739

Spectators teleported while spectating entity

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.

 

Invalid

Wocko

2024-04-13, 08:56 PM

2024-06-22, 01:14 PM

2024-06-22, 01:11 PM

0

1

Unconfirmed

1.20.4, 1.20.6, 1.21

-