Minecraft:Slime
More actions
Template:For Template:Infobox entity Slimes are cube-shaped Minecraft:hostile mobs that spawn deep underground in particular Minecraft:chunks, aboveground in Minecraft:swamps, or when an Minecraft:Oozing-affected Minecraft:entity dies. They move by jumping, chase after their targets, and usually deal Minecraft:damage on touch. Slimes spawn in different sizes, and larger ones split into smaller ones on death.
Spawning
Template:See also
Slimes spawn naturally in 3 sizes: small, medium, and large. A fourth size, known as semi-large, only spawns from Minecraft:trial spawners and never naturally. Slimes have an Minecraft:NBT tag, Template:Nbt, which determines their size. Small, medium, and big slimes have their Size set to Template:Cd respectively. Using the Template:Command or Template:Command commands, a slime can be given any Size in the range from Template:Cd (inclusive).Template:Verify
A slime needs a space of 2.04×2.04×2.04 blocks to spawn, which must be clear of solid and liquid obstructions. When a slime attempts to spawn, the game checks to see if the space requirement is followed. Therefore, small and medium slimes are not able to spawn in 2-block tall areas even though it would normally be enough room for other small mobs. Any block within the space, even a Minecraft:glass pane, can prevent slimes from spawning.
- A Minecraft:button or any block without a collision hitbox can prevent a mob from spawning on the block below it, but does not count as an obstruction. This is because the game looks for an Minecraft:air block above it when trying to spawn a mob.
- Template:IN, the space is centered on the top face of the block the slime spawns on.
- It should be noted that a Minecraft:trapdoor is treated like a full-block when the game looks for space to spawn mobs. Therefore, the effective spawning space the slime needs is 3×2.1×3 blocks.
- Template:IN, the space is centered in the northwest corner of a block. This means the effective spawning region is 2×2×2 blocks.Template:Verify
The random distribution of slime sizes is affected by Minecraft: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
Slimes can spawn in Minecraft:swamps and Minecraft:mangrove swamps between the altitudes of Y=51 and Y=69 (inclusive) when the provided light level is 7 or less. They spawn most often on a full moon, and never on a new moon.
More precisely, the game checks two factors:
- If the light level is equal to or less than a random integer (from 0 to 7)
- 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.
The light level requirement for slime spawning in swamps is different from that of most hostile mobs, which spawn only at light level 0.<ref>Template:Bug</ref> This allows slimes in swamps to spawn in dimly-lit areas where most hostile mobs can't, allowing swamp-based slime farms to be built.
Slime chunks
Slimes spawn in the Minecraft:Overworld in slime chunks below the layer of Y=40 in groups of fourTemplate:Only or individuallyTemplate:Only, regardless of the lighting or Minecraft:weather conditions.
About Template:Frac of all Minecraft:chunks are generated as slime chunks, but they are not determined randomly. An algorithm is used to determine whether each chunk is a slime chunk. Template:IN, whether a chunk at a particular set of coordinates becomes a slime chunk is determined by the world's seed. Template:IN, however, they are generated at the same coordinates in every world.
Java Edition
Template:IN, slime chunks are determined pseudo-randomly by combining their chunk coordinates with the seed of the world.
This Java code can be used to print a message to the terminal indicating whether one specific chunk is a slime chunk.
<syntaxhighlight lang="java"> import java.util.Random;
public class CheckSlimechunk {
public static void main(String args[]) {
// The worldseed from /seed.
// Only the lowest 48 bits of the worldseed in binary // actually affect slime chunk placement.
long seed = 12345L;
int chunkX = 12; // Chunk coordinates = floor(block coordinate/16)
int chunkZ = -3; // Chunk coordinates = floor(block coordinate/16)
Random rnd = new Random(
(
seed +
(int) (chunkX * chunkX * 0x4c1906) +
(int) (chunkX * 0x5ac0db) +
(int) (chunkZ * chunkZ) * 0x4307a7L +
(int) (chunkZ * 0x5f24f)
) ^ 0x3ad8025fL
);
System.out.println(rnd.nextInt(10) == 0);
}
} </syntaxhighlight>
The chunk coordinates and the world seed are combined to make a specific RNG seed to generate a random integer between 0 and 9 (inclusive). If the random integer is 0, then the chunk is a slime chunk. World coordinates can be converted to chunk coordinates by dividing by 16 and then rounding down. The world coordinates and the chunk coordinates are both 32-bit integers (instances of int).
Bedrock Edition
Template:IN, the algorithm does not depend on the world seed, so the chunks that slimes can naturally spawn in inhabit the same coordinates for every world.<ref>The Bedrock Edition slime chunk algorithm was reverse engineered by @protolambda and @jocopa3 and can be found on GitHub:[1]</ref>
Trial spawners
Each Minecraft:trial chambers structure has a 25% chance to select slimes as the "small melee" mob for its Minecraft:trial spawners. This means only about 25% of trial chambers contain slime spawners within them.
Slimes from trial spawners spawn in sizes Template:Cd (medium) and Template:Cd (semi-large), unlike slimes that spawn in slime chunks and swamps, which come in sizes Template:Cd, Template:Cd and Template:Cd respectively.<ref>Template:Bug</ref>
During Minecraft:ominous trials, each Minecraft:ominous trial spawner has a Template:Frac chance to dispense Minecraft:lingering potions of Oozing, which spawn two medium slimes upon an affected entity's death. Any type of ominous trial spawner can dispense Oozing potions, regardless of the mob type it spawns.
Potions
If an entity inflicted with the Minecraft:Oozing effect dies, two medium-sized slimes appear at its death location.
Template:IN, Oozing only spawns slimes in a 5×5×5 cube up to the maximum Minecraft:entity cramming count (default to 24).
Drops
On death
From a single large slime, a player can expect an Minecraft:experience and Minecraft:slimeball yield of 12-28 and 0-32, respectively. The average yield from a single large slime is usually around 19 Minecraft:experience and 9 slimeballs.
Large slime
- Spawns two to four medium slimes on death
- Template:Xp when killed by the player
Medium slime
- Spawns two to four small slimes on death
- Template:Xp when killed by the player
Small slime
Template:DropTable Template:Xp when killed by the player
Behavior
Slimes move by hopping, which they do every 10 to 30 Minecraft:ticks (Template:Fraction to Template:Fraction seconds). They can swim in water and climb ladders and scaffolding. Unlike other mobs, slimes continue moving when no players are nearby. Their exact routine is as follows:
The slime searches for a Minecraft:player (or, failing that, an Minecraft:iron golem) within 16 blocks (spherical) distance.
- If no target is found, the slime waits 10 to 30 ticks (Template:Frac to Template:Frac seconds) between jumps, and changes direction randomly every 40 to 100 ticks (2 to 5 seconds).
- If a target is found, the delay before jumping is Template:Fraction as long (3 to 10 ticks), and the slime's direction is set directly toward the target before jumping.
Unlike most Minecraft:mobs, slimes do not pathfind toward their target, always approaching their target in a straight line without avoiding environmental hazards such as Minecraft:lava, Minecraft:cactus or dangerous falls. This means they can easily get stuck in corners or behind walls, not knowing how to circumvent them. This behavior is shared by Minecraft:magma cubes.
A slime's maximum health is equal to its size squared, and its dimensions are 0.51 Minecraft:blocks times its size in each dimension. When a slime attacks, it deals damage equal to its size, except for size 0 (smallest) slimes, which do no damage, and do not prevent Minecraft:sleeping. Because small slimes still have a hostile AI, they continuously try to attack the player.
A slime's jump distance also depends on its size; a slime jumps a distance slightly farther than its length. When landing, a number (8 times the slime's size) of slime particles appear. Regardless of size, slimes always jump 1 block high.
When a slime larger than 0 dies, it spawns 2-4 new slimes equivalent to its size divided by 2, rounding down. A slime that was named with a Minecraft:name tag produces smaller slimes with the same name when it dies.
Slimes continuously damage all players, Minecraft:snow golemsTemplate:Only, and Minecraft:iron golems they collide with (although Minecraft:damage immunity reduces the actual damage to 1 attack every half second), unlike other mobs that damage only those targets they specifically attack<ref>Template:Bug</ref> and as a result they deal damage about twice as quickly as other mobs.
Slimes in Minecraft:water attempt to swim to the surface if possible. If forced to stay submerged, they eventually drown, splitting into smaller slimes that drown and finally drop slimeballs.
Slimes are immune to Minecraft:Oozing.
Sounds
Data values
ID
Template:Edition: Template:ID table
Template:Edition: Template:ID table
Entity data
Slimes have entity data associated with them that contains various properties.
<section begin="entity data"/>
- Template:Nbt Entity data
- Template:Nbt inherit/entity
- Template:Nbt inherit/mob
- Template:Nbt: 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 (though size 2 slimes can spawn from trial spawners and the oozing effect). Values that are greater than 126 get clamped to 126.
- Template:Nbt: 1 or 0 (true/false) - true if the slime is touching the ground.
<section end="entity data"/>
Achievements
Achievements that apply to all mobs: Template:Collapse
Advancements
Advancements that apply to all mobs: Template:Collapse
Videos
Note: This video is from 2012. Since then, slimes spawning in swamps has been added to the game.
History
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
Data history
Issues
Trivia
- 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 searches for nearby targets or checks to see if it should despawn, it checks from a point at the center of its hitbox on the x and z-axis and the bottom of its y-axis. Therefore, a custom-size slime sufficiently huge can be right in front of the player and be completely passive, and it may even despawn if the slime is large enough.
- Green-colored slimes are also present in Minecraft:Minicraft, a 2D Minecraft-inspired game also created by Notch.
- A player inside a slime can see the slime itself inside of a slime block.
- Slimes breaking apart to form smaller, independent slimes resembles the real-life form of asexual reproduction known as fragmentation.
Gallery
Screenshots
-
Small: 0.52 block cube
-
Medium: 1.02 block cube
-
Big: 2.04 block cube
-
Slimes of various sizes underground
-
A big slime covering a Minecraft:minecart
-
A group of slimes within a Minecraft:Superflat world
-
A group of slimes within a Minecraft:village
-
A group of slimes within a Minecraft:swamp
-
A really big slime, with the size number 127
-
A size 10 slime compared to an oak tree
-
A group of slimes within a cave
-
A group of three slimes are led out of a cave onto the surface
-
14 small slimes that spawned from a single big slime in a flat world
Mojang screenshots
-
A slime within Minecraft:Pocket Edition Alpha
-
Slimes in a swamp
-
A slime in a photo with a magma cube and sulfur cube.
Textures
-
Slime texture file
In other media
-
Artwork of a slime
-
Artwork of a slime used for the 10th anniversary<ref>Template:Citation</ref>
-
A group of slimes within the promotional artwork for the first Minecraft:Caves & Cliffs update
-
A banner of a slime
-
Minecraft:Nitwit children kicking around a slime like a ball
-
A slime within Template:MCD
-
Template:MCSMs, a slime variant that can be found within Minecraft:Minecraft Story Mode Season 2.
-
A Slime Spirit within Minecraft:Super Smash Bros. Ultimate
-
A LEGO slime
-
An official Minecraft:LEGO Minecraft small slime
-
"Frogs", an official T-Shirt design featuring two slimes
-
A slime in the Minecraft:Plastic Texture Pack
See also
- Template:EntityLink - A similar mob that spawns only in the Nether and drops magma cream
- Template:EntityLink - A similar mob that spawns in sulfur caves
- Template:EntityLink - A variant found Template:In and Template:In
- Template:SMEntityLink - A variant found Minecraft: Story Mode Season 2
External links
References
Minecraft:de:Schleim Minecraft:es:Slime Minecraft:fr:Slime Minecraft:hu:Nyálka Minecraft:it:Gelatina Minecraft:ja:スライム Minecraft:ko:슬라임 Minecraft:lzh:黏膠魔 Minecraft:nl:Slijmkubus Minecraft:pl:Szlam Minecraft:pt:Slime Minecraft:ru:Слизень Minecraft:th:สไลม์ Minecraft:uk:Слимак Minecraft:zh:史莱姆