Minecraft player command to hold players?

Su
5

I'm building a map and I'm looking for a command or an effect, with which the player can't budge, I don't want to bend back or slowness effects, because with slowness the view is so uncomfortably zoomed out. Any suggestions?

ro

If you can't code then install Minecraft script plugin for your server so you can easily create commands and other things such as that the player can't move

an

https://dev.bukkit.org/...minecraftt
It cost me 1 minute of googling - I would say that you install a plugin for your server.
Otherwise it would not go - goes./jail?

Su

Is a single player map

an

Why do you want to freeze yourself?

Be

Unfortunately, this can't be done with commands. The two best options are teleport and slowness, but you don't want them.

Another option would be to place barrier blocks around the player and remove them when he is allowed to move again.

You could also put the player in a mine cart or bot. However, these can't be made invisible.

So far are all functions that come to mind.