

Finally, hop inside the composter and place the piston above you, facing your direction. Then, place the switch on the wall’s top block, and activate it. Inside the hole, place a composter and use three building blocks to raise a wall adjacent to the hole. With these items in hand, choose a location and dig a 1-block deep hole. The necessary items for this method are a composter, one piston, one lever, and three building blocks of any kind. The glitch will happen when the block reaches you, granting you x-ray vision on that spot. The glitch will work after you jump inside the composter and place one falling block on top of you so that it will fall on your head. On the hole’s bottom, place the composter. In this case, the composter is used for its shape, not for its in-game function. After acquiring the necessary items, pick a location and dig three blocks down, making a hole. In Minecraft Java edition, you can use a falling block such as gravel, sand, or concrete block and a composter to activate an x-ray glitch.

Some more recent versions of the game might have these glitches fixed. However, this will depend a bit on your Minecraft version. One of the methods of enabling x-ray in Minecraft is by taking advantage of a few glitches.
