Slime

From Minecraft Wiki
Jump to: navigation, search
Slime
Slime JE4 BE2.png
Health points

Big: 16♥ × 8
Medium: 4♥♥
Small: 1♥

Behavior

Hostile

Attack strength

Easy:
Big: 3♥♥
Medium: 2♥
Small: 0♥
Normal:
Big: 4♥♥
Medium: 2♥
Small: 0♥
Hard:
Big: 6♥♥♥
Medium: 3♥♥
Small: 0♥

Size

Height:
0.51 + Size * 0.51 Blocks
Width:
0.51 + Size * 0.51 Blocks

Spawn

see § Spawning

Internal ID*

JE: 55
BE: 37

Namespaced ID*

slime

Slimes are bouncy cube-shaped hostile mobs that spawn in the swamp and, occasionally, deep underground.

Spawning[edit]

Slimes spawn in the Overworld in specific "slime chunks" below layer 40, regardless of light levels. They can also spawn in swamp biomes between layers 50 and 70 in light levels of 7 or less.

Only sizes 1, 2, and 4 spawn naturally. With use of /summon, slimes can potentially range from size 1 to 256 (NBT Size tag 0–255).

Slimes do not spawn within 24 blocks (spherical) of any player, despawn over time if no player is within 32 blocks, and despawn instantly if no player is within 128 blocks.

Slimes require two vertical, transparent blocks (such as air, signs, or torches, but excluding Redstone-related items[more information needed]) to spawn in, with an opaque block underneath. The space they spawn in must also be clear of solid obstructions and liquids.[more information needed] Big slimes require a 3×2.5×3 space to spawn, medium slimes require a 3×2×3 space, and small slimes require a 1×2×1 space (or 1×1×1 if the upper block is not opaque).[1]

Slime size is affected by regional difficulty: chances range from 33% for each size at the low difficulty to 16% small, 33% medium, and 50% big with higher difficulty.

Swamps[edit]

In swamps, slimes may spawn at night between the heights of 50 and 70 when the provided light level is 7 or less. They spawn most often on a full moon, and never on a new moon. Slimes spawn in the normal swamp, but not in its variant, swamp hills.

More precisely, the game checks two factors:

  1. If the light level is equal to or less than a random integer (from 0 to 7)
  2. If the fraction of the moon that is bright is greater than a random number (from 0 to 1)

If these conditions are met and the altitude is acceptable, there is a 50% chance of spawning a slime.

"Slime chunks"[edit]

Slimes spawn throughout the world (except mushroom islands) below level Y=40 regardless of light level, but only in certain chunks; 110 of all chunks. These "slime chunks" are determined pseudo-randomly by combining their chunk coordinates with the seed of the world:

import java.util.Random; 

public class checkSlimechunk{ 

    public static void main(String args[]) 
    { 
        // the seed from /seed as a 64bit long literal
        long seed = 12345L;
        int xPosition = 123;
        int zPosition = 456;

        Random rnd = new Random(
                seed +
                (int) (xPosition * xPosition * 0x4c1906) +
                (int) (xPosition * 0x5ac0db) +
                (int) (zPosition * zPosition) * 0x4307a7L +
                (int) (zPosition * 0x5f24f) ^ 0x3ad8025f
        );

        System.out.println(rnd.nextInt(10) == 0);
    } 
}

That is, using the chunk coordinates to help generate a seed, a random number between 0 and 9 inclusive is generated. If that number is 0, the chunk can spawn slimes. To convert world coordinates to chunk coordinates, divide by 16 and round down. Note that xPosition and zPosition are 32-bit integers (ints).

Bedrock Edition[edit]

The slime chunk algorithm in Bedrock Edition is different from in Java Edition. The algorithm doesn't depend on the world seed, thus the chunks that slimes can naturally spawn in are the same for every world.[2]

Drops[edit]

If a slime's size is 1, it drops 0-2 slimeballs. This can be increased by 1 per level of Looting, for a maximum of 5 slimeballs.

Slimes also drop experience points equal to their size. 1, 2 or 4

Behavior[edit]

Dripping slime

Slimes move by hopping, which they do every 10 to 30 ticks (12 to 1 12 seconds), and can swim in water and climb ladders. Unlike other mobs, slimes continue moving when no players are nearby. Their exact routine is as follows:

The slime searches for a player (or, failing that, an iron golem or snow golem) within 16 blocks (spherical) distance.

  • If no target is found, the slime waits 10 to 30 ticks (12 to 1 12 seconds). Then it changes direction by a random amount up to 57.26° (1 radian) left or right, jump forward, and repeat the process.
  • If a target is found, the delay before jumping is 13 as long (3 to 10 ticks), and the slime's direction is set directly toward the target before jumping.

A slime's health is equal to its size squared, and its dimensions are 0.51 blocks times its size in each dimension. When a slime attacks, it deals damage equal to its size, except for size 1 (smallest) slimes. Small slimes do not prevent sleeping.

A slime's jump distance also depends on its size; a slime jumps a distance slightly farther than its length. When landing, a number of slime particles 18 its size appears.

When the player kills a slime and the slime's size is larger than 1, it dies and spawns 2-4 new slimes equivalent to its size divided by 2, rounding down.

A slime's attack speed is twice that of other melee-combat mobs. This speed is noticeable when the slime has the player cornered at a wall. Mobs like zombies and spiders attack at a rate of one hit per second, while slimes attack at a rate of two hits per second. Slimes damage all players and iron golems‌[JE only] they collide with, unlike other mobs that damage only those targets they specifically attack.

Sounds[edit]

The following sounds section uses an outdated format and should be redone using {{Sound table}}.
You can help by converting the contents of this section into a sound table template.
Examples can be seen at Bee#Sounds and Ladder#Sounds.
The wikicode should be laid out neatly as in these examples for improved readability.
Sound Subtitle Namespaced ID Subtitle ID Source Pitch Volume Attenuation distance
Slime attacks entity.slime.attack subtitles.entity.slime.attack ? ? ? 16
Slime dies entity.slime.death subtitles.entity.slime.death ? ? ? 16
Slime dies entity.slime.death_small subtitles.entity.slime.death ? ? ? 16
Slime hurts entity.slime.hurt subtitles.entity.slime.hurt ? ? ? 16
Slime hurts entity.slime.hurt_small subtitles.entity.slime.hurt ? ? ? 16
Slime squashes entity.slime.jump subtitles.entity.slime.squish ? ? ? 16
N/A No subtitle entity.slime.jump_small (Empty sound event)[until JE 1.16] N/A N/A N/A N/A
Slime squashes entity.slime.squish subtitles.entity.slime.squish ? ? ? 16
N/A No subtitle entity.slime.squish_small (Empty sound event)[until JE 1.16] N/A N/A N/A N/A

Data values[edit]

Slimes have entity data associated with them that contain various properties of the mob.

  • Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all mobs see Template:Nbt inherit/mob/template
    •  Size: The size of the slime. Note that this value is zero-based, so 0 is the smallest slime, 1 is the next larger, etc. The sizes that spawn naturally are 0, 1, and 3.
    •  wasOnGround: 1 or 0 (true/false) - true if the slime is touching the ground.

Advancements[edit]

Icon Advancement In-game description Parent Actual requirements (if different) Namespaced ID

Advancement-plain-raw.png

AdventureAdventure, exploration, and combatKill any entity, or be killed by any entity.adventure/root

Advancement-plain-raw.png

Monster HunterKill any hostile monsterAdventureKill one of these 25 mobs. ‌In Java Edition 1.16, elder guardians, ender dragons, endermites, hoglins, piglins, vexes, withers, and zoglins can also be killed for this advancement. Other mobs may be killed, but are ignored for the advancement.adventure/kill_a_mob

Advancement-fancy-raw.png

Monsters HuntedKill one of every hostile monsterMonster HunterKill each of these 25 mobs. ‌In Java Edition 1.16, elder guardians, ender dragons, endermites, hoglins, piglins, vexes, withers and zoglins are also required for the advancement. Other mobs may be killed, but are ignored for the advancement.adventure/kill_all_mobs

Video[edit]

History[edit]

Java Edition Alpha
v1.0.11Slime JE1.png Slime JE1.png Slime JE1.png Slime JE1.png Added slimes.
Slimes are the fifth hostile mob added to the game.
There are four sizes of slimes: small, medium, big and huge. Their exact size values in comparison to modern slimes is unknown.
v1.0.12Big slimes no longer spawn in peaceful.
Slimes now have sound effects.
The targeting and attacking of slimes has now been fixed.
Huge slimes no longer spawn naturally.
v1.0.13Slime JE2.png Slime JE2.png Slime JE2.png The texture of slimes has now been changed.
v1.0.14Slime spawning has now been reduced as they now appear in abundance.
A miscalculation in the new limit has now caused slimes to spawn only in strange locations, so natural slime spawning has now been disabled.
v1.0.17Slimes now spawn in multiplayer.
v1.2.0Slime spawning has now been completely disabled.
Java Edition Beta
1.2_01Slime JE3 BE1.png Slime JE3 BE1.png Slime JE3 BE1.png The texture of slimes has now been changed.
Slimes have now been returned to the game.
Small slimes now drop 0 - 2 slimeballs.[3]
Slimes are currently very rare.
1.3Slimes have now become more common.
1.4A multiplayer bug has now been fixed where slimes split were visible only to the player that caused them to split and would not take any damage. [4] Because these slimes were client-side, the player could remove them only by exiting and logging back into the server.
1.5Slimes no longer spawn in peaceful difficulty and attack only when provoked.
Java Edition
1.0.0Beta 1.9 Prerelease 5Slimes now spawn on levels 0-39 rather than 0-16, making them much more common.
1.111w49aAdded slime spawn egg, allowing the player to spawn slimes.
1.3.112w15aThe slime spawning rate in superflat worlds has now been decreased.
12w25aThe slime spawning rate in superflat worlds has now been decreased, even more.
1.4.212w38aSlimes now have a new mob sound, the same as magma cubes, to make the sounds more realistic.
12w40aSlimes are now easier to find as they spawn in swamp biomes at low light level. Since slimes can't swim, it is quite likely that they jump in deep water and eventually drown.
1.513w10aSlime spawn rates in swamps now depend on the current moon phase.
1.7.2?Huge slimes can now spawn while summoning with a command block.
1.814w06bSlimes can now swim as a result of the update to the new AI.
Slimes now randomly change direction every so often, reducing the chance of them getting stuck in walls or corners.
Slimes now randomly despawn over time if no player is within a 32 block range.
The jumping mechanics of slimes have now been changed. The distance they are able to jump corresponds to their size; they jump approximately the same distance as the length they are. They also turn and face their whole body to the player while attacking.
1.1116w32aThe entity ID for slimes has now been changed from Slime to slime.
1.1418w43aSlime JE4 BE2.png Slime JE4 BE2.png Slime JE4 BE2.png The texture of slimes has now been changed.
Pocket Edition Alpha
0.9.0build 1Slime JE3 BE1.png Slime JE3 BE1.png Slime JE3 BE1.png Added slimes and slime spawn eggs.
build 2Slimes now have sounds.
Slimes now spawn naturally.
0.10.0build 1Slimes now have bouncing animations.
0.12.1build 1Slimes now have particles when jumping.
Slimes now drop slimeballs.[verify]
0.13.0build 3The spawning of slimes has now been improved.
Bedrock Edition
?Slimes spawn commonly in flat worlds.
1.10.0beta 1.10.0.3Slime JE4 BE2.png Slime JE4 BE2.png Slime JE4 BE2.png The texture of slimes has now been changed.
Legacy Console Edition
TU1CU11.0Patch 1Slime JE3 BE1.png Slime JE3 BE1.png Slime JE3 BE1.png Added slimes.
TU141.04The slime spawning rate in superflat worlds has now been decreased.
PlayStation 4 Edition
1.90Slime JE4 BE2.png Slime JE4 BE2.png Slime JE4 BE2.png The texture of slimes has now been changed.
New Nintendo 3DS Edition
0.1.0Slime JE3 BE1.png Slime JE3 BE1.png Slime JE3 BE1.png Added slimes.

Issues[edit]

Issues relating to "Slime" are maintained on the bug tracker. Report issues there.

Trivia[edit]

  • From one large slime, the maximum experience a player can get from killing it and all the slimes that split from it is 28 experience; 4 experience from the largest, 8 experience from the 4 it splits into, and 16 experience from the 4 each of those split into.
  • A named large slime that dies produces smaller slimes with the same name.
  • In Java Edition, with commands, the sizes of slimes can be customized. Sizes go from 1 up to 256; the size-256 slime is the largest of any mob in the game, bigger than the ender dragon.
  • Small slimes are the weakest of all mobs; they have only 1 health point and deal no damage, despite being a hostile mob.
  • Because a slime's movement speed is tied to its size it becomes impossible for the player to outrun a size 8 slime on flat ground without potion effects.
  • When a slime is searching for nearby players for the purposes of attacking them or checking to see if it should despawn, it checks not from its outer edges, but instead from a point in the center of its hitbox on the x and z-axis and the bottom of its y-axis. This means when a slime is spawned with a huge custom size it can be right in front of the player and be completely passive, it may even despawn despite its outer edge is less than a block away if the slime is large enough.

Gallery[edit]

See also[edit]

  • Magma Cube – a similar mob that spawns only in the Nether

References[edit]

  1. http://www.minecraftforum.net/topic/385523-slime-spawning/
  2. The Bedrock Edition slime chunk algorithm was reverse engineered by @protolambda and @jocopa3 and can be found on GitHub:[1][2]
  3. http://getsatisfaction.com/mojang/topics/will_slimes_ever_return_to_minecraft
  4. http://www.youtube.com/watch?v=wyNvBkn4E3U