How do I make a new global variable? I would like answers for both 2023.1 and the latest version.

Started by WyvernKing6203 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a new global variable? I would like answers for both 2023.1 and the latest version.

How do I make a new global variable? I would like answers for both 2023.1 and the latest version.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you are in theā€¦
Wed, 01/15/2025 - 16:05

When you are in the workspace, on the left of the add mod element button you have 5 pages. Click on the one called Variables. Click Add new variable. Give it a name and set its variable type to whatever you need. And choose how it saves the value(s) for each instance. Read this article to see what fits you needs the best: https://mcreator.net/wiki/variables.