Friday, 17 May 2024
Kho Content

Slime

This article is about the mob. For the item it drops, see Slimeball . For the block created with slimeballs, see Slime Block . For other uses, see Slime (disambiguation)

Slime

Slime.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♥

Hitbox size

Big:
Height: 2.04 Blocks
Width: 2.04 Blocks
Medium:
Height: 1.02 Blocks
Width: 1.02 Blocks
Small:
Height: 0.51 Blocks
Width: 0.51 Blocks

Spawn

see § Spawning

Slimes are bouncy, cube-shaped hostile mobs that spawn deep underground in particular chunks, or at night in swamp biomes.

Spawning

[

]

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 51 and 69 (inclusive) in light levels of 7 or less, with these layers tending to be near the surface.

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

Like most other hostile mobs, 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 the despawn radius (128 blocks in Java Edition, 44 to 128 blocks in Bedrock Edition depending on simulation distance[verify]).

A slime needs roughly a 3×2.1×3 free space to spawn. The area in which the slime spawns must be clear of solid or liquid obstructions. When a slime attempts to spawn, the game checks for the space requirement of a large slime, and the size is determined later. Therefore, since large slimes are slightly taller than 2 blocks, no slimes, regardless of size, are able to spawn at all in 2-block-high areas. Also, since large slimes are slightly wider than 2 blocks, and mobs spawn at the center of a block, having any block within the 3×2.1×3 area, even as thin as a glass pane, can prevent a slime of any size from spawning.

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

[

]

In swamps and mangrove swamps, slimes may spawn at night between the heights of 51 and 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:

  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”

[

]

Slimes spawn throughout the world (except mushroom fields and deep dark biomes) below level Y=40 regardless of light level, but only in certain chunks; 1⁄10 of all chunks.

Java Edition

[

]

In Java Edition, 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

)

^

0x3ad8025fL

);

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

[

]

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 inhabit the same coordinates for every world.[1]

Drops

[

]

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: 4 for large slimes, 2 for medium slimes, or 1 for small slimes. Because slimes split into 2-4 smaller slimes when they die, a player can earn a possible maximum of 28 experience points from killing one large slime and all the slimes that split from it.

Behavior

[

]

Slimes move by hopping, which they do every 10 to 30 ticks (1⁄2 to 1 1⁄2 seconds), and 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 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 (1⁄2 to 1 1⁄2 seconds). Then it changes direction by a random amount up to 57.26° (1 radian) left or right, jumps forward, and repeats the process.
  • If a target is found, the delay before jumping is 1⁄3 as long (3 to 10 ticks), and the slime’s direction is set directly toward the target before jumping.

A slime’s maximum 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, which do no damage, and do not prevent sleeping. Because small slimes still have a hostile AI, they continuously 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, several slime particles 1⁄8 its size appear.

When a slime larger than 1 dies, it spawns 2-4 new slimes equivalent to its size divided by 2, rounding down. A slime that was named with a name tag produces smaller slimes with the same name when it dies.

A slime’s attack speed is twice that of other melee-combat mobs.[2] 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.

Slimes in 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.

Sounds

[

]

Java Edition:

Clock JE3.gifThis section needs to be updated. 

Please update this section to reflect recent updates or newly available information.
Reason: changes in 1.16

Slimes use the Friendly Creatures sound category for entity-dependent sound events.

SoundSubtitles

Source

Description

Resource locationTranslation keyVolumePitchAttenuation
distance

https://minecraft.fandom.com/wiki/File:Slime_attack1.ogg

https://minecraft.fandom.com/wiki/File:Slime_attack2.oggSlime attacksFriendly CreaturesWhen a slime attacks somethingentity.slime.attacksubtitles.entity.slime.attack??16

https://minecraft.fandom.com/wiki/File:Slime_big1.ogg

https://minecraft.fandom.com/wiki/File:Slime_big2.ogg

https://minecraft.fandom.com/wiki/File:Slime_big3.ogg

https://minecraft.fandom.com/wiki/File:Slime_big4.oggSlime diesFriendly CreaturesWhen a non-small slime diesentity.slime.deathsubtitles.entity.slime.death??16

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggSlime diesFriendly CreaturesWhen a small slime diesentity.slime.death_smallsubtitles.entity.slime.death??16

https://minecraft.fandom.com/wiki/File:Slime_big1.ogg

https://minecraft.fandom.com/wiki/File:Slime_big2.ogg

https://minecraft.fandom.com/wiki/File:Slime_big3.ogg

https://minecraft.fandom.com/wiki/File:Slime_big4.oggSlime hurtsFriendly CreaturesWhen a non-small slime is damagedentity.slime.hurtsubtitles.entity.slime.hurt??16

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggSlime hurtsFriendly CreaturesWhen a small slime is damagedentity.slime.hurt_smallsubtitles.entity.slime.hurt??16

https://minecraft.fandom.com/wiki/File:Slime_big1.ogg

https://minecraft.fandom.com/wiki/File:Slime_big2.ogg

https://minecraft.fandom.com/wiki/File:Slime_big3.ogg

https://minecraft.fandom.com/wiki/File:Slime_big4.oggSlime squashesFriendly CreaturesWhen a non-small slime jumpsentity.slime.jumpsubtitles.entity.slime.squish??16

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggSlime squashesFriendly CreaturesWhen a small slime jumpsentity.slime.jump_smallsubtitles.entity.slime.squish??16

https://minecraft.fandom.com/wiki/File:Slime_big1.ogg

https://minecraft.fandom.com/wiki/File:Slime_big2.ogg

https://minecraft.fandom.com/wiki/File:Slime_big3.ogg

https://minecraft.fandom.com/wiki/File:Slime_big4.oggSlime squashesFriendly CreaturesWhen a non-small slime landsentity.slime.squishsubtitles.entity.slime.squish??16

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggSlime squishesFriendly CreaturesWhen a small slime landsentity.slime.squish_smallsubtitles.entity.slime.squish??16

Bedrock Edition:

Sound

Source

Description

Resource locationVolumePitch

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggFriendly CreaturesWhen a slime diesmob.slime.small1.00.8-1.2

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggFriendly CreaturesWhen a slime is damagedmob.slime.small1.00.8-1.2

https://minecraft.fandom.com/wiki/File:Slime_big1.ogg

https://minecraft.fandom.com/wiki/File:Slime_big2.ogg

https://minecraft.fandom.com/wiki/File:Slime_big3.ogg

https://minecraft.fandom.com/wiki/File:Slime_big4.oggHostile CreaturesWhen a non-small slime jumps or landsmob.slime.big1.00.64-0.96

https://minecraft.fandom.com/wiki/File:Slime_small1.ogg

https://minecraft.fandom.com/wiki/File:Slime_small2.ogg

https://minecraft.fandom.com/wiki/File:Slime_small3.ogg

https://minecraft.fandom.com/wiki/File:Slime_small4.ogg

https://minecraft.fandom.com/wiki/File:Slime_small5.oggFriendly CreaturesWhen a small slime jumps or landsmob.slime.small1.00.64-0.96
NoneNoneWhen a slime attacks somethingmob.attack1.00.8-1.2

https://minecraft.fandom.com/wiki/File:Slime_attack1.ogg

https://minecraft.fandom.com/wiki/File:Slime_attack2.oggHostile CreaturesUnused sound eventmob.slime.attack1.01.0

Data values

[

]

ID

[

]

Java Edition:

NameIdentifierTranslation key

Slimeslimeentity.minecraft.slime

Bedrock Edition:

NameIdentifierNumeric ID Translation key

Slimeslime37entity.slime.name

Entity data

[

]

Slimes have entity data associated with them that contains various properties.

Java Edition:

  • Entity data

    • Tags common to all entities
    • Tags common to all mobs
    •  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. Values that are greater than 126 get clamped to 126.

    •  wasOnGround

      : 1 or 0 (true/false) – true if the slime is touching the ground.

Bedrock Edition:

Advancements

[

]

Video

[

]

Note: Slimes can also spawn in swamps, not only in caves, as the video says.

History

[

]

Issues

[

]

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

Trivia

[

]

  • In Java Edition, with commands, the size 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.
  • 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 Minicraft, a 2D Minecraft-inspired game also created by Notch.
  • If a player walks inside a slime, they can see the slime itself inside of a slime block.
  • if the player looks at the corner of a glass block, the slime inside the slime block disappears, looking like the slime block is alive.

[

]

Screenshots

[

]

In other media

[

]

See also

[

]

  • Magma Cube

    – A similar mob that spawns only in the Nether and drops magma cream

  • Tropical Slime

    – A variant that is found in Minecraft Earth

References

[

]

  1. The Bedrock Edition slime chunk algorithm was reverse engineered by @protolambda and @jocopa3 and can be found on GitHub: [1]

  2. http://getsatisfaction.com/mojang/topics/will_slimes_ever_return_to_minecraft
  3. http://www.youtube.com/watch?v=wyNvBkn4E3U

Post Comment