Modding:The Remapper
From Vintage Story Wiki
The Remapper. A server side system that, under ideal circumstances, no one should know it even exists. It's the thing that makes sure your world doesn't go bonkers from installing or removing a mod that adds blocks or items.
Let's say a user wants to craft a Uberbasket. A modder would want to write a recipe that tells the game which item should get created. This is done by referencing the items unique code - a sequence of letters, usually a written word separated by dashes.
However those codes do not store very efficiently and thus, in order to reduce memory usage, the engine internally assigns a per-world unique number to each item and block, then stores a mapping from code to id into the save game. Like this, just to give you an idea.
Code | Id |
---|---|
1 | |
2 | |
3 | |