Updated:

Goat: entity ID and summon command

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

Basic data

NameGoat
ID (Java Edition)minecraft:goat
TypePassive or neutral mob
Java versionsJava 1.17 and later
Bedrock 26.52Same ID works (tested on a server)
Size0.9 wide × 1.3 tall (blocks)
Spawn eggGoat Spawn Egg

Commands you can copy

Java Edition

Summon at your position

/summon minecraft:goat ~ ~ ~

Summon with no AI

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

Remove all of them

/kill @e[type=minecraft:goat]

Remove only within 10 blocks

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

Test whether one exists

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

Teleport the nearest one to you

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

Give the spawn egg

/give @p minecraft:goat_spawn_egg 1

Bedrock Edition

Summon at your position

/summon goat

Remove all of them

/kill @e[type=goat]

Remove only within 10 blocks

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

Version notes

It was added in Java 1.17. 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 Goat?

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

How far does /kill reach?

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

Related IDs