Save Point
Innovative Inventory Saving System
The Save Point modification offers a unique approach to preserving your equipment based on respawn points. Instead of completely saving all inventory upon death, this mod works selectively, preserving only the items and experience you had at the moment of setting the save point.
How It Works
When you set a respawn point (using a bed, respawn anchor, or other systems), your current inventory and experience level are recorded at that moment. Upon subsequent death, only the saved items and experience are restored, while everything else drops at your death location.
For example, if you saved before exploring a dungeon and then died inside, you'll keep the equipment you had before entering, but all treasures found inside will remain at your death spot.
Key Features
- Compatibility with beds, respawn anchors, and most modified respawn systems
- Ability to re-save inventory by re-interacting with the respawn point
- Partial stacks are preserved correctly - if you had 10 diamonds when saving and then found 10 more, upon death you'll keep 10 and lose 10
- Items are restored regardless of their position in the inventory
- Some components are ignored when comparing items for more flexible system operation
Technical Details
The system works server-side, ensuring compatibility with vanilla clients. When comparing items, the following components are ignored:
- Item durability (minecraft:damage)
- Charged projectiles in crossbows (minecraft:charged_projectiles)
- Map markers (minecraft:map_decorations)
- Writable book content (minecraft:writable_book_content)
- Selected slots for Bundle Backport-ish bags
Compatibility
The mod works well with most gravestone modifications - only unsaved items remain in the grave. Compatible with the Revive mod. Not directly compatible with Trinkets/Curios, but works with Accessories, which provides backward compatibility. Requires installation of Fabric API and Fabric Language Kotlin.