Minecraft wiki entry for Traps, associated text: Connect two sticky pistons to a clock circuit so that they rapidly push a honeycomb block back and forth. If done correctly a player fallen into this trap will be unable to get out. Honeycomb block was chosen because tools do not affect the breaking speed, even with enchantments. (Don't hoes mine honeycomb faster as of 1.16? I could be wrong but someone should check this.) Alternatively, a Block of Netherite could be used instead, as while Pickaxes break it faster, it still takes so long to break that even an Efficiency V Netherite Pickaxe cannot break it in time before it gets moved.