What does it do?
The datapack doesnt allow you to move left or right, making you go straight.
How does it work?
It simply checks for when your our of bounds and when you are it teleports you back! Which makes it so that you cant move left or right.