Started by
ImSeyo
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to create something like an addon (a separate mod) to my own mod. There are variables in my mod that I wanted to combine with the addon and return the same result. I tried to repeat the name of the variable exactly in two mods, but it didn't work, because the mods variable also has something like ID
At the moment, there is no mechanic to achieve this, outside coding own system to interconnect variables.
You may have luck syncing data via some intermediate step, such as writing NBT from and to block/item/entity as NBT is universal system
You can also try using forge tags