12

Is there any way for which we are able to stop a zombie from de-spawning no matter how far we go? If so, what are all possible ways?

Bonus question: what are all the other techniques for which we can prevent a zombie from de-spawning within a specific block radius?

11

There's one, pretty expensive way: Name the zombie using a name tag.

Name tags outside creative mode can be found in treasure chests, or as rare loot when fishing (not actually so rare if using "luck of the sea" enchanted fishing rod).

You rename them using the anvil, and then apply to given mob. Once named, the mob will not despawn. Of course, hostile mobs will remain hostile, mortal and in case of some, like creepers, suicidal, but at least they don't despawn. Additionally, you get monster's name over their head.

Or if you have cheats enabled, you can spawn a mob with the tag {PersistenceRequired:1} with command blocks that prevent the mob from despawning.


The cheapest way to have non-despawning zombie is to have it pick up an item. Only a certain percent of zombies have the ability to pick up items - 20% on hard, 7% on normal, 1% on easy; zombies with initially naturally spawned 'rare drop' items (potatoes, iron ingots) don't count - it must be any item picked up after spawning.

| improve this answer | |
  • 1
    They will only appear in dungeon chests in chunks created after 1.6 – Timtech Jul 27 '13 at 21:25
  • 3
    Plus, if you go into Peaceful, hostile mobs with name tags WILL despawn! Use caution! – Timtech Jul 27 '13 at 21:29
  • Can't you put armor, on the mobs that are able to equip it, to stop de-spawning as well? Because giving mobs boots would be an efficient way to do this as well. – Jonny Jul 28 '13 at 3:51
  • @Jonny: I'm fairly sure while armor stops spontaneous despawning within the standard 128 block radius, if I left my mob grinder with an armor-wearing mob still in the kill pit, whenever I'd return later, the kill pit would be empty. If the chunk unloads, the mob despawns, even if wearing enchanted diamond armor. Only name tags will prevent it from despawning then. – SF. Jul 28 '13 at 14:26
  • 2
    @SF. You can also get name tag from fishing. rare chance – Fennekin Jan 23 '15 at 5:42
4

As per the Minecraft Wiki page on Spawning/Despawning, despawning can happen at any time when there is no player within 32 blocks of a mob. There is also the line

"In multiplayer, despawning does not occur while there are no players in the game."

So, your options basically come down to making sure that any time there are players on your server, at least one of them is within 32 blocks of the mob. For vanilla servers, that's about the end of it, though if you're willing to pay for an extra copy, you can probably have an extra copy of the game running 24/7, with that player standing somewhere, probably set to creative mode so they can't die, permanently leaving a small despawn-less radius. It's a bit ugly of a solution, but it'd work.

Or, of course, there's also almost certainly something available in the scrillion Minecraft mods out there that can do this. I personally only really play vanilla, so I can't really comment on those.

| improve this answer | |
1

In recent versions of MineCraft, mobs that are able to pick up items (and sometimes spawn already wearing armor or holding a tool or weapon) will never despawn.

This means that you cannot "choose" whether a specific mob should not despawn (unless you use nametags as described in SF's answer), however, you can "filter out" which ones will persist if you throw an item at them and they pick them up.

One good item to "test" with is pumpkins as the result is immediately visible: mobs will wear them on their heads (and as an added bonus, will also protect them from burning up in daylight).

| improve this answer | |
  • 1
    I'm pretty sure that mobs that pick up items will despawn if you go out of the 128 blocks radius. – Shoe Jul 27 '13 at 20:45
  • I think so too; when the chunk is unloaded I think they will despawn, although I can't be sure. – Timtech Jul 27 '13 at 21:26
  • 1
    @Jeffrey They don't despawn ever actually! I was surprised too. It's demonstrated in the video in this answer about chunk/spawn mechanics. – SevenSidedDie Jul 27 '13 at 21:58
  • @SevenSidedDie, what exactly is that link for? It just says that you can expand the span area from the start spawn point with hoppers. – Shoe Jul 28 '13 at 2:26
  • @Jeffrey It's about replacing a "mob off switch" that exploits spawn & chunk mechanics. The old one involves zombies that never despawn because they're holding Ender pearls; they stopped doing the job because of a mob limit calculation change, but they still never despawn. They're shown at the end of the video, but talked about throughout. – SevenSidedDie Jul 28 '13 at 5:06

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