A kind of partial KeepInventory based on spawn points.
When you set your spawn, your inventory will be saved at that instant. When you die, only the items you had for that save will be restored. All your other items will drop at your death location.
For example, if you set your spawn before looting a structure and then die, you will keep the equipment you had before going into the structure, but the loot you collected while inside will drop.
More Details
-
Works with beds and respawn anchors, and should work with most modded respawn systems
-
You may click the respawn point again to save your inventory again
-
Partial stacks are preserved, so if you save with 10 diamonds, collect 10 more diamonds, and then die, you will keep 10 diamonds and drop 10 diamonds
-
Contents of bundles & shulker boxes are handled, for example if you save your inventory then put some items inside a bundle then die, you should keep all your items
-
Items are still restored even if inventory items are moved around, although in a partial restore scenario the order may affect how stacks are split
-
By default your items are not saved if your respawn block is destroyed or missing. You can change this with the gamerule
savepoint:restore_without_spawnpoint. -
By default, XP is not saved. You can change this with the gamerule
savepoint:restore_experience. -
When comparing items, components in
#savepoint:restore_compareare checked. By default, this does not include:- Durability
- Map markers
- Writable book content
Feel free to open an issue with suggestions for more ignored components
Notes
- Works server-side, so it works with vanilla clients. The only client feature is potential translations for the "Inventory Saved" message in the future.
- Inspired by Respawn Save Points by seymourimadeit and CreativelyJake, check them out!
- Compatible with Revive
- Might be compatible with some gravestone mods
- [≤1.21.11] compatible with Accessories
- [≥26.1] compatible with Trinkets Updated
- If you're in singleplayer and want a mod that resets not only your inventory but the whole world, see Save State
- Requires Fabric API and Fabric Language Kotlin
- Pairs well with a mod that makes your items not fly everywhere when you die
How to Install Save Point (Mod)
Save Point by ThePotatoArchivist is verified for Fabric across Minecraft versions 1.21.1, 1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1 (latest release: 1.3.1+mc26.3, file size: 43 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Save Point file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Fix
#savepoint:restore_comparetag containing invalid entries, causing no components to be considered
- XP is no longer saved by default, to have some cost to dying
- Add gamerule
savepoint:restore_experienceto control XP restore - Defaults to
false - Update to 26.3
- XP is no longer saved by default, to have some cost to dying
- Add gamerule
savepoint:restore_experienceto control XP restore - Defaults to
false - Update to 26.3
- Workaround to fix weird incompatibility with Defaulted where bundle contents are not saved
- Add gamerule
savepoint:restore_without_spawnpointto allow restoring your inventory even when your spawnpoint is destroyed or missing (default: false)
- Fix consuming two respawn anchor charges
- Adjust save trigger logic to activate in some situations it previously did not, such as the
/setspawncommand and the save points from Soulbound
This is a one-time update due to a request and it will not receive ongoing support.
- Fix unsaved bundle/shulker box contents not dropping sometimes
- Fix intangible projectiles loaded in crossbow dropping
- Fix unsaved armor dupe
- Fix equipped trinkets not getting saved
- Fix equipped trinkets dropping when they shouldn't
- Add support for [Trinkets Updated](https://modrinth.com/mod/trinkets-updated)
- Fix armor & offhand slots dropping even when saved
- Removed
savepoint:restore_ignoredtag, instead it will only compare components insavepoint:restore_compare
- Port to 26.1
- No accessories compat yet
- Trinkets (Updated) compat is planned
- Add support for handling the contents of bundles & shulker boxes
- Add component ignore support for Omnicrossbow & Enchancement
- Add support for handling the contents of bundles & shulker boxes
- Add component ignore support for Omnicrossbow & Enchancement
- Reenable accessories compat
- Port to 1.21.9
- Accessories compat is once again disabled