Minecraft wiki entry for Things_not_to_do, associated text: If you do get stuck, you may use an ender pearl or a fire resistance potion to escape. Alternatively, you can bring a spare warped fungus on a stick. However, don't shift-click it into your hotbar, as pressing shift causes you to dismount.