Children’s book about a magic box that reproduced the contents
It opened with something like “the people in this book are fools!” and it had a magical box that reproduced whatever went in it and it started with food maybe and then gold and they were so rich but then a man died and fell in and they lost all their money having to pay to bury his corpse a zillion times and went broke and ended up buying the last corpse in the box itself because they couldn’t afford anything else.