Memorial Tag - Memorize and Revive Your Pet
Memorial Tag adds a way to memorize your named companions, and maybe bring them back eventually.
When a living entity dies, it may drop a Memorial Tag if it has a custom name or an owner. The tag records the entity's identity, name, type, cause of death, and the world day on which it died. A backup of the entity's NBT data is also saved in the world save folder.
The tag can later be used together with a Totem of Undying to bring the creature back. Both the Memorial Tag and the Totem of Undying are consumed, unless the player is in creative mode.
The restored entity is recreated from saved NBT data, but some volatile data is intentionally removed during restoration, such as the original UUID, health, carried inventory, and hand items. This helps avoid entity duplication issues and UUID conflicts.