Minecraft – How to make a jail cell that is impossible to escape in survival

minecraft-bedrock-editionminecraft-bedrock-edition-realms

I want to make a jail for my SMP that is impossible to escape in survival and not being made in creative mode. Something using pistons and obsidian so you cant break it.

Best Answer

The other answer is incorrect because you could still break it from the outside using a haste 2 beacon and a netherite efficiency 5 pickaxe.

Every time a player gets damaged, their block resets from being broken. so you just need an obsidian prison with something to deal them damage every so often (like a dispenser with poison potions) which would reset their block breaking timer. You just need to make sure they always have this poson effect and that they cannot reach the dispenser....