Will there be "switch cases"?

Started by ShAdOw112 on

Topic category: Feature requests and ideas for MCreator

Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will there be "switch cases"?

So, after making some personal mods I've found out the same problem - too many 'if -> elif -> else" for the same things causes unexpected bugs and headache. That's why I'd have wanted to have "Switch -> case -> default" structure, which could at least solve 'repeating' problems. I know I can replace "if else" by direct coding, but that would be too unpredictable and inconvinient, because I'm used to make mods without keyboard-coding.

Is there any hope we will get "switch-cases" in the following updates?

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The situation is similar…
Sat, 06/29/2024 - 10:07

The situation is similar with arrays, although there is a plugin from Goldorion (link) on them. As long as these basic functions are not available, the mods from MCreator will not be as optimized as they could be.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wish switches will be
Sat, 06/29/2024 - 10:11

I wish switches will be