I was making a realms server, and I discovered a very weird bug with my friend. We were working on a way to make a glass players could walk through. We used 2 simple commands:
execute @a ~ ~ ~ detect ~ ~ ~0.5 stained_glass 0 /tp @p ~ ~ ~0.01
execute @a ~ ~ ~ detect ~ ~ ~-0.5 stained_glass 0 /tp @p ~ ~ ~-0.01
this basically teleports the player into the block if they are near it, allowing them to walk through it. Now we were testing it and we noticed when you get teleported into the block, and then you walk out, you are still in the block on server side. I may not have this right, but any other players on the realm see you as in the block, but you can walk around freely. When you run the players see particles under your feet. Also, you can't place blocks, or access command blocks. I have a video showing this here:
https://www.youtube.com/watch?v=PX6MCiZEif0
In the video you can clearly see that when I enter the glass I can't place blocks or open the command blocks. You can also see what it looks like to see another player in the glass.
As far as I can tell this only happens in realms. Sorry I could not upload the video to this thread, as it was too large.
Linked issues
Comments 7
No
Please do so we know if this is caused by realms.
Ok so we tested it, and it does happen. There is an exception though. The person hosting the server does not experience the bug but the other player does. So in this case I was the host person and I did not have a problem moving through the glass and I could not be seen in the glass by other players, but dany_ev3 (The other person helping me with this) did experience the problem and I could see him in the glass.
Are we allowed to bump? if so... bump!
Please don't
I found this happens when the player is teleported in quick succession. Also when changing rotation using the /tp command. The player does not have to be inside the block
Did you test this on the normal server jar?