BarrelPreserver
About
A Fabric mod that preserves barrel contents when broken. Instead of spilling items on the ground, the barrel drops as a single item entity with all its contents stored inside via the CONTAINER data component. Picking up and replacing the barrel restores all stored items exactly as they were. Works in survival mode with standard block breaking.