You can turn on cheats in Minecraft by enabling it when you create your world, or by going into your Settings.
Java Edition using wireframes, and in Bedrock by using coordinates.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results