Changing different global variables, depending on the code

Started by Skunkbucket on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Changing different global variables, depending on the code

I'm making a Minecraft mod where I need to change different global variables, depending on the block below the block that changes the variables. Is there a way to do that without separate Else If statements for every block I allow usage of?