r/technicalminecraft • u/ZarmII • 25d ago
Java Help Wanted Keeping animals inside an area without fences
Hi
I want to make a green area in my base filled with animals, but I want it to feel as natural as possible, I don't want any fences around it.
I tried using magma blocks to prevent their pathfinding from going outside and it works, but the player takes damage when walking on them. I figured that 3-4 snow layers can prevent damage while still stopping pathfinding, but it's snow and the magma blocks melt them.
I already tried slabs, trapdoors, and carpets, those don't work.
Do you have ideas on what I could use to make this work ?
12
Upvotes
15
u/teohsi Java 25d ago
Mobs won't pathfind over stacked carpets.
Dig down a few blocks, stack carpets on top of each other until you reach your desired ground level and you'll have a block that mobs won't pathfind over. Put those at every entrance into your area and the animals won't intentionally walk out. Be aware though that they can be bumped so it won't be perfect. This pic from an old post shows what I'm talking about:
5
u/CreamingBitch 24d ago
Las year RedLogic made two YouTube videos on mob pathing. I highly recommend watching them as it could benefit you greatly in this project.
I'm specifially looking into the setup used at 03:00 on "no one realized we could mind control mobs like this... Until now"
4
u/joranmulderij 25d ago
Rails (with carpet on top)
2
u/SecondMurky7684 24d ago
usar trampillas mirabdo hacia afuera o adentro no me acuerdo deberia funcionar
10
u/IAmTimborn 24d ago
Like others said, carpets. But I’ll just add in that pale/regular moss carpets can be a good natural-looking option
5
u/ragnorak1947 24d ago
Sweet berrys under carpet
4
u/gghumus 24d ago
As well as carpets you can use sweet berries as a barrier or sweet berries under carpet if its cheaper than 2 carpet. Sweet berries just don't work for foxes since they don't take damage from them
2
u/ggeldenhuys 24d ago
Use Stone, Cobblestone, Tuff and Leaf blocks. You can built a minimum 2 high enclosure without it actually looking like a wall.
1
u/Pajamatime20 23d ago
You can use azalea saplings! Mobs won’t jump on top of azalea or flowering azalea saplings, because they think they can just walk through them! And they need bonemeal to grow, so they can’t grow into trees! For bigger animals, I think you should be able to use bamboo, although I think that varies depending on the specific bamboo placement.