Set NBT Tag for Items to a Global String Variable with Code

Started by SparkleArts on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set NBT Tag for Items to a Global String Variable with Code

I want to set an String NBT Tag to a Item trough Code to make it default, but I want to set this NBT Tag to a Global String Variable.

Is this possible with coding? If yes can someone give me a code for it?