How can I make an updater for my datapack?

How can I automatically check containers around the player, as well as the player's inventory, to replace old items with new ones? And is there an efficient way to do this?

Continue to help post