Updated:

Allay: entity ID and summon command

The entity ID for Allay is minecraft:allay. Use it with /summon and in selectors such as @e[type=…]. It was added in Java 1.19.

Basic data

NameAllay
ID (Java Edition)minecraft:allay
TypePassive or neutral mob
Java versionsJava 1.19 and later
Bedrock 26.52Same ID works (tested on a server)
Size0.35 wide × 0.6 tall (blocks)
Spawn eggAllay Spawn Egg

Commands you can copy

Java Edition

Summon at your position

/summon minecraft:allay ~ ~ ~

Summon with no AI

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

Remove all of them

/kill @e[type=minecraft:allay]

Remove only within 10 blocks

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

Test whether one exists

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

Teleport the nearest one to you

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

Give the spawn egg

/give @p minecraft:allay_spawn_egg 1

Bedrock Edition

Summon at your position

/summon allay

Remove all of them

/kill @e[type=allay]

Remove only within 10 blocks

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

Version notes

It was added in Java 1.19. Older versions report that the ID is unknown.

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 Allay?

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

How far does /kill reach?

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

Related IDs