Minecraft – How to keep those animals out of the farm

minecraft-java-edition

Every time that I want to start a farm for wheat, melons or sugar cane. Even with fence twice as high around it, animals seems to spawn on it and destroy my crops.

Since melon seed are kinda rare, it's annoying to lose all my melon crops because a chicken, sheep or cow step on it.

How can we make a farm so the animals won't step on your crops?

Best Answer

In 1.8 mobs can spawn in certain biomes but they do not only spawn on grass. Now they spawn on the highest block (so as to prevent mobs from spawning in houses), so you should put a ceiling on top of your farm. Adding torches should provide enough light for your crops and prevent hostile mobs from spawning.