Crafter does not save it's name when mined.
Chest saves it's name when mined
Dispenser saves it's name when mined
etc
Crafter has NBT that allows save name when mined like other container blocks
Attachments
Comments 7
This can't be a Duplicate of MC-209 because in this Case the Crafter Block has same behavior with Custom Names like Dispensers or Droppers.
[media]Also this Bug still exists in 24w21b.
Code analysis (Yarn mappings)
In the data generator for block loot tables (the VanillaBlockLootTableGenerator
class), the loot table for the crafter is generated with the following line:
this.addDrop(Blocks.CRAFTER);
However, since the crafter is a nameable container (having a block entity with a LockableContainerBlockEntity
superclass), the crafter should instead be specified with the following line, matching other nameable containers:
this.addDrop(Blocks.CRAFTER, block -> this.nameableContainerDrops(block));
Thank you for your report!
We're tracking this issue in MC-209, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki