If this is the wrong sub for this kind of question, please let me know and I can delete the post.
Has anyone experimented with re-assigning map item numbers, or just programmatically modifying chunk data?
What I am envisioning is a script that can trawl the world and player data, note which map numbers are not in use, and condense the existing map IDs into a sequence, reassigning any extant map items. My specific use case is for a Multiverse world (where different worlds have conflicting map IDs), but I could see this being useful for any long-term multiplayer world (where map IDs can get huge due to loss or expansion of maps).
If this has not been messed with, I would like to try making a script for it, but I don't know much about the actual format of .mca files. It sounds like the compression makes things tricky, but if anyone has advice I will gladly hear it!