Adds the Fettering enchantment, which makes items persist in the inventory after death.
Enchantments:
| name | identifier |
|---|---|
| Fettering | wishlist:fettering |
Advancements:
| title | description |
|---|---|
| Post Mortem | acquire an item with the Fettering enchantment. |
Fettering can be applied to many items:
The enchantment is considered a non-treasure one and will occasionally appear in random chests.
Uses an advancement to check on inventory changes; if one happens, sets a score so the player's inventory will be recorded.
Once per tick checks if a player's inventory should be stashed (because of inventory changes) but only if the player has not died that tick.
Once per tick checks if a player has respawned, and then restores any item with the Fettering enchantment from the recorded inventory.
None.