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!

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"}}]}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.