I searched high and low for a solution for keeping my animals inside fences, but I found none. My friend Eric suggested I try encasing my mobs in glass but when I tried that they got stuck IN the glass.
Determined to keep my animals enslaved I experimented with possible solutions and found one…and this is it.
This solution works with all mob types (but if you want to use pigs, cows, or sheep, you will want to make the pen 4 times the size). So now you know how to keep your animals in their pens and fences!
The texture pack I use is an edited version of Soartex Fanver.