how to reproduce
1 place 4 compost bins next to eachotehr in a 2x2 area
2 put a trapdoor on top of 1 of the compost bins
3 open the trapdoor and step on the very corner of the compost bin with the trapdoor on it
4 close the trapdoor
and bam ur stuck if u try to move
the only way to get out is go on spectator mode
Duplicates MC-152824.
In the future, please use the search function to see if your issue has already been reported.