Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I've built a fenced area in Minecraft in which cows, pigs and over wildlife I intend to congregate. Only problem, how can I make them happy? In that they quite often bounce by the fence, wanting to get out. Any recommendations? enter image description here

share|improve this question
9  
I approve of this question –  CruelCow Jun 17 '11 at 22:38
2  
@CruelCrow I approve of you. –  chandsie Jun 18 '11 at 2:12
add comment

2 Answers 2

up vote 18 down vote accepted

Cows (along with all passive mobs) have no AI other than "wander". They will blissfully stumble head-first into lava if given the chance.

As of Beta 1.6.6, there is no way to encourage Passive Mobs to stick around; even "happy" cows will disappear into the ether if you wander far enough away that the chunk gets unloaded from Memory.

On the other hand, fence-escaping can simply be halted by making the fence taller.

Edit:

As of Beta 1.8, passive mobs no longer despawn. If you fence a cow, sheep, or pig, and keep them safe from wolves / aggressive mobs, they should stay fenced-in indefinitely.

share|improve this answer
2  
I was hoping to create a massive field full of cows and pigs, then make friends with a wolf and let them go crazy! –  wonea Jun 18 '11 at 0:12
    
@Wonea - However, Wolves won't attack passive mobs unless you attack them first. –  Raven Dreamer Jun 18 '11 at 0:25
2  
If mass murder is your objective, I'd recommend using TooManyItems to spawn in a load of pig spawners. You can quickly amass hundreds of pigs this way. Also, much more efficient than wolves: TNT. –  fredley Jun 18 '11 at 9:42
    
Can fences themselves be made taller? Or do you mean using other blocks (as in the dirt blocks pictured)? –  Cyclops Sep 23 '11 at 14:42
    
@Cyclops - I think as of 1.8 you can place blocks directly on top of fences. Alternatively, the pre 1.8 way of making fences is by starting from the top - place a row of fence blocks at the highest altitude you want, then dig out the blocks underneath them, putting another fence in the vacated space. Continue until you have a fence of the desired length. –  Raven Dreamer Sep 23 '11 at 15:27
add comment

You can prevent the cows bouncing by simply making the fence taller. Their pathing AI seems to think they can make what should be a one block jump; however, the fences' unusual collision check ends up blocking them. Thus, they start bouncing whenever they wander near.

You can't make them stay though, they will despawn eventually (as of 1.6.6).

share|improve this answer
    
Is there a bug assigned to fixing this, couldn't seem to find anything. mojang.atlassian.net/browse/MC –  wonea Jan 28 '13 at 9:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.