
Records where every item came from and shows it in the item's tooltip.


Open a chest and you get loot with no story. Chest DNA fixes that: the moment an item is created it gets an origin stamped onto it, and that stamp travels with the item for the rest of its life.

Whenever an item enters the world - looted from a chest, dropped by a mob, bought from a villager, fished up, crafted, smelted or mined - Chest DNA attaches an origin to it containing:

This is stored as a real data component, so it survives world saves, shulker boxes, ender chests and multiplayer - and it is readable by commands, datapacks and other mods.
Hovering the item draws a pixel-art card under the normal tooltip, drawn one pixel at a time with no textures, so it stays crisp at every GUI scale:
The card sizes itself against the screen: long values wrap, it never grows wider or taller than it has to, and it reports its real size so the tooltip always stays on screen.
| Group | Covered |
|---|---|
| Structure chests | village, dungeon, mineshaft, stronghold, nether fortress, bastion, End City, ancient city, woodland mansion, trial chambers, ominous vaults, shipwreck, buried treasure, desert pyramid, jungle temple, igloo, ruined portal, pillager outpost, ocean ruins, bonus chest |
| Creatures | mob drops, boss drops, shearing, cat and sniffer gifts, hero of the village |
| Player actions | crafting, smelting, villager and wandering trader trades, fishing, archaeology, creative menu |
| Mining | every block you break |
36 origin types in total, each with its own name, glyph and rarity tier.
/chestdna inspect - print the full DNA of the item in your hand/chestdna clear - wipe the DNA of the held item (gamemaster permission)The whole system is an open API - see the README for code samples:
chestdna entrypoint so your add-on loads at the right momentMinecraft 1.7.10 - 26.2
Chest DNA installs on either side and never blocks a connection. The server does the recording, the client does the drawing, so what you get depends on where it is installed:
| Setup | Result |
|---|---|
| Singleplayer | Everything works, the integrated server records. |
| Client and server | Everything works. |
| Client only, server without the mod | You can join normally. Tested against a plain vanilla 26.2 dedicated server: the client connects and plays with no errors. Nothing is recorded though, because recording is server side, so no cards appear. |
| Server only | Origins are recorded and /chestdna inspect works. Players need the mod to see the cards, so keep it optional for them or hand it out. |
Optional on the client, optional on the server, useful on both.