I am making a 'pet shop' and I am selling cats dogs and slimes. Of course, the cats and dogs don't de-spawn, but slimes do.

I tried to gave them names (using name tags) and I thought that would work, but it didn't. Does anyone know another way of stopping them from despawning?

  • Willing to use commands? – SirBenet Mar 21 '15 at 21:28
  • 1
    I just tested it in my redstone world. Named slimes of all sizes do not despawn. However, slimes are notorious for suffocation in walls, which is likely what happened to your slimes. – MrLemon Mar 21 '15 at 21:33
  • but there were no slime balls anywhere – alixey999 Mar 22 '15 at 9:30

All entities can have a PersistenceRequired tag, which can stop them from despawning. If you are willing to use commands, you can stop slimes spawning like this:

/entitydata @e[type=Slime] {PersistenceRequired:1b}
| improve this answer | |
  • sorry i forgot to mention i was building this in creative – alixey999 Mar 21 '15 at 21:53
  • You can do this in creative mode. – Elias Benevedes Mar 21 '15 at 21:58
  • i did it but they still doespawned, i really dont know why. i was keeping them a 5x2 area and its quite well lit with glowstone. – alixey999 Mar 22 '15 at 8:40
  • @alixey999 Are you sure they are not dying? – SirBenet Mar 22 '15 at 11:16

This cannot be done in survival unless it is withing a 128 block radius as stated. You can achieve this in creative mode using the tag: "{PersistenceRequired:1}". This can be manually added to a mob using /entitydata.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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