Spawner items display mob name in tooltip even if the block entity ID is incorrect
If the block entity ID of a spawner's block_entity_data is not equal to mob_spawner, then its tooltip still displays whichever mob is specified in SpawnData even though the spawner will be empty when placed.
How to reproduce
- Ensure you are in Creative mode
- Obtain a spawner using this command:
/give @s spawner[block_entity_data={id:ZZZ,SpawnData:{entity:{id:zombie}}}] - Inspect the item tooltip
→
The tooltip says "Zombie" - Place the spawner
→
The spawner is empty
Expected result
The item should have the default monster spawner tooltip.