Talk:Slime

Slimes attacking other mobs now?
The trivia section mentions that slimes will only attack players. However, I am observing that large slimes appear to be attacking iron golems as of 1.8. Can anyone verify if the trivia section needs to be updated? 97.90.132.228 22:17, 7 April 2015 (UTC)

Hoax
The trivia section says that slimes do not prevent you from sleeping. This is suspicious, and possibly a hoax. Please attempt to verify this. 108.216.23.230 02:01, 7 May 2015 (UTC)
 * Verified. Ghasts too, and most likely Magma Cubes. The code checks for the "mob" base class, but Slimes and Ghasts don't extend this class. Anomie x (talk) 10:32, 7 May 2015 (UTC)

Big slime required spawning space
On the wiki page it says that big slimes need only a 2,5 block high space to spawn in, however the minecraft forum thread that is used as a source claims that this is 3 blocks. Many tutorials on youtube also stick to 3 blocks high when it comes to spawning big slimes. Which is correct?

Herkio (talk) 00:38, 16 December 2015 (UTC)

Leasoncre (talk) 09:51, 20 January 2016 (UTC) tested in 1.8 flat world, big slime requires 2.5 vertical air blocks to spawn

Verify information
or someone else with knowledge of the code, would you be able to confirm the information in this article, especially what is marked with a verify tag? Many thanks. –Goandgoo ᐸ Talk Contribs 07:56, 20 January 2016 (UTC)
 * Of the stuff marked with "verify", checked in 1.8.8:
 * At the same time they fixed stuff like wither skeletons not spawning in 2-high spaces, they presumably fixed slimes. The bounding box requirement is just that the bounding box of the mob-to-be-spawned doesn't intersect any entities, block bounding boxes, or liquids (this is separate from the other checks described in Spawning). The slime's size is correctly described under Slime: "its dimensions are 0.51 blocks times its size in each dimension", and since the mobs spawn at (X.5, Y.0, Z.5) the figures later in the paragraph are generally correct but leave out that a partial block like a ladder on the far side of one of the edge blocks won't stop the mob from spawning there.
 * As for the AI, the slime has four "routines": float, attack, move (MCP calls it "face random"), and nothing (MCP calls it "hop").
 * "Float" makes the slime swim when in water or lava, by having it jump with an 80% chance per tick.
 * "Attack" makes the slime try to attack its target for 300 ticks (or until it no longer has a living target). Targets (players or iron golems) are found as usual, using the generic.followRange attribute which for slimes is 16 plus a random bonus of 0–5%.
 * "Move" makes the slime jump in a random direction when it's on the ground, not in water or lava, and has no attack target. It picks a new random direction every 40–99 ticks of the AI routine (but note the routine won't tick while the slime is in the air after jumping). There is no limit on the angle by which the direction changes.
 * "Nothing" takes effect when all of the above don't apply (i.e. it's in the air and has no target), and doesn't do anything interesting.
 * Also of note is that the slime will wait on the 10–29 ticks after landing from a movement-hop or 3–9 ticks after landing from an attack hop (i.e. the article is more or less correct on that point). This is done by the movement code itself, it just ignores the AI routines saying "jump" for the specified number of ticks.
 * And magma cubes have 4 times the delay: 40–116 ticks for a movement-hop or 12–36 ticks for an attack hop.
 * It is correct that slimes will still move when no players are nearby. The usual stopping is done by the random-wander AI routine just refusing to run, which slimes don't use.
 * The slime's jump distance isn't directly controlled by the size. The generic.movementSpeed is, and that affects how fast it moves while jumping, which affects the distance.
 * The bit about most mobs (specifically the ones that use the generic "attack on collide" AI routine) attacking at a rate of 1 attack per second is true. These mobs also only attack their target on collision. But slimes attack any player or iron golem they collide with on every collision regardless of time elapsed or whether they're actually targeting the attacked mob; mercy invulnerability limits it to 1 actual hit per half-second per entity.
 * You could theorize that most mobs' attacks are a punch or bite or whatever, while slimes are some kind of acid that hurts anything they bump into. There is, of course, no support for that in the game beyond the mechanics of how the different mobs' attacks function.
 * Slimes jump the same as all mobs when jumping (initial upward velocity is 0.42 normally, and 0.04 when in lava). Magma cubes, on the other hand, jump higher depending on their size (initial upward velocity is 0.42 + size * 0.1 normally, and 0.22 + size * 0.05 when in lava).
 * Other magma cube differences from slimes: immune to fire, armor is 3× slime's, their render brightness is not affected by external light level, they have "flame" particles instead of "slime" particles, they drop magma cream as described in magma cube rather than slime balls, there's something MCP calls a "squish amount" that gets adjusted differently, magma cubes completely ignore falling (no damage, no fall-damage sound, no footfall sound, no ground particles, no damage to ridden entities either; but note slimes get special sound and particles from a different mechanism that magma cubes still apply), even the tiny size can deal damage, attack strength is slime's + 2, different sound events, always makes a slime sound when landing (normal slimes only do it for size 3+).
 * HTH. Anomie x (talk) 14:33, 20 January 2016 (UTC)


 * Wow, thanks for all the information that you've found on the slimes. Would you be able to update the article accordingly and perhaps add some of this information which is not currently in the article? Or perhaps if some of it is too detailed it could perhaps be added to the tutorial article. –Goandgoo ᐸ Talk Contribs 01:01, 21 January 2016 (UTC)


 * ? –Goandgoo ᐸ Talk Contribs 01:56, 6 February 2016 (UTC)


 * It might be better for someone else to do the writing. Anomie x (talk) 12:51, 6 February 2016 (UTC)


 * ? Perhaps you could help remove the verify tags and add some of Anomie x's info? –Goandgoo ᐸ Talk Contribs 01:44, 7 February 2016 (UTC)