How to add global variable to overlay file?

Started by Gormer on

Topic category: Help with modding (Java Edition)

Last seen on 07:22, 17. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add global variable to overlay file?

Hi all! Today I ran into a problem: How to add a variable to the overlay code and use it there?

I needed this because I wanted my object to be able to change its position on the overlay depending on the variable, the value of which will change during the procedure. When I try to integrate a global variable into an overlay file, I get an error.

Help solve this problem!