This (Fabric) mod prevents discarded items from disappearing.
Instead of disappearing, items appears at selected point of the world. Default point is (0,0), but You can change it in file config/itemsneverdisappear.json