Does anyone know how to set a command block in Minecraft so that when I look at a certain block, this one block disappears so that I can e.g. A door that only I can go through
Looking at dme is only possible with mods, because looking at Vanilla does not result in a redstone sign, which then triggers a command block
With this mod you get a block that emits a redstone signal when viewed: https://www.curseforge.com/...mods/quark
Mod presentation
But couldn't you do it with / execute if?
And then always active
I'm not very familiar with command blocks because I deal with complex things with suitable mods / plugins, but I just don't know that you can trigger anything in Vanilla by looking (except of course the Enderman.)
/ execute if entity @e [type = player, distance = .2, name = name] run setblock X Y Z air
that should, if you are 2 blocks away from the command block, set air at the coordinates. You can of course change the distance