Is it possible to connect the global variables of a mod to another mod?

Started by ImSeyo on

Topic category: Help with modding (Java Edition)

Last seen on 14:08, 26. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to connect the global variables of a mod to another mod?

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…
Sun, 03/10/2024 - 14:15

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

Last seen on 15:19, 26. Apr 2024
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can also try using forge…
Sun, 03/10/2024 - 15:41

You can also try using forge tags