Minecraft wiki entry for Traps, associated text: Mobs, like Zombies, Skeletons, Witches, Ravagers, Creepers, Iron Golems, Zoglins, Vindicators, Piglin Brutes and Pufferfish can deal damage to players. To prevent mobs inside of traps from despawning, one should use Name tags. Each mob has their own pros and cons: