1

Is there a way to make a spawn egg spawn a mob with an NBT tag or a custom Loot Table?

If there is, will it work if I put the spawn egg in a monster spawner?

Thank you very much!

1 Answer 1

2

Is there a way to make a spawn egg spawn a mob with an NBT tag or a custom Loot Table?

Yes, add the tags you want in EntityTag. For example:

/give @p spawn_egg 1 0 {EntityTag:{id:Creeper,powered:1b,DeathLootTable:"minecraft:empty"}}

If there is, will it work if I put the spawn egg in a monster spawner?

No, you will need to edit the data of the mob spawner separately. For example:

/blockdata X Y Z {SpawnPotentials:[{Entity:{id:Creeper,powered:1b,DeathLootTable:"minecraft:empty"}}]}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .