Shadow Totem
A mod that brings back the classic Totem Shadow and Stasis mechanics using linked Ghost Totems.
About
Ever wanted to keep a Totem of Undying linked to a specific container slot? Shadow Totem brings back the old Totem Shadow and Stasis mechanics, allowing you to create Ghost Totems linked to your original totems.
To create a Ghost Totem, simply pick up a Totem of Undying and click an empty slot in a container that can hold it(Currently, it could only be put in a chest or a trapped chest). A Ghost Totem will appear in that slot, while your original totem stays in your cursor with its link data attached.
When your original Totem of Undying gets consumed to save your life, its linked Ghost Totem will automatically disappear from the container. The link is also cleared, so there won't be any leftover Ghost Totems.
Be careful when handling Ghost Totems! If you try to pick one up or move it into a hopper, it will be removed and its link will be broken.
Features
- Ghost Totem Creation
Creates a Ghost Totem when you click an empty container slot while holding the Totem of Undying in your cursor.
- Totem Binding
Each Ghost Totem is linked to its original totem using unique link data.
- Stasis System
Stores the container's dimension, position, and slot information to keep track of linked Ghost Totems.
- Totem Consumption
When the original totem is consumed, its linked Ghost Totem is automatically removed.
- Inventory Protection
Prevents Ghost Totems from being moved or interacted with through certain inventory actions.
- Hopper Protection
Automatically removes Ghost Totems that enter hoppers and breaks their links.
- Link Cleanup
Removes leftover Ghost Totems and clears link data when a connection is broken.