I have tried Youtube videos, tutorials, Minecraft wiki, and many different types of commands. If I tried: /setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:RabbitType:99}
or /setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:KillerRabbit}
it will just give me an empty spawner with nothing in it. The same goes for the Ender Dragon commands. Can anyone give me an explanation please?
Minecraft – Why can’t I make Killer Bunny spawners and Ender Dragon spawners
minecraft-commandsminecraft-java-edition
Best Answer
Extra entity data goes inside the
SpawnData
compound. The correct tag name isRabbitType
rather thanType
. Tags are separated with commas.Fixed command for 1.8:
Fixed command for 1.9, where
EntityId
no longer exists and the ID is instead defined by theid
tag inside ofSpawnData
: