• Curse Sites
Help
Latest News Article

# How long does it take to spawn slimes?

6 replies to this topic

### #1

Jonno1809
• Location: Climbin' in yo windows, snatchin' yo people up...
• Minecraft: Jonno1809

Posted 29 July 2011 - 07:14 AM

I have a slime farm and I know that you must be at least 25 blocks away, but how long do they take to spawn? I also heard that if you go too far away from slimes they despawn. How far is this distance?

### #2

Walrus_Man
• Location: Pentang, Ontario in Canada
• Minecraft: JGWalrus

Posted 29 July 2011 - 07:18 AM

Jonno1809, on 29 July 2011 - 07:14 AM, said:

I have a slime farm and I know that you must be at least 25 blocks away, but how long do they take to spawn? I also heard that if you go too far away from slimes they despawn. How far is this distance?
Slimes only spawn in certain chunks that are determined pseudo-randomly by the seed of the world the player is in, and only below layer 16. Roughly 10% of all the chunks will be able to spawn slimes, based on the formula:

Random rnd = new Random(seed + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db) +
(long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ 0x3ad8025f);
return rnd.nextInt(10) == 0;

That is, Java's random number generator is first seeded by the number seed + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db) + (long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ 0x3ad8025f, then the random number generator is asked to generate its first random number between 0 to 9. If this number is equal to 0, the chunk coordinates (xPosition, zPosition) is able to spawn slimes. Multiplying the chunk coordinates by 16 will give the player coordinates since a chunk is 16x16.

Slimes only require a 1x1x1 space to spawn in and that the block below this space is opaque and the block above it is a transparent block or air. They can spawn in any light level and lighting does not affect its spawn rate. However, lighting up the surrounding area does decrease the chances of non-slime mobs spawning and thus indirectly increases slime spawning rates. In addition to this, slimes have 90% less chances of being picked for spawning compared to the other 4 hostile mobs (creeper/skeleton/spider/zombie).
Hello people. Got a small question? Dont post a new topic just ask me!
Walrus Man is here to help!

### #3

Walrus_Man
• Location: Pentang, Ontario in Canada
• Minecraft: JGWalrus

Posted 29 July 2011 - 07:19 AM

Like any hostile mob, slimes will not spawn within 24 meters sphere radius of any player. Similarly, slimes will despawn after some time if no player is within 32 meters sphere radius of it, and despawn instantly if no player is within 128 meters sphere radius.

http://www.minecraft...pawning-chunks/
Hello people. Got a small question? Dont post a new topic just ask me!
Walrus Man is here to help!

### #4

Jonno1809
• Location: Climbin' in yo windows, snatchin' yo people up...
• Minecraft: Jonno1809

Posted 29 July 2011 - 07:29 AM

Walrus_Man, on 29 July 2011 - 07:18 AM, said:

Slimes only spawn in certain chunks that are determined pseudo-randomly by the seed of the world the player is in, and only below layer 16. Roughly 10% of all the chunks will be able to spawn slimes, based on the formula:

Random rnd = new Random(seed + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db) +
(long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ 0x3ad8025f);
return rnd.nextInt(10) == 0;

That is, Java's random number generator is first seeded by the number seed + (long) (xPosition * xPosition * 0x4c1906) + (long) (xPosition * 0x5ac0db) + (long) (zPosition * zPosition) * 0x4307a7L + (long) (zPosition * 0x5f24f) ^ 0x3ad8025f, then the random number generator is asked to generate its first random number between 0 to 9. If this number is equal to 0, the chunk coordinates (xPosition, zPosition) is able to spawn slimes. Multiplying the chunk coordinates by 16 will give the player coordinates since a chunk is 16x16.

Slimes only require a 1x1x1 space to spawn in and that the block below this space is opaque and the block above it is a transparent block or air. They can spawn in any light level and lighting does not affect its spawn rate. However, lighting up the surrounding area does decrease the chances of non-slime mobs spawning and thus indirectly increases slime spawning rates. In addition to this, slimes have 90% less chances of being picked for spawning compared to the other 4 hostile mobs (creeper/skeleton/spider/zombie).

### #5

Jonno1809
• Location: Climbin' in yo windows, snatchin' yo people up...
• Minecraft: Jonno1809

Posted 29 July 2011 - 07:32 AM

Walrus_Man, on 29 July 2011 - 07:19 AM, said:

Like any hostile mob, slimes will not spawn within 24 meters sphere radius of any player. Similarly, slimes will despawn after some time if no player is within 32 meters sphere radius of it, and despawn instantly if no player is within 128 meters sphere radius.

http://www.minecraft...pawning-chunks/
I've got my slime spawning chunk already. 32 blocks ay? Handy, thank you

### #6

Walrus_Man
• Location: Pentang, Ontario in Canada
• Minecraft: JGWalrus

Posted 29 July 2011 - 07:38 AM

your welcome didnt know if you knew all that or not

happy slime hunting!
Hello people. Got a small question? Dont post a new topic just ask me!
Walrus Man is here to help!

### #7

Ianman

Redstone Miner

• Members
• 624 posts
• Location: The Netherlands

Posted 29 July 2011 - 07:39 AM

Also note that there is a limit to the number of mobs that can spawn at any given time. If your slime farm is surrounded by caves that are full of mobs, it will take a long time for them to spawn. I suggest lighting up all surrounding caves so that only slimes can spawn.

Ethoslab had a great video on it.
Join me on my Minecraft adventures: