C
Celebrity Spotlight

Can I stop mobs from walking into my house... without a door?

Author

Emily Wong

Published May 06, 2026

I'm building a castle in Minecraft survival mode. It's a big structure and a tiny door would look ridiculous, so instead I have a 5x7 hole in the wall. The castle is mob proof but the outside isn't - I don't mind some creepers spawning outside, but I definitely don't want them walking inside!

Is there any way I can stop a mob from pathfinding, without blocking the path for myself? Something like placing double carpets on the floor would be perfect... but it doesn't work on Bedrock 1.16.20, I guess it's a Java edition feature.

Taking a different approach would be ok, but this is the only entrance to my base so I'll be using it a lot, which means it has to be:

  • Instantaneous - no piston doors or bridges.
  • Effortless to use - no jumping / flying / slime launching over a moat or a trench.
  • Painless - no magma blocks or walking through a lava cascade. Although the cascade would be cool :)

Is there anything I can build, or do I have to lower my requirements?

PS: I'm not worried only about creepers (cats would do for that I guess?), I want to stop all mobs, or at least, all the hostile ones... well, except phantoms, nothing I can do about those.

1

4 Answers

I've tried a lot just to get this to work, but pathfinding is different in BE, meaning some things that would normally work in JE (like the carpet trick) wouldn't work Here's a slightly different approach that might tickle your fancy.Interesting idea ExpertCoder14!Walking into your base, you have a line of open trapdoors in the floor with a lava pit underneath. Try building the setup below, then try to get inside without jumping or sprinting.

If you test it a few times, you'll find out that just by holding down your forward key, you can make it across just by walking! No sprinting, no jumping. Just hold W and go.

As long as you don't stop in the middle of the crossing, you should be just fine. Mobs are too slow to make it through! So they fall and die in the lava.

You can walk in at angles of up to 45 degrees. Anything more and it heightens the risk of falling in.

I suggest, instead of creating just a lava pit, you can funnel mobs into a custom-built mob grinder so you can get their experience. This also helps because you can implement a minecart system that allows players to safely escape the funnel without falling in with the mobs.

Downsides

  • Slimes: Slimes are so big, they won't fit in the pitfall trap!
  • Witches: They drink potions to self-heal. Depending on your mob grinder method, they might take a while to die!
3

Railway. Mobs won't go onto railway unless pushed, by them or others. Looks like some of the old methods no longer work in newer versions. Or a honey block moat. Non leathal and you can jump over it.

1

Okay, you might want to interest yourself in transparent blocks like glass or glowstone, as this prevents nearby mobs from slowly wandering and selecting blocks to travel inside your build. However it is more on an impractical approach as you'd have to replace a fifty block radius on the floor that would normally be grass or dirt. I am currently working on other solutions. Hope this helps.

1

This may be a little late, but for anyone else who finds themselves wondering, from what I have been able to tell all the usual mobs (hostile and passive) except for medium and small slimes will not jump onto a block of scaffolding that has a piece of carpet on top. The front of the scaffolding has to be visible, which makes it to where it is not the prettiest of solutions. However, with this trick working for the majority of mobs, I would say it’s well worth it. The only test I can think of that I have not done is seeing if it works for nether mobs too. enter image description here enter image description here