Minecraft animals run away?

Es
5

Hay people I built a small enclosure for myself, so to speak from fences and with a fence gate (the block is 1 × high). I just wanted to keep a few animals, pigs, cows etc. And every time I open the gate I try to run away all the animals or run out of the enclosure. And catching them again is annoying. Can you do something about it that they stay in the enclosure without running away?

in

Fasten each animal on a leash or build a front garden for your enclosure that is also fenced in so that they can't leave

El

Yes you can. Build it like this.

Minecraft animals run away
gl

You can make two fence gates with a block in between

Definitely gets you a little further

Mi

Easy to do again or lure when you're in it.

Or you can build a double gate.

Sq

Take the wheat out of your hand

What do I do now? Or Orangetidy
Minecraft server error? - 1 Bo Bodhimelodic