Minecraft – How to create a door which opens automatically for players but not for mobs

minecraft-java-editionminecraft-redstone

I would like to make a door that is easy to open by players, but not mobs.
Tried using a button to power the door but clicks are inaccurate while playing on laptop, rendering the door an obstacle, and also jump to activate a tripwire to power the door, but it just closes too quickly, rendering the door an obstacle again.
An extra point is that no wooden doors as I am playing on hard difficulty and I am playing on survival so no commands, just redstone.
So how can I solve this problem?

Best Answer

The simplest way I know of to make a player only door is to abuse stairs and fences. Since a fence (F) is ~0.5 blocks wide, and stairs (S) are missing 1/4 of a block you can stand between the fence and the stair. And so using four stairs and three fences you can make a player only door. Finally it needs to be surrounded in blocks (B), so that mobs can't get around the setup. such as walking through the middle.

If looking face-on you should have:

BBBBB
BSFSB
B F B
BSFSB

The top left stair has to have a gap in the bottom right corner, the top right in the bottom left corner etc.

Which visually looks like:

Image of mob-only door