Updated:

Slime: entity ID and summon command

The entity ID for Slime is minecraft:slime. Use it with /summon and in selectors such as @e[type=…]. The ID has been the same since Java 1.13.

Basic data

NameSlime
ID (Java Edition)minecraft:slime
TypeHostile mob
Java versionsJava 1.13 to 26.3
Bedrock 26.52Same ID works (tested on a server)
Size0.52 wide × 0.52 tall (blocks)
Spawn eggSlime Spawn Egg

Commands you can copy

Java Edition

Summon at your position

/summon minecraft:slime ~ ~ ~

Summon with no AI

/summon minecraft:slime ~ ~ ~ {NoAI:1b}

Remove all of them

/kill @e[type=minecraft:slime]

Remove only within 10 blocks

/kill @e[type=minecraft:slime,distance=..10]

Test whether one exists

/execute if entity @e[type=minecraft:slime]

Teleport the nearest one to you

/tp @e[type=minecraft:slime,sort=nearest,limit=1] @s

Give the spawn egg

/give @p minecraft:slime_spawn_egg 1

Bedrock Edition

Summon at your position

/summon slime

Remove all of them

/kill @e[type=slime]

Remove only within 10 blocks

/kill @e[type=slime,r=10]

What it drops

ItemCountCondition
Slimeball0–2Only in certain conditions / More with Looting
Slimeball1Only in certain conditions

From the official Java 26.3 loot table. Experience is not included.

Version notes

This ID has not changed from Java 1.13 to the latest 26.3.

In selectors, Java Edition uses type=minecraft:ID and Bedrock uses type=ID. Add ! as in type=!minecraft:ID to match everything else.

Questions

What is the ID for Slime?

It is minecraft:slime. In commands you can also write slime without minecraft:.

Why does Slime disappear right after summoning?

On Peaceful difficulty, hostile mobs are removed at once. Raise the difficulty, for example with /difficulty easy.

How far does /kill reach?

@e[type=minecraft:slime] matches every one in loaded chunks. To limit it to nearby ones, add distance=..10 (r=10 on Bedrock).

Related IDs