Hello to the 2 of you that were curious on how this cursed thing works, and to be honest,
I asked myself the same question multiple times when making this, lol

Basically, it stores the chest's contents data in a marker entity inside the chest, then
in the next tick, it compares the chest with the stored data, and if something changed, it
applies the same changes to the linked chest

The rest of the functions are just dedicated more to the user interface, except for the hopper
proofing, which as the name suggests, is just me trying my best to prevent this thing from duping
items like crazy. The problem happens when there are item changes in both chests at the same tick,
and since hoppers work all at the same tick, they completely mess with the datapack and items just
get duplicated or deleted. I have no clue how to fix this so I went the easy way and just added
limitations to hopper use.

You might find a bit weird the duplicate commands running in overworld, the end and the nether, and
to be honest, I don't know how they work either. All I know is that inter-dimensional chests weren't
working, and now they are, and that's enough for me. Inter-dimensional coordinates are weird.


Well, I hope this helped you understand this madness (or at least that it didn't make it worse).
Sincerely,
u/OnixST




(Also, I want to know how many people actually read this, so please comment "I like carrots" in the
post you downloaded this from, that'll be our code)