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

Started by SparkleArts on

Topic category: Help with modding (Java Edition)

Last seen on 17:39, 23. Apr 2024
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?