← Назад к ресурсам

Save Point

A partial keep inventory: Spawn points save your current items and restore them upon death

Modrinth adventure game-mechanics storage

Описание

A kind of partial KeepInventory based on spawn points. When you set your spawn, your inventory and XP will be saved at that instant. When you die, only the items and XP 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`. - When comparing items, any components in `#savepoint:restore_ignored` are ignored. By default, this includes: - Durability - Crossbow ammo (compatible with [Omnicrossbow](https://modrinth.com/mod/omnicrossbow) & [Enchancement](https://modrinth.com/mod/enchancement)) - Map markers - Writable book content - Selected slot for [Bundle Backport-ish](https://modrinth.com/mod/bundle-backportish) 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](https://modrinth.com/mod/respawn-save-points) by [seymourimadeit](https://modrinth.com/user/seymourimadeit) and [CreativelyJake](https://modrinth.com/user/CreativelyJake), check them out! - Compatible with [Revive](https://modrinth.com/mod/revive) - Might be compatible with some gravestone mods - [≤1.21.11] compatible with [Accessories](https://modrinth.com/mod/accessories) - [≥26.1] compatible with [Trinkets Updated](https://modrinth.com/mod/trinkets-updated) - If you're in singleplayer and want a mod that resets not only your inventory but the whole world, see [Save State](https://modrinth.com/mod/save-state) - Requires [Fabric API](https://modrinth.com/mod/fabric-api) and [Fabric Language Kotlin](https://modrinth.com/mod/fabric-language-kotlin) - Pairs well with a mod that makes your items not fly everywhere when you die